svn commit: r369602 - head/net-mgmt/nrpe
Mathieu Arnold
mat at FreeBSD.org
Tue Sep 30 13:52:59 UTC 2014
Author: mat
Date: Tue Sep 30 13:52:58 2014
New Revision: 369602
URL: http://svnweb.freebsd.org/changeset/ports/369602
QAT: https://qat.redports.org/buildarchive/r369602/
Log:
Try not to break a nagios installation when installing/upgrading nrpe by not
using /var/spool/nagios.
The nrpe.spec file puts localstatedir to their nagios spool directory, but
localstatedir is not used outside of the configure script, so, no need to have
it here.
Sponsored by: Absolight
Modified:
head/net-mgmt/nrpe/Makefile
head/net-mgmt/nrpe/pkg-plist
Modified: head/net-mgmt/nrpe/Makefile
==============================================================================
--- head/net-mgmt/nrpe/Makefile Tue Sep 30 13:52:33 2014 (r369601)
+++ head/net-mgmt/nrpe/Makefile Tue Sep 30 13:52:58 2014 (r369602)
@@ -3,7 +3,7 @@
PORTNAME= nrpe
DISTVERSION= 2.15
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net-mgmt
MASTER_SITES= SF/nagios/${PORTNAME}-2.x/${PORTNAME}-${PORTVERSION}
@@ -35,27 +35,21 @@ SSL_CFLAGS= -I${OPENSSLINC}
ARGS_CONFIGURE_ON= --enable-command-args
ARGS_CONFIGURE_OFF= --disable-command-args
-.include <bsd.port.options.mk>
-
NAGIOSUSER?= nagios
NAGIOSGROUP?= nagios
-NAGIOSDIR?= /var/spool/nagios
USERS= ${NAGIOSUSER}
GROUPS= ${NAGIOSGROUP}
-NAGIOSUID= 181
-NAGIOSGID= ${NAGIOSUID}
NRPE_PIDDIR?= /var/run/nrpe2
CONFIGURE_ARGS+=--bindir=${PREFIX}/sbin \
--libexecdir=${PREFIX}/libexec/nagios \
--sysconfdir=${PREFIX}/etc \
- --localstatedir=${NAGIOSDIR} \
--with-nrpe-user=${NAGIOSUSER} \
--with-nrpe-group=${NAGIOSGROUP}
-PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
- NAGIOSUID=${NAGIOSUID} \
+PLIST_SUB= NAGIOSUSER=${NAGIOSUSER} \
+ NAGIOSGROUP=${NAGIOSGROUP} \
NRPE_PIDDIR=${NRPE_PIDDIR}
SUB_LIST+= PIDDIR=${NRPE_PIDDIR}
@@ -68,7 +62,6 @@ post-patch:
${WRKSRC}/sample-config/nrpe.cfg.in
do-install:
${INSTALL} -d ${STAGEDIR}${NRPE_PIDDIR}
- ${INSTALL} -m 750 -d ${STAGEDIR}${NAGIOSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${STAGEDIR}${PREFIX}/sbin/nrpe2
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${STAGEDIR}${PREFIX}/libexec/nagios/check_nrpe2
Modified: head/net-mgmt/nrpe/pkg-plist
==============================================================================
--- head/net-mgmt/nrpe/pkg-plist Tue Sep 30 13:52:33 2014 (r369601)
+++ head/net-mgmt/nrpe/pkg-plist Tue Sep 30 13:52:58 2014 (r369602)
@@ -1,9 +1,4 @@
- at unexec cmp -s %D/etc/nrpe.cfg.sample %D/etc/nrpe.cfg && rm %D/etc/nrpe.cfg || true
-etc/nrpe.cfg.sample
- at exec test -f %B/nrpe.cfg || install -m 644 %D/%F %B/nrpe.cfg
+ at sample etc/nrpe.cfg.sample
libexec/nagios/check_nrpe2
sbin/nrpe2
- at dirrmtry libexec/nagios
- at exec install -m 755 -o %%NAGIOSUID%% -d %%NRPE_PIDDIR%%
- at dirrmtry %%NAGIOSDIR%%
- at dirrmtry %%NRPE_PIDDIR%%
+ at dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,755) %%NRPE_PIDDIR%%
More information about the svn-ports-head
mailing list