Fixup perms on /usr/local/bin/nagios

Reported by:	Joseph Mingrone on IRC
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-08-21 16:10:23 +00:00
parent 8f40997de1
commit 85a18f316d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394974
2 changed files with 6 additions and 2 deletions

View file

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

View file

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