summaryrefslogtreecommitdiff
path: root/net-mgmt
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 /net-mgmt
parentRabbyt is a sprite library for Python with game development in mind. (diff)
- Add option for building in a jail (default OFF). With this option set
the IP address that is used for polling is replaced with whatever is defined in ${NAGIOSPOLLIP} (default is 127.0.0.1). If you want to change this please set it in ports.conf. PR: ports/133069 Submitted by: L Campbell <llc2w@virginia.edu> Approved by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Notes
Notes: svn path=/head/; revision=231908
Diffstat (limited to 'net-mgmt')
-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>