From dff771222f2c6d6916ee9dd9dfc095b50209f7f6 Mon Sep 17 00:00:00 2001 From: Martin Jackson Date: Tue, 13 Mar 2007 00:10:39 +0000 Subject: [PATCH] Install nrpe init.d script to fix #170547 Package-Manager: portage-2.1.2.2 --- net-analyzer/nagios-nrpe/ChangeLog | 11 +++++- net-analyzer/nagios-nrpe/Manifest | 26 ++++++++------ ...nrpe-2.7.1 => digest-nagios-nrpe-2.7.1-r1} | 0 net-analyzer/nagios-nrpe/files/nrpe | 36 +++++++++++++++++++ ...7.1.ebuild => nagios-nrpe-2.7.1-r1.ebuild} | 4 +-- 5 files changed, 63 insertions(+), 14 deletions(-) rename net-analyzer/nagios-nrpe/files/{digest-nagios-nrpe-2.7.1 => digest-nagios-nrpe-2.7.1-r1} (100%) create mode 100644 net-analyzer/nagios-nrpe/files/nrpe rename net-analyzer/nagios-nrpe/{nagios-nrpe-2.7.1.ebuild => nagios-nrpe-2.7.1-r1.ebuild} (96%) diff --git a/net-analyzer/nagios-nrpe/ChangeLog b/net-analyzer/nagios-nrpe/ChangeLog index 764c509944ed..a7b4ca98f595 100644 --- a/net-analyzer/nagios-nrpe/ChangeLog +++ b/net-analyzer/nagios-nrpe/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-analyzer/nagios-nrpe # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.37 2007/03/12 00:32:39 mjolnir Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.38 2007/03/13 00:10:39 mjolnir Exp $ + + 13 Mar 2007; Martin Jackson +files/nrpe, + -nagios-nrpe-2.7.1.ebuild, +nagios-nrpe-2.7.1-r1.ebuild: + Install nrpe init.d script to fix #170547 + +*nagios-nrpe-2.7.1-r1 (12 Mar 2007) + + 12 Mar 2007; <> nagios-nrpe-2.7.1-r1.ebuild files/digest-nagios-nrpe-2.7.1-r1 + # INSERT ENTRY HERE *nagios-nrpe-2.7.1 (12 Mar 2007) diff --git a/net-analyzer/nagios-nrpe/Manifest b/net-analyzer/nagios-nrpe/Manifest index 15a8be253fb2..b10f1a7c3a5e 100644 --- a/net-analyzer/nagios-nrpe/Manifest +++ b/net-analyzer/nagios-nrpe/Manifest @@ -1,3 +1,7 @@ +AUX nrpe 591 RMD160 27dec27f122cc022215e1c049b8749cc75746150 SHA1 08c79e7a2e0458c2e896e1470fe6de1591095881 SHA256 795470c9bce54145e54879b22ae9a1a3c288c87418bc45e4b9f5420112a27d5e +MD5 42f690b8d27db81fc5ead027cad36202 files/nrpe 591 +RMD160 27dec27f122cc022215e1c049b8749cc75746150 files/nrpe 591 +SHA256 795470c9bce54145e54879b22ae9a1a3c288c87418bc45e4b9f5420112a27d5e files/nrpe 591 AUX nrpe-1.8 462 RMD160 00f49ef6b7c795cf9d02b8dd4e93b65fbfcb202c SHA1 b91dbfedda11eab9afb49adca3e294269bfa3ae3 SHA256 2453bf826b428777736c9a04a605c83cdc774765372e0525704e73116045fff7 MD5 1ea034ce9ade9210fa8c4ade4d51d132 files/nrpe-1.8 462 RMD160 00f49ef6b7c795cf9d02b8dd4e93b65fbfcb202c files/nrpe-1.8 462 @@ -43,14 +47,14 @@ EBUILD nagios-nrpe-2.5.2.ebuild 2371 RMD160 84037d7b1f8f5f349496ca41d900bd6421cb MD5 30eaef707a3a90b513e6abd69f88ff9d nagios-nrpe-2.5.2.ebuild 2371 RMD160 84037d7b1f8f5f349496ca41d900bd6421cb2a65 nagios-nrpe-2.5.2.ebuild 2371 SHA256 4cd77ee1d1645c3695cdd244ce1d33dd9eb942e5a79afe951894a941c7db6d8c nagios-nrpe-2.5.2.ebuild 2371 -EBUILD nagios-nrpe-2.7.1.ebuild 2528 RMD160 e17e1f8985605230ae67d8d700aadd8375e57c4f SHA1 3f4d61e70d3901b6e594c99979819974ded9c175 SHA256 b0794268b0fff0246b6419e826f29bef5f4ea012ad12504b18438c6ebba5d583 -MD5 2ebe6263ae34d523f2b0b382b69f1361 nagios-nrpe-2.7.1.ebuild 2528 -RMD160 e17e1f8985605230ae67d8d700aadd8375e57c4f nagios-nrpe-2.7.1.ebuild 2528 -SHA256 b0794268b0fff0246b6419e826f29bef5f4ea012ad12504b18438c6ebba5d583 nagios-nrpe-2.7.1.ebuild 2528 -MISC ChangeLog 4686 RMD160 103a77b2cacbc62fd7b81231d154313a3f04bf51 SHA1 101811d234e994ac5d012be22416ee958493f61d SHA256 2cd3199ed80dc6ec479a577b35f1b45424001496a2ed8bc0c44f760e9f0000e2 -MD5 4549984b3af71a73cbf6a4930f35815c ChangeLog 4686 -RMD160 103a77b2cacbc62fd7b81231d154313a3f04bf51 ChangeLog 4686 -SHA256 2cd3199ed80dc6ec479a577b35f1b45424001496a2ed8bc0c44f760e9f0000e2 ChangeLog 4686 +EBUILD nagios-nrpe-2.7.1-r1.ebuild 2525 RMD160 c4668b04ec300db84c08d0313d4b3e2485a209b9 SHA1 ba3d3f79aea527844352634d761f7b8d803f0a52 SHA256 7bf0b51afb2937a97831cf860cd49e5231d5ac3c788124b55ecbf93679ff608d +MD5 5724d5b8cda72ca815b408fe93d7527e nagios-nrpe-2.7.1-r1.ebuild 2525 +RMD160 c4668b04ec300db84c08d0313d4b3e2485a209b9 nagios-nrpe-2.7.1-r1.ebuild 2525 +SHA256 7bf0b51afb2937a97831cf860cd49e5231d5ac3c788124b55ecbf93679ff608d nagios-nrpe-2.7.1-r1.ebuild 2525 +MISC ChangeLog 4996 RMD160 8087302449e380694a3c40ca4782925cdef6fd81 SHA1 bde75fce2fdf8629cce124e1797a9f4cf9629630 SHA256 3e97ef7e86d09b280b52eb940bf08fbe50203085ab04068d9ccb28f831c99802 +MD5 d9400d254c81e0a193be53c764b0d87e ChangeLog 4996 +RMD160 8087302449e380694a3c40ca4782925cdef6fd81 ChangeLog 4996 +SHA256 3e97ef7e86d09b280b52eb940bf08fbe50203085ab04068d9ccb28f831c99802 ChangeLog 4996 MISC metadata.xml 483 RMD160 17cbf2c8c726024d7ab5d9856f417ecfb6c8624a SHA1 57c75f6469598a3ad0828022b36db734752a6170 SHA256 20e6427e87ba3ff8ed5a3df13c3a5c4ac9e1e36fec8e14bc63fdb3e80d0743d9 MD5 56c82d2c8a7e7500f3fec23e5bc43cf1 metadata.xml 483 RMD160 17cbf2c8c726024d7ab5d9856f417ecfb6c8624a metadata.xml 483 @@ -70,6 +74,6 @@ SHA256 234b64d0371546d8665a25e680911d6fe7a482abdcae45b2daddd660dcd8574b files/di MD5 310907b9fcd3cc8c8fdf4f61c4025c5d files/digest-nagios-nrpe-2.5.2-r1 232 RMD160 1ffdb4206729412896ab41cd6acd0f04665e6cec files/digest-nagios-nrpe-2.5.2-r1 232 SHA256 234b64d0371546d8665a25e680911d6fe7a482abdcae45b2daddd660dcd8574b files/digest-nagios-nrpe-2.5.2-r1 232 -MD5 8a163c67ae46a781aee7fdcf0513d33d files/digest-nagios-nrpe-2.7.1 232 -RMD160 77cd36e13b2d5e17435ffbfcbdd19f5eac764bdd files/digest-nagios-nrpe-2.7.1 232 -SHA256 d87460c9711a708a89d2a9b37d3af57e16566c79f3c99b26a813b69e959dfc89 files/digest-nagios-nrpe-2.7.1 232 +MD5 8a163c67ae46a781aee7fdcf0513d33d files/digest-nagios-nrpe-2.7.1-r1 232 +RMD160 77cd36e13b2d5e17435ffbfcbdd19f5eac764bdd files/digest-nagios-nrpe-2.7.1-r1 232 +SHA256 d87460c9711a708a89d2a9b37d3af57e16566c79f3c99b26a813b69e959dfc89 files/digest-nagios-nrpe-2.7.1-r1 232 diff --git a/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1 b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1-r1 similarity index 100% rename from net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1 rename to net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1-r1 diff --git a/net-analyzer/nagios-nrpe/files/nrpe b/net-analyzer/nagios-nrpe/files/nrpe new file mode 100644 index 000000000000..768d860a7b17 --- /dev/null +++ b/net-analyzer/nagios-nrpe/files/nrpe @@ -0,0 +1,36 @@ +#!/sbin/runscript + +opts="${opts} reload" + +depend() { + need net +} + +start() { + ebegin "Starting nrpe" + start-stop-daemon --start --quiet --name nrpe \ + --startas /usr/nagios/bin/nrpe \ + -c nagios:nagios \ + -- -c /etc/nagios/nrpe.cfg \ + --daemon + eend $? "Failed to Start nrpe" +} + +stop() { + ebegin "Stopping nrpe" + start-stop-daemon --stop --quiet -n nrpe + eend $? "Failed to Stop nrpe" +} + +reload() { + ebegin "Reloading nrpe" + kill -HUP `pgrep nrpe | head -1` + eend $? "Failed to reload nrpe" +} + +restart() { + ebegin "Restarting nrpe" + svc_stop + svc_start + eend $? "Failed to Restart nrpe" +} diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild similarity index 96% rename from net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild rename to net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild index 79101255c0a8..3093312b5422 100644 --- a/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild +++ b/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild,v 1.1 2007/03/12 00:32:39 mjolnir Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1-r1.ebuild,v 1.1 2007/03/13 00:10:39 mjolnir Exp $ inherit eutils toolchain-funcs @@ -68,7 +68,7 @@ src_install() { doexe src/check_nrpe contrib/nrpe_check_control exeinto /etc/init.d - newexe ${FILESDIR}/nrpe-${PV} nrpe + newexe ${FILESDIR}/nrpe nrpe cat << EOF > ${T}/55-nagios-revdep SEARCH_DIRS="/usr/nagios/bin /usr/nagios/libexec" -- 2.26.2