- Merge UNHANDLED_HACK option from net-mgmt/nagios-devel. This option

is off by default so do not bump PORTREVISION.

PR:		ports/132712
Submitted by:	Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
This commit is contained in:
Wesley Shields 2009-03-30 14:13:49 +00:00
parent 969f715ab0
commit e39ca14794
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231307

View file

@ -25,7 +25,8 @@ CONFLICTS= nagios-[12].* nagios-devel-*
OPTIONS= EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8.0+]" off \
NANOSLEEP "Use nanosleep in event timing" off \
EVENT_BROKER "Enable event broker functionality" off
EVENT_BROKER "Enable event broker functionality" off \
UNHANDLED_HACK "Display passive checks in unhandled queries" off
GNU_CONFIGURE= yes
@ -104,6 +105,12 @@ CONFIGURE_ARGS+= --enable-event-broker
CONFIGURE_ARGS+= --disable-event-broker
.endif
post-patch:
.if defined(WITH_UNHANDLED_HACK)
@${REINPLACE_CMD} -e 's#\&serviceprops=42\&#\&serviceprops=10\&#g' \
-e 's#\&hostprops=42\"#\&hostprops=10\"#g' ${WRKSRC}/html/side.html.in
.endif
pre-install:
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL