pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nagios-nsca Initial import of nagios-nsca 2.0, bas...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f09c4c9ed083
branches: trunk
changeset: 508380:f09c4c9ed083
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Sat Feb 18 17:13:45 2006 +0000
description:
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:
net/nagios-nsca/DESCR | 2 ++
net/nagios-nsca/MESSAGE | 26 ++++++++++++++++++++++++++
net/nagios-nsca/Makefile | 30 ++++++++++++++++++++++++++++++
net/nagios-nsca/Makefile.common | 26 ++++++++++++++++++++++++++
net/nagios-nsca/PLIST | 4 ++++
net/nagios-nsca/distinfo | 6 ++++++
net/nagios-nsca/patches/patch-aa | 22 ++++++++++++++++++++++
7 files changed, 116 insertions(+), 0 deletions(-)
diffs (144 lines):
diff -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/DESCR Sat Feb 18 17:13:45 2006 +0000
@@ -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 -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/MESSAGE Sat Feb 18 17:13:45 2006 +0000
@@ -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 -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/Makefile Sat Feb 18 17:13:45 2006 +0000
@@ -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@localhost
+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 -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/Makefile.common Sat Feb 18 17:13:45 2006 +0000
@@ -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 -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/PLIST Sat Feb 18 17:13:45 2006 +0000
@@ -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 -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/distinfo Sat Feb 18 17:13:45 2006 +0000
@@ -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 -r 64a8ead5f438 -r f09c4c9ed083 net/nagios-nsca/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-nsca/patches/patch-aa Sat Feb 18 17:13:45 2006 +0000
@@ -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
+
+
+
Home |
Main Index |
Thread Index |
Old Index