diff options
author | Dean Bailey <alron@gentoo.org> | 2003-06-18 00:16:01 +0000 |
---|---|---|
committer | Dean Bailey <alron@gentoo.org> | 2003-06-18 00:16:01 +0000 |
commit | 13fec1049b6ff99b39eee7786b231996261b774a (patch) | |
tree | b90c80c785b20b3dd907b390625e2f2f888370c7 /net-analyzer/nagios-nsca | |
parent | nagios-nsca-2.3 bugfix (diff) | |
download | historical-13fec1049b6ff99b39eee7786b231996261b774a.tar.gz historical-13fec1049b6ff99b39eee7786b231996261b774a.tar.bz2 historical-13fec1049b6ff99b39eee7786b231996261b774a.zip |
nagios-nsca-2.3 bugfix
Diffstat (limited to 'net-analyzer/nagios-nsca')
-rw-r--r-- | net-analyzer/nagios-nsca/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/nagios-nsca/files/digest-nagios-nsca-2.3-r1 | 1 | ||||
-rw-r--r-- | net-analyzer/nagios-nsca/files/nsca-2.3 | 28 | ||||
-rw-r--r-- | net-analyzer/nagios-nsca/nagios-nsca-2.3-r1.ebuild | 47 |
4 files changed, 78 insertions, 2 deletions
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 +} |