summaryrefslogtreecommitdiff
path: root/net/nagios-nsca
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2007-11-26 22:14:23 +0000
committerseb <seb@pkgsrc.org>2007-11-26 22:14:23 +0000
commit4af75b1299178bb0f2e1061c9c0274bce5e74006 (patch)
treedce7aa67fd23ffe6451e7660b39d7860423d9f6a /net/nagios-nsca
parent7a3c5dca7b684619dc9cfe65445f07e07e116b35 (diff)
downloadpkgsrc-4af75b1299178bb0f2e1061c9c0274bce5e74006.tar.gz
- Minor fix to MESSAGE file.
- Add NAGIOS_USER user and NAGIOS_GROUP handling. - Explicitly configure NAGIOS_USER/NAGIOS_GROUP as Nagios NSCA user/group hence this package now follows NAGIOS_USER and NAGIOS_GROUP settings. - When deleting the package allow removal of directories shared with other Nagios packages to fail. - Bump PKGREVISION to 1
Diffstat (limited to 'net/nagios-nsca')
-rw-r--r--net/nagios-nsca/MESSAGE6
-rw-r--r--net/nagios-nsca/Makefile10
-rw-r--r--net/nagios-nsca/PLIST4
3 files changed, 14 insertions, 6 deletions
diff --git a/net/nagios-nsca/MESSAGE b/net/nagios-nsca/MESSAGE
index 93e30e84a40..cc5062d3034 100644
--- a/net/nagios-nsca/MESSAGE
+++ b/net/nagios-nsca/MESSAGE
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $
+$NetBSD: MESSAGE,v 1.2 2007/11/26 22:14:23 seb Exp $
Inetd Configuration:
@@ -11,12 +11,12 @@ of TCP wrappers, you need to do the following things:
1) Add a line to your /etc/services file as follows (modify the port
number as you see fit)
- nsca 5667/tcp # NSCA
+ nsca 5667/tcp # NSCA
2) Add an entry to /etc/inetd.conf as follows:
- nsca stream tcp nowait <nscabin> -c <nscacfg> --inetd
+ nsca stream tcp nowait <user> <nscabin> nsca -c <nscacfg> --inetd
- Replace <user> with the name of the user that nsca server should run as.
diff --git a/net/nagios-nsca/Makefile b/net/nagios-nsca/Makefile
index 3964a275ea0..993c8b73e31 100644
--- a/net/nagios-nsca/Makefile
+++ b/net/nagios-nsca/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2007/02/22 19:26:56 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2007/11/26 22:14:23 seb Exp $
#
DISTNAME= nsca-2.6
PKGNAME= nagios-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= net sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
@@ -21,6 +22,13 @@ CONF_FILES+= ${EGDIR}/${files} ${PKG_SYSCONFDIR}/${files}
.include "../../net/nagios-base/Makefile.common"
+CONFIGURE_ARGS+= --with-nsca-user=${NAGIOS_USER:Q}
+CONFIGURE_ARGS+= --with-nsca-grp=${NAGIOS_GROUP:Q}
+
+PKG_GROUPS+= ${NAGIOS_GROUP}
+PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}
+PKG_GECOS.${NAGIOS_USER}= Nagios Runtime User
+
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/bin
diff --git a/net/nagios-nsca/PLIST b/net/nagios-nsca/PLIST
index d782d4cedca..f611b61c4f3 100644
--- a/net/nagios-nsca/PLIST
+++ b/net/nagios-nsca/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2006/03/01 22:43:04 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2007/11/26 22:14:23 seb Exp $
bin/nsca
bin/send_nsca
share/examples/nagios/nsca.cfg
-@dirrm share/examples/nagios
+@unexec ${RMDIR} %D/share/examples/nagios 2>/dev/null || ${TRUE}