- 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)
This commit is contained in:
Wesley Shields 2009-04-08 23:53:22 +00:00
parent 2e844ae137
commit 85d080b14b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231908

View File

@ -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>