diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-10-22 02:53:56 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-10-22 02:53:56 +0000 |
commit | 95bee29c7e64209863ff75ce3aabf85a8be5d683 (patch) | |
tree | d85df0b6a74c0bd656bda89c1868397a983e5311 /net-analyzer/nsca | |
parent | Remove old; remove 'need net' from init script. (diff) | |
download | gentoo-2-95bee29c7e64209863ff75ce3aabf85a8be5d683.tar.gz gentoo-2-95bee29c7e64209863ff75ce3aabf85a8be5d683.tar.bz2 gentoo-2-95bee29c7e64209863ff75ce3aabf85a8be5d683.zip |
Remove old; remove 'need net' from init script.
(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'net-analyzer/nsca')
-rw-r--r-- | net-analyzer/nsca/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/nsca/files/nsca-nagios3 | 36 | ||||
-rw-r--r-- | net-analyzer/nsca/files/nsca.init | 3 | ||||
-rw-r--r-- | net-analyzer/nsca/nsca-2.7.2-r100.ebuild | 53 |
4 files changed, 6 insertions, 92 deletions
diff --git a/net-analyzer/nsca/ChangeLog b/net-analyzer/nsca/ChangeLog index bbd8e12d12d5..f3ab91a6d03e 100644 --- a/net-analyzer/nsca/ChangeLog +++ b/net-analyzer/nsca/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/nsca # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/ChangeLog,v 1.9 2012/10/14 18:42:57 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/ChangeLog,v 1.10 2012/10/22 02:53:56 flameeyes Exp $ + + 22 Oct 2012; Diego E. Pettenò <flameeyes@gentoo.org> -files/nsca-nagios3, + -nsca-2.7.2-r100.ebuild, files/nsca.init: + Remove old; remove 'need net' from init script. 14 Oct 2012; Raúl Porcel <armin76@gentoo.org> nsca-2.7.2-r103.ebuild: alpha/sparc/x86 stable wrt #436740 diff --git a/net-analyzer/nsca/files/nsca-nagios3 b/net-analyzer/nsca/files/nsca-nagios3 deleted file mode 100644 index bef0cb7db976..000000000000 --- a/net-analyzer/nsca/files/nsca-nagios3 +++ /dev/null @@ -1,36 +0,0 @@ -#!/sbin/runscript - -opts="${opts} reload" - -depend() { - need net -} - -start() { - ebegin "Starting nsca" - start-stop-daemon --start --quiet --name nsca \ - --startas /usr/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" -} - -reload() { - ebegin "Reloading nsca" - kill -HUP `pgrep nsca` - eend $? "Failed to reload nsca" -} - -restart() { - ebegin "Restarting nsca" - svc_stop - svc_start - eend $? "Failed to Restart nsca" -} diff --git a/net-analyzer/nsca/files/nsca.init b/net-analyzer/nsca/files/nsca.init index 36c72d5c5700..c95b955730f1 100644 --- a/net-analyzer/nsca/files/nsca.init +++ b/net-analyzer/nsca/files/nsca.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/files/nsca.init,v 1.2 2012/08/23 23:08:41 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/files/nsca.init,v 1.3 2012/10/22 02:53:56 flameeyes Exp $ : ${CFGFILE:=/etc/nagios/nsca.cfg} @@ -21,7 +21,6 @@ pidfile=$(get_config pid_file) depend() { config ${CFGFILE} - need net case $(get_config nsca_user) in icinga) need icinga ;; nagios) need nagios ;; diff --git a/net-analyzer/nsca/nsca-2.7.2-r100.ebuild b/net-analyzer/nsca/nsca-2.7.2-r100.ebuild deleted file mode 100644 index 8c4e3fabc230..000000000000 --- a/net-analyzer/nsca/nsca-2.7.2-r100.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r100.ebuild,v 1.1 2012/08/23 21:27:08 flameeyes Exp $ - -inherit multilib - -DESCRIPTION="Nagios NSCA - Nagios Service Check Acceptor" -HOMEPAGE="http://www.nagios.org/" -SRC_URI="mirror://sourceforge/nagios/nsca-${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 ppc ppc64 sparc x86" -IUSE="" - -DEPEND=">=net-analyzer/nagios-plugins-1.3.1 - >=dev-libs/libmcrypt-2.5.1-r4" -S="${WORKDIR}/nsca-${PV}" - -src_compile() { - ./configure \ - --host=${CHOST} \ - --prefix=/usr \ - --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 "emake failed" -} - -src_install() { - dodoc LEGAL Changelog README SECURITY - insinto /etc/nagios - doins "${S}"/sample-config/nsca.cfg - doins "${S}"/sample-config/send_nsca.cfg - - exeinto /usr/bin - doexe src/nsca - fowners nagios:nagios /usr/bin/nsca - - exeinto /usr/$(get_libdir)/nagios/plugins - doexe src/send_nsca - fowners nagios:nagios /usr/$(get_libdir)/nagios/plugins/send_nsca - newinitd "${FILESDIR}"/nsca-nagios3 nsca -} -pkg_postinst() { - einfo - einfo "If you are using the nsca daemon, remember to edit" - einfo "the config file /etc/nagios/nsca.cfg" - einfo -} |