summaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorsergei <sergei@FreeBSD.org>2003-12-13 22:47:09 +0000
committersergei <sergei@FreeBSD.org>2003-12-13 22:47:09 +0000
commit98e79e1544c94c85c0c08431a6a877b2441807b7 (patch)
tree456177252bd12732e98880bf6b91a9f762bfe7a9 /net-mgmt
parent98b92f23424c47408ca6cfbc46bd1ea76b03c396 (diff)
downloadFreeBSD-ports-98e79e1544c94c85c0c08431a6a877b2441807b7.zip
FreeBSD-ports-98e79e1544c94c85c0c08431a6a877b2441807b7.tar.gz
Add nsca 2.4, Nagios Service Check Acceptor.
The Nagios Service Check Acceptor (NSCA) is used to send service check results to a central Nagios server. This consists of the "nsca" daemon which runs on the main Nagios server and accepts results and the "check_nsca" plugin which is used to send results to the server. Author: Ethan Galstad WWW: http://www.nagios.org/ PR: 59436 Submitted by: Paul Dlug <paul@nerdlabs.com>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nsca/Makefile40
-rw-r--r--net-mgmt/nsca/distinfo1
-rw-r--r--net-mgmt/nsca/pkg-descr7
-rw-r--r--net-mgmt/nsca/pkg-plist12
4 files changed, 60 insertions, 0 deletions
diff --git a/net-mgmt/nsca/Makefile b/net-mgmt/nsca/Makefile
new file mode 100644
index 0000000..76d7988
--- /dev/null
+++ b/net-mgmt/nsca/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: nsca
+# Date created: 2003-11-18
+# Whom: Paul Dlug <paul@nerdlabs.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= nsca
+PORTVERSION= 2.4
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= nagios
+
+MAINTAINER= paul@nerdlabs.com
+COMMENT= Nagios Service Check Acceptor
+
+BUILD_DEPENDS= ${NAGIOS_DIR}:${PORTSDIR}/net/nagios
+RUN_DEPENDS= ${NAGIOS_DIR}:${PORTSDIR}/net/nagios
+LIB_DEPENDS= mcrypt.8:${PORTSDIR}/security/libmcrypt
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} --localstatedir=/var/spool/nagios
+
+NAGIOS_DIR= ${LOCALBASE}/libexec/nagios
+CONF_DIR= ${LOCALBASE}/etc/nagios
+
+DOCS= Changelog LEGAL README SECURITY
+
+# NOTE: this port installs into ${LOCALBASE} instead of ${PREFIX}
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/nsca ${NAGIOS_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/send_nsca ${NAGIOS_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/nsca.cfg ${CONF_DIR}/nsca.cfg.sample
+ ${INSTALL_DATA} ${WRKSRC}/send_nsca.cfg ${CONF_DIR}/send_nsca.cfg.sample
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/nsca/distinfo b/net-mgmt/nsca/distinfo
new file mode 100644
index 0000000..cbc7714
--- /dev/null
+++ b/net-mgmt/nsca/distinfo
@@ -0,0 +1 @@
+MD5 (nsca-2.4.tar.gz) = ab58553a87940f574ec54189a43a70bc
diff --git a/net-mgmt/nsca/pkg-descr b/net-mgmt/nsca/pkg-descr
new file mode 100644
index 0000000..bb5b01a
--- /dev/null
+++ b/net-mgmt/nsca/pkg-descr
@@ -0,0 +1,7 @@
+The Nagios Service Check Acceptor (NSCA) is used to send service check
+results to a central Nagios server. This consists of the "nsca" daemon
+which runs on the main Nagios server and accepts results and the
+"check_nsca" plugin which is used to send results to the server.
+
+Author: Ethan Galstad
+WWW: http://www.nagios.org/
diff --git a/net-mgmt/nsca/pkg-plist b/net-mgmt/nsca/pkg-plist
new file mode 100644
index 0000000..a74df08
--- /dev/null
+++ b/net-mgmt/nsca/pkg-plist
@@ -0,0 +1,12 @@
+@comment $FreeBSD$
+%%PORTDOCS%%%%DOCSDIR%%/Changelog
+%%PORTDOCS%%%%DOCSDIR%%/LEGAL
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/SECURITY
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@comment This port installs into LOCALBASE as opposed to PREFIX
+@cwd %%LOCALBASE%%
+etc/nagios/nsca.cfg.sample
+etc/nagios/send_nsca.cfg.sample
+libexec/nagios/nsca
+libexec/nagios/send_nsca
OpenPOWER on IntegriCloud