aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2009-03-30 22:13:49 +0800
committerwxs <wxs@FreeBSD.org>2009-03-30 22:13:49 +0800
commit2730028690c2987d77c46963971ecacecfbde786 (patch)
tree40f1682e7190e1cdde0995a248467868c3d57e58 /net-mgmt/nagios
parenta0d40dc6009485dd7b8904846c80a785b42f5ce8 (diff)
downloadfreebsd-ports-gnome-2730028690c2987d77c46963971ecacecfbde786.tar.gz
freebsd-ports-gnome-2730028690c2987d77c46963971ecacecfbde786.tar.zst
freebsd-ports-gnome-2730028690c2987d77c46963971ecacecfbde786.zip
- 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)
Diffstat (limited to 'net-mgmt/nagios')
-rw-r--r--net-mgmt/nagios/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile
index 93deff4bf6c2..b21bfe40654c 100644
--- a/net-mgmt/nagios/Makefile
+++ b/net-mgmt/nagios/Makefile
@@ -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