aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2013-12-16 12:06:28 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2013-12-16 12:06:28 +0000
commit33b0cbe3ac6b07286fdaebf8d1983a2fbeca31ad (patch)
treedda038b5543e11d8f9a60a9ca8eecbb236dfba01 /net-mgmt
parent595ae0a408c85bfc7918cb6da54d8771c0cf64d0 (diff)
downloadports-33b0cbe3ac6b07286fdaebf8d1983a2fbeca31ad.tar.gz
ports-33b0cbe3ac6b07286fdaebf8d1983a2fbeca31ad.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-plugins/Makefile10
-rw-r--r--net-mgmt/nagios-plugins/pkg-plist2
2 files changed, 9 insertions, 3 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index c17a646e1166..60c7690df30c 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -149,6 +149,10 @@ CONFIGURE_ARGS+= --without-dbi
PLIST_SUB+= SUB_DBI="@comment "
.endif
+.if ${PORT_OPTIONS:MEXTRAOPTS}
+CONFIGURE_ARGS+= --enable-extra-opts
+.endif
+
.if ${OSVERSION} > 1000055
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dig-to-drill.diff
CONFIGURE_ARGS+=--with-dig-command=/usr/bin/drill
@@ -157,8 +161,10 @@ PLIST_SUB+= SUB_DNS="@comment "
PLIST_SUB+= SUB_DNS=""
.endif
-.if ${PORT_OPTIONS:MEXTRAOPTS}
-CONFIGURE_ARGS+= --enable-extra-opts
+.if !exists(/usr/bin/ssh)
+PLIST_SUB+= SUB_SSH="@comment "
+.else
+PLIST_SUB+= SUB_SSH=""
.endif
post-patch:
diff --git a/net-mgmt/nagios-plugins/pkg-plist b/net-mgmt/nagios-plugins/pkg-plist
index a16611407bf1..9ed3fb8ddc7f 100644
--- a/net-mgmt/nagios-plugins/pkg-plist
+++ b/net-mgmt/nagios-plugins/pkg-plist
@@ -1,6 +1,6 @@
libexec/nagios/check_apt
libexec/nagios/check_breeze
-libexec/nagios/check_by_ssh
+%%SUB_SSH%%libexec/nagios/check_by_ssh
libexec/nagios/check_clamd
libexec/nagios/check_cluster
%%SUB_DBI%%libexec/nagios/check_dbi