summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDean Bailey <alron@gentoo.org>2003-06-18 00:16:01 +0000
committerDean Bailey <alron@gentoo.org>2003-06-18 00:16:01 +0000
commitd41bcc7d370dfce5f70fb296db33e07aac3990ef (patch)
treeba15f9e69ed7051c79eec0edb3a9afd4e198a44e /net-analyzer/nagios-nsca
parentnagios-nsca-2.3 bugfix (diff)
downloadgentoo-2-d41bcc7d370dfce5f70fb296db33e07aac3990ef.tar.gz
gentoo-2-d41bcc7d370dfce5f70fb296db33e07aac3990ef.tar.bz2
gentoo-2-d41bcc7d370dfce5f70fb296db33e07aac3990ef.zip
nagios-nsca-2.3 bugfix
Diffstat (limited to 'net-analyzer/nagios-nsca')
-rw-r--r--net-analyzer/nagios-nsca/ChangeLog6
-rw-r--r--net-analyzer/nagios-nsca/Manifest4
-rw-r--r--net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r11
-rw-r--r--net-analyzer/nagios-nsca/files/nsca-2.328
-rw-r--r--net-analyzer/nagios-nsca/nagios-nsca-2.3-r1.ebuild47
5 files changed, 83 insertions, 3 deletions
diff --git a/net-analyzer/nagios-nsca/ChangeLog b/net-analyzer/nagios-nsca/ChangeLog
index 241fac5d8413..8aaa8d183cd8 100644
--- a/net-analyzer/nagios-nsca/ChangeLog
+++ b/net-analyzer/nagios-nsca/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/nagios-nsca
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/ChangeLog,v 1.6 2003/03/01 01:21:24 alron Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/ChangeLog,v 1.7 2003/06/18 00:15:58 alron Exp $
+
+*nagios-nsca-2.3-r1
+ 17 Jun 2003; Dean Bailey <alron@gentoo.org> nagios-nsca-2.3-r1 :
+ Bug fix for bug #22498
28 Feb 2003; Dean Bailey <alron@gentoo.org> nagios-nsca-2.3 :
Moved to x86 stable.
diff --git a/net-analyzer/nagios-nsca/Manifest b/net-analyzer/nagios-nsca/Manifest
index 8539e576334d..07070441424b 100644
--- a/net-analyzer/nagios-nsca/Manifest
+++ b/net-analyzer/nagios-nsca/Manifest
@@ -1,8 +1,8 @@
-MD5 c4ee613ba1ed1b8fe07869d8cca20917 ChangeLog 832
+MD5 0d61482fcf5c9accf88fab306a3846ac ChangeLog 945
MD5 d716f6731cc2f0181c1854e2ec19b6bb nagios-nsca-2.1.ebuild 1367
MD5 154efc948eee0cc77ef46579dc90de9d nagios-nsca-2.2.ebuild 1357
MD5 a736d375662ba151a518fe0f23ce4820 nagios-nsca-2.3.ebuild 1356
-MD5 aa545b21c02bbdc98bb24daee30733b7 nagios-nsca-2.3-r1.ebuild 1355
+MD5 1f1027da783c9b82ac7df0aeeda4fd22 nagios-nsca-2.3-r1.ebuild 1363
MD5 529c269b478256730d697c47a66c084e files/nsca-2.3 462
MD5 3852939bfaa11e53623bbb4a0deee1ab files/digest-nagios-nsca-2.1 59
MD5 f5d33d222c3c1f706c7e7aac7ad072d5 files/digest-nagios-nsca-2.2 59
diff --git a/net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1 b/net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1
new file mode 100644
index 000000000000..d6ef7d97b284
--- /dev/null
+++ b/net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1
@@ -0,0 +1 @@
+MD5 46723112e2a47bfbd1323a3b37c99896 nsca-2.3.tar.gz 54220
diff --git a/net-analyzer/nagios-nsca/files/nsca-2.3 b/net-analyzer/nagios-nsca/files/nsca-2.3
new file mode 100644
index 000000000000..60f813f2c70e
--- /dev/null
+++ b/net-analyzer/nagios-nsca/files/nsca-2.3
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting nsca"
+ start-stop-daemon --start --quiet --name nsca \
+ --startas /usr/nagios/bin/nsca \
+ -c nagios:nagios \
+ -- -c /etc/nagios/nsca.cfg \
+ --daemon
+ eend $? "Failed to Start nsca"
+}
+
+stop() {
+ ebegin "Stopping nsca"
+ start-stop-daemon --stop --quiet -n nsca
+ eend $? "Failed to Stop nsca"
+}
+
+restart() {
+ ebegin "Restarting nsca"
+ svc_stop
+ svc_start
+ eend $? "Failed to Restart nsca"
+}
diff --git a/net-analyzer/nagios-nsca/nagios-nsca-2.3-r1.ebuild b/net-analyzer/nagios-nsca/nagios-nsca-2.3-r1.ebuild
new file mode 100644
index 000000000000..be44f674d6bd
--- /dev/null
+++ b/net-analyzer/nagios-nsca/nagios-nsca-2.3-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nsca/nagios-nsca-2.3-r1.ebuild,v 1.1 2003/06/18 00:15:58 alron Exp $
+DESCRIPTION="Nagios $PV NSCA - Nagios Service Check Acceptor"
+HOMEPAGE="http://www.nagios.org/"
+SRC_URI="mirror://sourceforge/nagios/nsca-2.3.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~ppc ~sparc"
+IUSE=""
+DEPEND=">=net-analyzer/nagios-plugins-1.3.0
+ >=libmcrypt-2.5.1-r4"
+S="${WORKDIR}/nsca-2.3"
+
+src_compile() {
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr/nagios \
+ --localstatedir=/var/nagios \
+ --sysconfdir=/etc/nagios \
+ --with-nsca-user=nagios \
+ --with-nsca-grp=nagios \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+ emake all || die
+}
+
+src_install() {
+ dodoc LEGAL Changelog README SECURITY
+ insinto /etc/nagios
+ doins ${FILESDIR}/nsca.cfg
+ doins ${FILESDIR}/send_nsca.cfg
+ exeinto /usr/nagios/bin
+ doexe src/nsca
+ fowners nagios:nagios /usr/nagios/bin/nsca
+ exeinto /usr/nagios/libexec
+ doexe src/send_nsca
+ fowners nagios:nagios /usr/nagios/libexec/send_nsca
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/nsca-2.3 nsca
+}
+pkg_postinst() {
+ einfo
+ einfo "If you are using the nsca daemon, remember to edit"
+ einfo "the config file /etc/nagios/nsca.cfg"
+ einfo
+}