Date: Mon, 31 Aug 2020 12:39:58 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547174 - in head/net-mgmt: monitoring-plugins monitoring-plugins/files nagios-plugins nagios-plugins/files Message-ID: <202008311239.07VCdwRd004283@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Mon Aug 31 12:39:58 2020 New Revision: 547174 URL: https://svnweb.freebsd.org/changeset/ports/547174 Log: Fix check_dig when it uses drill and when changing the port. PR: 249027 Reported by: Joakim Lindblom Deleted: head/net-mgmt/monitoring-plugins/pkg-help Modified: head/net-mgmt/monitoring-plugins/Makefile (contents, props changed) head/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff (contents, props changed) head/net-mgmt/monitoring-plugins/pkg-plist (contents, props changed) head/net-mgmt/nagios-plugins/Makefile (contents, props changed) head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff (contents, props changed) head/net-mgmt/nagios-plugins/pkg-plist (contents, props changed) Modified: head/net-mgmt/monitoring-plugins/Makefile ============================================================================== --- head/net-mgmt/monitoring-plugins/Makefile Mon Aug 31 12:39:54 2020 (r547173) +++ head/net-mgmt/monitoring-plugins/Makefile Mon Aug 31 12:39:58 2020 (r547174) @@ -3,7 +3,7 @@ PORTNAME= monitoring-plugins PORTVERSION= 2.2 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= net-mgmt MASTER_SITES= https://www.monitoring-plugins.org/download/ LOCAL/mat/${PORTNAME} @@ -37,7 +37,7 @@ SSH_PORTABLE_DESC= Build check_ssh with ports openssh DNS_DESC= Configuration of check_dig and check_dns (see help) -DNS_BASE_DESC= >= 10 means drill for check_dig and no check_dns +DNS_BASE_DESC= Use drill for check_dig and no check_dns DNS_BINDTOOLS_DESC= Use dig and nslookup from dns/bind-tools EXTRAOPTS_CONFIGURE_ENABLE= extra-opts @@ -109,6 +109,11 @@ NLS_CONFIGURE_ENABLE= nls DBI_LIB_DEPENDS= libdbi.so:databases/libdbi DBI_CONFIGURE_WITH= dbi + +DNS_BASE_CONFIGURE_ON= --with-dig-command=/usr/bin/drill \ + ac_cv_path_PATH_TO_NSLOOKUP= +DNS_BASE_EXTRA_PATCHES= ${FILESDIR}/extra-patch-dig-to-drill.diff + DNS_BINDTOOLS_BUILD_DEPENDS= ${LOCALBASE}/bin/dig:dns/bind-tools DNS_BINDTOOLS_RUN_DEPENDS= ${DNS_BINDTOOLS_BUILD_DEPENDS} DNS_BINDTOOLS_CONFIGURE_ON= --with-dig-command=${LOCALBASE}/bin/dig \ @@ -124,15 +129,6 @@ SSH_PORTABLE_CONFIGURE_ON= --with-ssh-command=${LOCALB _PING6_CMD= /sbin/ping6 -n -X %d -c %d %s .else _PING6_CMD= /sbin/ping6 -n -t %d -c %d %s -.endif - -.if ${PORT_OPTIONS:MDNS_BASE} -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dig-to-drill.diff -CONFIGURE_ARGS+=--with-dig-command=/usr/bin/drill \ - ac_cv_path_PATH_TO_NSLOOKUP= -PLIST_SUB+= CHECK_DNS="@comment " -.else -PLIST_SUB+= CHECK_DNS="" .endif .if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE) Modified: head/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff ============================================================================== --- head/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff Mon Aug 31 12:39:54 2020 (r547173) +++ head/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff Mon Aug 31 12:39:58 2020 (r547174) @@ -6,8 +6,8 @@ /* get the command to run */ - xasprintf (&command_line, "%s %s %s -p %d @%s %s %s +retry=%d +time=%d", - PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type, 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_transport, query_address, record_type); ++ xasprintf (&command_line, "%s %s %s -p %d @%s %s %s", ++ PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type); alarm (timeout_interval); gettimeofday (&tv, NULL); Modified: head/net-mgmt/monitoring-plugins/pkg-plist ============================================================================== --- head/net-mgmt/monitoring-plugins/pkg-plist Mon Aug 31 12:39:54 2020 (r547173) +++ head/net-mgmt/monitoring-plugins/pkg-plist Mon Aug 31 12:39:58 2020 (r547174) @@ -8,7 +8,7 @@ libexec/nagios/check_cluster libexec/nagios/check_dig libexec/nagios/check_disk libexec/nagios/check_disk_smb -%%CHECK_DNS%%libexec/nagios/check_dns +%%DNS_BINDTOOLS%%libexec/nagios/check_dns libexec/nagios/check_dummy libexec/nagios/check_file_age libexec/nagios/check_flexlm Modified: head/net-mgmt/nagios-plugins/Makefile ============================================================================== --- head/net-mgmt/nagios-plugins/Makefile Mon Aug 31 12:39:54 2020 (r547173) +++ head/net-mgmt/nagios-plugins/Makefile Mon Aug 31 12:39:58 2020 (r547174) @@ -3,7 +3,7 @@ PORTNAME= nagios-plugins DISTVERSION= 2.3.3 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= net-mgmt MASTER_SITES= https://www.nagios-plugins.org/download/ \ @@ -70,6 +70,10 @@ SSH_PORTABLE_DESC= Build check_ssh with ports openssh DBI_LIB_DEPENDS= libdbi.so:databases/libdbi DBI_CONFIGURE_WITH= dbi +DNS_BASE_CONFIGURE_ON= --with-dig-command=/usr/bin/drill \ + ac_cv_path_PATH_TO_NSLOOKUP= +DNS_BASE_EXTRA_PATCHES= ${FILESDIR}/extra-patch-dig-to-drill.diff + DNS_BINDTOOLS_BUILD_DEPENDS= ${LOCALBASE}/bin/dig:dns/bind-tools DNS_BINDTOOLS_RUN_DEPENDS= ${DNS_BINDTOOLS_BUILD_DEPENDS} DNS_BINDTOOLS_CONFIGURE_ON= --with-dig-command=${LOCALBASE}/bin/dig \ @@ -129,15 +133,6 @@ NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin _PING6_CMD= /sbin/ping6 -n -X %d -c %d %s .else _PING6_CMD= /sbin/ping6 -n -t %d -c %d %s -.endif - -.if ${PORT_OPTIONS:MDNS_BASE} -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dig-to-drill.diff -CONFIGURE_ARGS+= --with-dig-command=/usr/bin/drill \ - ac_cv_path_PATH_TO_NSLOOKUP= -PLIST_SUB+= CHECK_DNS="@comment " -.else -PLIST_SUB+= CHECK_DNS="" .endif .if !exists(/usr/bin/ssh) && empty(PORT_OPTIONS:MSSH_PORTABLE) Modified: head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff ============================================================================== --- head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff Mon Aug 31 12:39:54 2020 (r547173) +++ head/net-mgmt/nagios-plugins/files/extra-patch-dig-to-drill.diff Mon Aug 31 12:39:58 2020 (r547174) @@ -6,8 +6,8 @@ /* get the command to run */ - xasprintf (&command_line, "%s %s %s -p %d @%s %s %s +tries=%d +time=%d", - PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type, 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_transport, query_address, record_type); ++ xasprintf (&command_line, "%s %s %s -p %d @%s %s %s", ++ PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type); alarm (timeout_interval); gettimeofday (&tv, NULL); Modified: head/net-mgmt/nagios-plugins/pkg-plist ============================================================================== --- head/net-mgmt/nagios-plugins/pkg-plist Mon Aug 31 12:39:54 2020 (r547173) +++ head/net-mgmt/nagios-plugins/pkg-plist Mon Aug 31 12:39:58 2020 (r547174) @@ -8,7 +8,7 @@ libexec/nagios/check_cluster libexec/nagios/check_dig libexec/nagios/check_disk libexec/nagios/check_disk_smb -%%CHECK_DNS%%libexec/nagios/check_dns +%%DNS_BINDTOOLS%%libexec/nagios/check_dns libexec/nagios/check_dummy libexec/nagios/check_file_age libexec/nagios/check_flexlm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008311239.07VCdwRd004283>