1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

Fix check_dig on > 10 with IPv6

PR:		196725
Submitted by:	brd
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-01-19 17:52:56 +00:00
parent 98e4cc405c
commit 07ae7bc714
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377447
4 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= monitoring-plugins
PORTVERSION= 2.0
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= net-mgmt
MASTER_SITES= https://www.monitoring-plugins.org/download/ LOCAL/mat/${PORTNAME}

View File

@ -1,13 +1,13 @@
--- plugins/check_dig.c.orig 2014-06-23 16:01:00 UTC
+++ plugins/check_dig.c
@@ -94,8 +94,8 @@
@@ -94,8 +94,8 @@ main (int argc, char **argv)
timeout_interval_dig = timeout_interval / number_tries + number_tries;
/* get the command to run */
- xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d",
- PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport, number_tries, timeout_interval_dig);
+ xasprintf (&command_line, "%s %s @%s -z -p %d %s %s %s",
+ PATH_TO_DIG, dig_args, dns_server, server_port, query_address, record_type, query_transport);
+ PATH_TO_DIG, dig_args, dns_server, server_port, query_transport, query_address, record_type);
alarm (timeout_interval);
gettimeofday (&tv, NULL);

View File

@ -3,7 +3,7 @@
PORTNAME= nagios-plugins
PORTVERSION= 2.0.3
PORTREVISION= 6
PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://www.nagios-plugins.org/download/ \

View File

@ -1,13 +1,13 @@
--- plugins/check_dig.c.orig 2014-03-04 21:41:57 UTC
+++ plugins/check_dig.c
@@ -94,8 +94,8 @@
@@ -94,8 +94,8 @@ main (int argc, char **argv)
timeout_interval_dig = ceil((double) timeout_interval / (double) number_tries);
/* get the command to run */
- xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d",
- PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport, number_tries, timeout_interval_dig);
+ xasprintf (&command_line, "%s %s @%s -z -p %d %s %s %s",
+ PATH_TO_DIG, dig_args, dns_server, server_port, query_address, record_type, query_transport);
+ PATH_TO_DIG, dig_args, dns_server, server_port, query_transport, query_address, record_type);
alarm (timeout_interval);
gettimeofday (&tv, NULL);