aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios4
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-22 00:10:23 +0800
committermat <mat@FreeBSD.org>2015-08-22 00:10:23 +0800
commit2da52fb33468b3d170b80b2fe2a673af201a26dd (patch)
tree54705e63eb443c6295022b2a6e83084b83611b74 /net-mgmt/nagios4
parent37438a60fd9f54dbf9cb6d4ee2bb3c4fb0f799c8 (diff)
downloadfreebsd-ports-gnome-2da52fb33468b3d170b80b2fe2a673af201a26dd.tar.gz
freebsd-ports-gnome-2da52fb33468b3d170b80b2fe2a673af201a26dd.tar.zst
freebsd-ports-gnome-2da52fb33468b3d170b80b2fe2a673af201a26dd.zip
Fixup perms on /usr/local/bin/nagios
Reported by: Joseph Mingrone on IRC Sponsored by: Absolight
Diffstat (limited to 'net-mgmt/nagios4')
-rw-r--r--net-mgmt/nagios4/Makefile4
-rw-r--r--net-mgmt/nagios4/pkg-plist4
2 files changed, 6 insertions, 2 deletions
diff --git a/net-mgmt/nagios4/Makefile b/net-mgmt/nagios4/Makefile
index 2749038da89c..88467f8c4c4a 100644
--- a/net-mgmt/nagios4/Makefile
+++ b/net-mgmt/nagios4/Makefile
@@ -3,6 +3,7 @@
PORTNAME= nagios
PORTVERSION= 4.1.1
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-4.x/${PORTNAME}-${PORTVERSION}
PKGNAMESUFFIX= 4
@@ -85,6 +86,8 @@ OPTIONS_SUB=
NANOSLEEP_CONFIGURE_ENABLE= nanosleep
+.if !defined(MAKING_PATCHES)
+# make clean patch makepatch MAKING_PATCHES=
post-patch:
${REINPLACE_CMD} -e 's/\<77\([0-7]\)\>/75\1/g; s/\<66\([0-7]\)\>/64\1/; /chmod/d; \
/\.cfg$$/s/$$/-sample/' \
@@ -93,6 +96,7 @@ post-patch:
post-patch-UNHANDLED_HACK-on:
${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' -e \
's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php
+.endif
post-install:
@${RMDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
diff --git a/net-mgmt/nagios4/pkg-plist b/net-mgmt/nagios4/pkg-plist
index a12856aefa18..2b443a5dbf0d 100644
--- a/net-mgmt/nagios4/pkg-plist
+++ b/net-mgmt/nagios4/pkg-plist
@@ -1,5 +1,5 @@
-bin/nagios
-bin/nagiostats
+@(,%%NAGIOSGROUP%%,755) bin/nagios
+@(,%%NAGIOSGROUP%%,755) bin/nagiostats
%%ETCDIR%%/cgi.cfg-sample
%%ETCDIR%%/nagios.cfg-sample
%%ETCDIR%%/objects/commands.cfg-sample