Fix packaging with too paranoid sample config file mode.

Pro-actively fixes the port before espie@ commits his picky pkg_add patch.
This commit is contained in:
zhuk 2014-01-24 19:10:22 +00:00
parent 93e8b4ad0a
commit e604bbabbe
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.53 2013/12/17 08:46:45 sthen Exp $
# $OpenBSD: Makefile,v 1.54 2014/01/24 19:10:22 zhuk Exp $
V = 1.10.2
@ -10,6 +10,7 @@ DISTNAME = icinga-$V
PKGNAME-main = icinga-$V
PKGNAME-cgi = icinga-cgi-$V
PKGNAME-ido = icinga-idoutils-$V
REVISION-main = 0
WANTLIB = c crypto m pthread ssl
@ -89,5 +90,7 @@ post-install:
chown -R ${SHAREOWN}:${SHAREGRP} icinga-cgi conf
cd ${WRKSRC}/module/idoutils; \
pax -rw db ${PREFIX}/share/examples/icinga/
# no need to be paranoid for sample config
chmod ${SHAREMODE} ${PREFIX}/share/examples/icinga/resource.cfg
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST-main,v 1.15 2013/12/17 08:46:45 sthen Exp $
@comment $OpenBSD: PLIST-main,v 1.16 2014/01/24 19:10:22 zhuk Exp $
@newgroup _icinga:667
@newuser _icinga:667:_icinga:daemon:Icinga user:/var/icinga:/sbin/nologin
@comment done this way (rather than SYSCONFDIR/*) for safety...
@ -51,7 +51,9 @@ share/examples/icinga/objects/timeperiods.cfg
share/examples/icinga/objects/windows.cfg
@sample ${SYSCONFDIR}/objects/windows.cfg
share/examples/icinga/resource.cfg
@mode 0660
@sample ${SYSCONFDIR}/resource.cfg
@mode
share/examples/icinga/updates/
share/examples/icinga/updates/cgi.cfg_added_1.7_to_1.8.cfg
share/examples/icinga/updates/cgi.cfg_added_1.8_to_1.9.cfg