diff options
author | bouyer <bouyer@pkgsrc.org> | 2006-02-18 17:13:45 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2006-02-18 17:13:45 +0000 |
commit | 054c36856c7b234fdcd70f9bfbe6e1fb5bae6373 (patch) | |
tree | 02850c03e968590c7dee42790830803844b3df67 /net/nagios-nsca | |
parent | e7891671795e7f70ab3b41ad8973ded2f554395c (diff) | |
download | pkgsrc-054c36856c7b234fdcd70f9bfbe6e1fb5bae6373.tar.gz |
Initial import of nagios-nsca 2.0, based on the 1.3.x package in pkgsrc-wip.
nsca and send_nsca are remote/passive network service daemons for nagios.
These are orignally from the NetSaint package (NSCA = NetSaint Check Acceptor)
Diffstat (limited to 'net/nagios-nsca')
-rw-r--r-- | net/nagios-nsca/DESCR | 2 | ||||
-rw-r--r-- | net/nagios-nsca/MESSAGE | 26 | ||||
-rw-r--r-- | net/nagios-nsca/Makefile | 30 | ||||
-rw-r--r-- | net/nagios-nsca/Makefile.common | 26 | ||||
-rw-r--r-- | net/nagios-nsca/PLIST | 4 | ||||
-rw-r--r-- | net/nagios-nsca/distinfo | 6 | ||||
-rw-r--r-- | net/nagios-nsca/patches/patch-aa | 22 |
7 files changed, 116 insertions, 0 deletions
diff --git a/net/nagios-nsca/DESCR b/net/nagios-nsca/DESCR new file mode 100644 index 00000000000..3f214c26466 --- /dev/null +++ b/net/nagios-nsca/DESCR @@ -0,0 +1,2 @@ +nsca and send_nsca are remote/passive network service daemons for nagios. +These are orignally from the NetSaint package (NSCA = NetSaint Check Acceptor) diff --git a/net/nagios-nsca/MESSAGE b/net/nagios-nsca/MESSAGE new file mode 100644 index 00000000000..93e30e84a40 --- /dev/null +++ b/net/nagios-nsca/MESSAGE @@ -0,0 +1,26 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $ + +Inetd Configuration: + +If you plan on running nsca under inetd or xinetd and making use +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 + +2) Add an entry to /etc/inetd.conf as follows: + + + nsca stream tcp nowait <nscabin> -c <nscacfg> --inetd + + + - Replace <user> with the name of the user that nsca server should run as. + - Replace <nscabin> with the path to the nsca binary on your system. + - Replace <nscacfg> with the path to the nsca config file on your system. + +=========================================================================== diff --git a/net/nagios-nsca/Makefile b/net/nagios-nsca/Makefile new file mode 100644 index 00000000000..e2963e8c012 --- /dev/null +++ b/net/nagios-nsca/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $ +# + +PKGNAME= nagios-${DISTNAME} +DISTNAME= nsca-${NSCAVERSION} +NSCAVERSION= 2.5 +CATEGORIES= net sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://www.nagios.org/ +COMMENT= Remote/passive network service for nagios + +EGDIR= ${PREFIX}/share/examples/nagios +EGFILES= nsca.cfg + +.for files in ${EGFILES} +CONF_FILES+= ${EGDIR}/${files} ${PKG_SYSCONFDIR}/${files} +.endfor + +.include "../../net/nagios-base/Makefile.common" + +.include "../../mk/bsd.prefs.mk" +.include "../../security/libmcrypt/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" + +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/sample-config/nsca.cfg ${EGDIR} diff --git a/net/nagios-nsca/Makefile.common b/net/nagios-nsca/Makefile.common new file mode 100644 index 00000000000..94ecca9ed5d --- /dev/null +++ b/net/nagios-nsca/Makefile.common @@ -0,0 +1,26 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $ +# + +NAGIOS_USER?= nagios +NAGIOS_GROUP?= ${NAGIOS_USER} + +NAGIOSADM_USER?= nagadmin +NAGIOSADM_GROUP?= ${NAGIOSADM_USER} + + +USE_X11= YES +GNU_CONFIGURE= YES +USE_TOOLS+= gmake +USE_PKGINSTALL= YES + +PKG_SYSCONFSUBDIR= nagios + +PERL5_REQD= 5.6 + +CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios +CONFIGURE_ARGS+= --datadir=${PREFIX}/share/nagios +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} +CONFIGURE_ARGS+= --localstatedir=/var + +CONFIGURE_ARGS+= --with-cgiurl=/nagios/cgi-bin +CONFIGURE_ARGS+= --with-htmurl=/nagios diff --git a/net/nagios-nsca/PLIST b/net/nagios-nsca/PLIST new file mode 100644 index 00000000000..9e2d7ccc424 --- /dev/null +++ b/net/nagios-nsca/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $ +bin/nsca +bin/send_nsca +share/examples/nagios/nsca.cfg diff --git a/net/nagios-nsca/distinfo b/net/nagios-nsca/distinfo new file mode 100644 index 00000000000..561b56ae8f6 --- /dev/null +++ b/net/nagios-nsca/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $ + +SHA1 (nsca-2.5.tar.gz) = d20bae0d409b5f259b065f16aa67bcc9edf47b1c +RMD160 (nsca-2.5.tar.gz) = 1993d57873644726603b687181fcf8fe49fea758 +Size (nsca-2.5.tar.gz) = 99141 bytes +SHA1 (patch-aa) = 3a2b538daeb4a4ec84e4ee947355b59284347ce1 diff --git a/net/nagios-nsca/patches/patch-aa b/net/nagios-nsca/patches/patch-aa new file mode 100644 index 00000000000..290b6312fc6 --- /dev/null +++ b/net/nagios-nsca/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/02/18 17:13:45 bouyer Exp $ + +--- sample-config/nsca.cfg.in.orig 2006-01-26 22:42:02.000000000 +0100 ++++ sample-config/nsca.cfg.in 2006-01-26 22:42:29.000000000 +0100 +@@ -57,7 +57,7 @@ + # This is the location of the Nagios command file that the daemon + # should write all service check results that it receives. + +-command_file=@localstatedir@/rw/nagios.cmd ++command_file=@localstatedir@/run/nagios/rw/nagios.cmd + + + # ALTERNATE DUMP FILE +@@ -70,7 +70,7 @@ + # it starts Nagios. Or you may simply choose to ignore any + # check results received while Nagios was not running... + +-alternate_dump_file=@localstatedir@/rw/nsca.dump ++alternate_dump_file=@localstatedir@/run/nagios/rw/nsca.dump + + + |