diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2010-10-28 11:27:42 +0800 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2010-10-28 11:27:42 +0800 |
commit | a81b34cb53bd816f2854ddee31d8510c14c4cf3e (patch) | |
tree | 792b7c5ddd78f685b90538b8b7a317f15a4d4424 | |
parent | 1def1476070337ff5846ec1540df39087b00035e (diff) | |
download | freebsd-ports-gnome-a81b34cb53bd816f2854ddee31d8510c14c4cf3e.tar.gz freebsd-ports-gnome-a81b34cb53bd816f2854ddee31d8510c14c4cf3e.tar.zst freebsd-ports-gnome-a81b34cb53bd816f2854ddee31d8510c14c4cf3e.zip |
Create proper default directory for pidfile
PR: ports/151230
Submitted by: Eric F Crist <ecrist@secure-computing.net>
Approved by: Maintainer timeout
-rw-r--r-- | net-mgmt/nrpe2/Makefile | 3 | ||||
-rw-r--r-- | net-mgmt/nrpe2/pkg-plist | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/net-mgmt/nrpe2/Makefile b/net-mgmt/nrpe2/Makefile index bdb980de2659..7b00f01c1f0e 100644 --- a/net-mgmt/nrpe2/Makefile +++ b/net-mgmt/nrpe2/Makefile @@ -7,7 +7,7 @@ PORTNAME= nrpe DISTVERSION= 2.12 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= SF/nagios/${PORTNAME}-2.x/${PORTNAME}-${PORTVERSION} @@ -83,6 +83,7 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${PREFIX}/sbin/nrpe2 ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${PREFIX}/libexec/nagios/check_nrpe2 ${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${PREFIX}/etc/nrpe.cfg-sample + ${MKDIR} ${NAGIOSDIR} post-install: @${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL diff --git a/net-mgmt/nrpe2/pkg-plist b/net-mgmt/nrpe2/pkg-plist index cd9fa760324b..797a99c527ab 100644 --- a/net-mgmt/nrpe2/pkg-plist +++ b/net-mgmt/nrpe2/pkg-plist @@ -1,4 +1,5 @@ etc/nrpe.cfg-sample libexec/nagios/check_nrpe2 sbin/nrpe2 +@unexec rmdir /var/spool/nagios 2>/dev/null || true @unexec rmdir %%NAGIOSDIR%% 2>/dev/null || true |