summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjolnir@gentoo.org>2007-03-12 00:32:39 +0000
committerMartin Jackson <mjolnir@gentoo.org>2007-03-12 00:32:39 +0000
commit52da73f3c516d37ce5e5c9e2bd01eb293c20be16 (patch)
treec165776345732bf7aee35789db74aa53ee3872a9 /net-analyzer/nagios-nrpe
parentStable on Alpha + IA64. (diff)
downloadgentoo-2-52da73f3c516d37ce5e5c9e2bd01eb293c20be16.tar.gz
gentoo-2-52da73f3c516d37ce5e5c9e2bd01eb293c20be16.tar.bz2
gentoo-2-52da73f3c516d37ce5e5c9e2bd01eb293c20be16.zip
Version bump to 2.7.1
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-analyzer/nagios-nrpe')
-rw-r--r--net-analyzer/nagios-nrpe/ChangeLog8
-rw-r--r--net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.13
-rw-r--r--net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild94
3 files changed, 104 insertions, 1 deletions
diff --git a/net-analyzer/nagios-nrpe/ChangeLog b/net-analyzer/nagios-nrpe/ChangeLog
index d6a4422551b4..764c509944ed 100644
--- a/net-analyzer/nagios-nrpe/ChangeLog
+++ b/net-analyzer/nagios-nrpe/ChangeLog
@@ -1,6 +1,12 @@
# 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.36 2007/02/20 00:07:20 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-nrpe/ChangeLog,v 1.37 2007/03/12 00:32:39 mjolnir Exp $
+
+*nagios-nrpe-2.7.1 (12 Mar 2007)
+
+ 12 Mar 2007; Martin Jackson <mjolnir@gentoo.org>
+ +nagios-nrpe-2.7.1.ebuild:
+ Version bump to 2.7.1
20 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
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
new file mode 100644
index 000000000000..acd049449cc0
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/files/digest-nagios-nrpe-2.7.1
@@ -0,0 +1,3 @@
+MD5 c0983b6e2fa746e01019e6203faae5b2 nrpe-2.7.1.tar.gz 102000
+RMD160 7af488b8b05991cd8f49d28f716ecaf19cd6d838 nrpe-2.7.1.tar.gz 102000
+SHA256 e8013cc820a2e7352284e24053919622546d3dc2e39c26fbe148d22285809e54 nrpe-2.7.1.tar.gz 102000
diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild
new file mode 100644
index 000000000000..79101255c0a8
--- /dev/null
+++ b/net-analyzer/nagios-nrpe/nagios-nrpe-2.7.1.ebuild
@@ -0,0 +1,94 @@
+# 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 $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor"
+HOMEPAGE="http://www.nagios.org/"
+SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz"
+
+RESTRICT="nomirror"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+IUSE="ssl command-args"
+DEPEND=">=net-analyzer/nagios-plugins-1.3.0
+ ssl? ( dev-libs/openssl )"
+S="${WORKDIR}/nrpe-${PV}"
+
+pkg_setup() {
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /dev/null nagios
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf} `use_enable ssl` \
+ `use_enable command-args`"
+
+ # Generate the dh.h header file for better security (2005 Mar 20 eldad)
+ if useq ssl ; then
+ openssl dhparam -C 512 | sed -n '1,/BEGIN DH PARAMETERS/p' | grep -v "BEGIN DH PARAMETERS" > ${S}/src/dh.h
+ fi
+
+ ./configure ${myconf} \
+ --host=${CHOST} \
+ --prefix=/usr/nagios \
+ --localstatedir=/var/nagios \
+ --sysconfdir=/etc/nagios \
+ --with-nrpe-user=nagios \
+ --with-nrpe-grp=nagios \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+ emake all || die
+ # Add nifty nrpe check tool
+ cd contrib
+ $(tc-getCC) ${CFLAGS} -o nrpe_check_control nrpe_check_control.c
+}
+
+src_install() {
+ dodoc LEGAL Changelog README SECURITY README.SSL \
+ contrib/README.nrpe_check_control
+
+ insinto /etc/nagios
+ newins ${S}/sample-config/nrpe.cfg nrpe.cfg
+ fowners root:nagios /etc/nagios/nrpe.cfg
+ fperms 0640 /etc/nagios/nrpe.cfg
+
+ exeopts -m0750 -o nagios -g nagios
+ exeinto /usr/nagios/bin
+ doexe src/nrpe
+
+ exeopts -m0750 -o nagios -g nagios
+ exeinto /usr/nagios/libexec
+ doexe src/check_nrpe contrib/nrpe_check_control
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/nrpe-${PV} nrpe
+
+ cat << EOF > ${T}/55-nagios-revdep
+SEARCH_DIRS="/usr/nagios/bin /usr/nagios/libexec"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins ${T}/55-nagios-revdep
+}
+
+pkg_postinst() {
+ einfo
+ einfo "If you are using the nrpe daemon, remember to edit"
+ einfo "the config file /etc/nagios/nrpe.cfg"
+ einfo
+
+ if useq command-args ; then
+ ewarn "You have enabled command-args for NRPE. This enables"
+ ewarn "the ability for clients to supply arguments to commands"
+ ewarn "which should be run. "
+ ewarn "THIS IS CONSIDERED A SECURITY RISK!"
+ ewarn "Please read /usr/share/doc/${PF}/SECURITY.gz for more info"
+ fi
+}