From 8dabfcbee82cd5ba0b917c9f81eed44d74d8ed0f Mon Sep 17 00:00:00 2001 From: Tobias Scherbaum Date: Mon, 31 Mar 2008 18:29:05 +0000 Subject: Add libexecdir, patch by Wolfram Schlich #215605 svn path=/; revision=32 --- net-analyzer/nagios-nrpe/Manifest | 2 +- .../nagios-nrpe/nagios-nrpe-2.12-r100.ebuild | 84 --------------------- .../nagios-nrpe/nagios-nrpe-2.12-r101.ebuild | 85 ++++++++++++++++++++++ 3 files changed, 86 insertions(+), 85 deletions(-) delete mode 100644 net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r100.ebuild create mode 100644 net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r101.ebuild diff --git a/net-analyzer/nagios-nrpe/Manifest b/net-analyzer/nagios-nrpe/Manifest index 51b49f8..0a910ae 100644 --- a/net-analyzer/nagios-nrpe/Manifest +++ b/net-analyzer/nagios-nrpe/Manifest @@ -1,4 +1,4 @@ AUX nrpe-nagios3 584 RMD160 959ce8e40f61a172195e49a604ad60b5192e3a68 SHA1 6468fed5634fca87520f84ab506dac7c5401e03e SHA256 3fa45bb6136eba8a5b37f484c68887898e88dc1762a8f8b85ded4bb3d57e32c8 DIST nrpe-2.12.tar.gz 405725 RMD160 3413f84c9bb926a4dd55cc02d7b0a01bd7fc99ee SHA1 208595c175d726e8e377d565b21897f4de1648cc SHA256 7e8d093abef7d7ffc7219ad334823bdb612121df40de2dbaec9c6d0adeb04cfc -EBUILD nagios-nrpe-2.12-r100.ebuild 2314 RMD160 b4e9f8ac0c3e65e59f2e4518c41dd17fa0e587c9 SHA1 cf134352495da27b6b7e53d96f83e02d740e61eb SHA256 de105092dadf4c064904b44527e84613c5025d8cce5c5fa537d20e96690e631b +EBUILD nagios-nrpe-2.12-r101.ebuild 2365 RMD160 f6aa6eb0ebdcf386a83a4446b2894cd0fa13459f SHA1 190c1d6041536c26749d9f5813cb397ab767ca98 SHA256 0bc53aae0e28b17ad4f5f065297e6f2b928f49f10a6173c9d1352bed767a7975 MISC metadata.xml 422 RMD160 4411d72c4f4fcf99b8b8e749fccce1fc72315acc SHA1 a95181e936cdb1913067d09e85439ed0fb82d4ea SHA256 53db66821b73f032d46f1db7ca72a341982e02c424bb1eba37d3b7ed70b2bfb9 diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r100.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r100.ebuild deleted file mode 100644 index 44514fe..0000000 --- a/net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r100.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2008 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.12.ebuild,v 1.1 2008/03/14 07:27:04 dertobi123 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="mirror" -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 - - econf ${myconf} \ - --host=${CHOST} \ - --prefix=/usr \ - --localstatedir=/var/nagios \ - --sysconfdir=/etc/nagios \ - --with-nrpe-user=nagios \ - --with-nrpe-grp=nagios || die "econf failed" - emake all || die "make failed" - # 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/bin - doexe src/nrpe - - exeopts -m0750 -o nagios -g nagios - exeinto /usr/$(get_libdir)/nagios/plugins - doexe src/check_nrpe contrib/nrpe_check_control - - newinitd "${FILESDIR}"/nrpe-nagios3 nrpe -} - -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.bz2 for more info" - fi -} diff --git a/net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r101.ebuild b/net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r101.ebuild new file mode 100644 index 0000000..5ea0092 --- /dev/null +++ b/net-analyzer/nagios-nrpe/nagios-nrpe-2.12-r101.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2008 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.12.ebuild,v 1.1 2008/03/14 07:27:04 dertobi123 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="mirror" +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 + + econf ${myconf} \ + --host=${CHOST} \ + --prefix=/usr \ + --libexecdir=/usr/$(get_libdir)/nagios/plugins \ + --localstatedir=/var/nagios \ + --sysconfdir=/etc/nagios \ + --with-nrpe-user=nagios \ + --with-nrpe-grp=nagios || die "econf failed" + emake all || die "make failed" + # 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/bin + doexe src/nrpe + + exeopts -m0750 -o nagios -g nagios + exeinto /usr/$(get_libdir)/nagios/plugins + doexe src/check_nrpe contrib/nrpe_check_control + + newinitd "${FILESDIR}"/nrpe-nagios3 nrpe +} + +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.bz2 for more info" + fi +} -- cgit v1.2.3-65-gdbad