diff options
author | demon <demon@FreeBSD.org> | 2013-11-21 19:30:10 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2013-11-21 19:30:10 +0800 |
commit | 6cbf47ce5f986b35bc33e7686265dfcaec884920 (patch) | |
tree | b13bbe34da2c8b00fbed39d70ccf5a81a7675dd2 /net-mgmt | |
parent | ac8e2280ad326a7eeca0d7b12b8036d2fc1942c3 (diff) | |
download | freebsd-ports-gnome-6cbf47ce5f986b35bc33e7686265dfcaec884920.tar.gz freebsd-ports-gnome-6cbf47ce5f986b35bc33e7686265dfcaec884920.tar.zst freebsd-ports-gnome-6cbf47ce5f986b35bc33e7686265dfcaec884920.zip |
Add optional dependency on bind-tools to install dig(1) on FreeBSD-10 and above
(it has been removed from base system).
PR: 184118
Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr>
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nagios-plugins/Makefile | 13 | ||||
-rw-r--r-- | net-mgmt/nagios-plugins/pkg-plist | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile index 62bd82916875..42f43f3a7a6c 100644 --- a/net-mgmt/nagios-plugins/Makefile +++ b/net-mgmt/nagios-plugins/Makefile @@ -18,8 +18,8 @@ USE_AUTOTOOLS= libtool aclocal autoconf automake ACLOCAL_ARGS= -I m4 -I gl/m4 AUTOMAKE_ARGS= --add-missing -OPTIONS_DEFINE= QSTAT FPING NETSNMP RADIUS MYSQL PGSQL LDAP IPV6 JAIL NLS -OPTIONS_DEFAULT=IPV6 +OPTIONS_DEFINE= QSTAT FPING NETSNMP RADIUS MYSQL PGSQL LDAP IPV6 JAIL NLS DNS +OPTIONS_DEFAULT=IPV6 DNS QSTAT_DESC= Game server query support (check_game) FPING_DESC= Support for non-flooding fast ping (check_fping) @@ -28,6 +28,7 @@ RADIUS_DESC= Radius support (check_radius) MYSQL_DESC= MySQL support (check_mysql) PGSQL_DESC= PostgreSQL support (check_pgsql) LDAP_DESC= OpenLDAP support (check_ldap) +DNS_DESC= DNS support via dig (check_dns, check_dig) JAIL_DESC= Compilation within jail(8) (see Makefile) GNU_CONFIGURE= yes @@ -70,6 +71,14 @@ PLIST_SUB+= SUB_QSTAT="" PLIST_SUB+= SUB_QSTAT="@comment " .endif +.if ${PORT_OPTIONS:MDNS} +BUILD_DEPENDS+= dig:${PORTSDIR}/dns/bind-tools +RUN_DEPENDS+= dig:${PORTSDIR}/dns/bind-tools +PLIST_SUB+= SUB_DNS="" +.else +PLIST_SUB+= SUB_DNS="@comment " +.endif + .if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+= --with-ipv6 .else diff --git a/net-mgmt/nagios-plugins/pkg-plist b/net-mgmt/nagios-plugins/pkg-plist index 2e5e70660a65..e2c8a1aec65b 100644 --- a/net-mgmt/nagios-plugins/pkg-plist +++ b/net-mgmt/nagios-plugins/pkg-plist @@ -4,10 +4,10 @@ libexec/nagios/check_by_ssh libexec/nagios/check_clamd libexec/nagios/check_cluster libexec/nagios/check_dhcp -libexec/nagios/check_dig +%%SUB_DNS%%libexec/nagios/check_dig libexec/nagios/check_disk libexec/nagios/check_disk_smb -libexec/nagios/check_dns +%%SUB_DNS%%libexec/nagios/check_dns libexec/nagios/check_dummy libexec/nagios/check_file_age libexec/nagios/check_flexlm |