aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-04-08 23:53:22 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-04-08 23:53:22 +0000
commit85d080b14b969d5719c61d57356930fd9402ea04 (patch)
treeeab73af53aad4c75ad65ff11633799912f45dab9
parent2e844ae137d78f7752d88096bbf83582f53047ac (diff)
downloadports-85d080b14b969d5719c61d57356930fd9402ea04.tar.gz
ports-85d080b14b969d5719c61d57356930fd9402ea04.zip
Notes
-rw-r--r--net-mgmt/nagios-plugins/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index 687eb561e55a..8e098f9ff74e 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -27,7 +27,8 @@ OPTIONS= QSTAT "Game server query support (check_game)" OFF \
MYSQL "MySQL support (check_mysql)" OFF \
PGSQL "PostgreSQL support (check_pgsql)" OFF \
LDAP "OpenLDAP support (check_ldap)" OFF \
- IPV6 "IPv6 support" ON
+ IPV6 "IPv6 support" ON \
+ JAIL "Compilation within jail(8) (see Makefile)" OFF
GNU_CONFIGURE= yes
@@ -39,6 +40,8 @@ NAGIOSWWWDIR?= www/nagios
NAGIOSHTMURL?= /nagios
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
+NAGIOSPOLLIP?= 127.0.0.1
+
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= --with-nagios-user=${NAGIOSUSER} \
@@ -139,5 +142,8 @@ post-patch:
check_time.c check_users.c utils.c
@${REINPLACE_CMD} -e 's|setlocale (LC_ALL, "");|setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C");|g' ${WRKSRC}/plugins/${file}
.endfor
+.if defined(WITH_JAIL)
+ @${REINPLACE_CMD} -e 's# 127.0.0.1 # ${NAGIOSPOLLIP} #g' ${WRKSRC}/configure.in
+.endif
.include <bsd.port.post.mk>