From 563a03380b72349d215d57be76f7c5de3e3a24d3 Mon Sep 17 00:00:00 2001 From: Tomas Mozes Date: Thu, 29 Jun 2017 15:41:58 +0200 Subject: net-analyzer/nrpe: bump to 3.2.0, drop old Package-Manager: Portage-2.3.6, Repoman-2.3.2 Signed-off-by: Michael Orlitzky --- net-analyzer/nrpe/Manifest | 2 +- net-analyzer/nrpe/files/nrpe-3.1.1.init | 16 --------- net-analyzer/nrpe/files/nrpe-3.2.0.init | 16 +++++++++ net-analyzer/nrpe/nrpe-3.1.1.ebuild | 64 --------------------------------- net-analyzer/nrpe/nrpe-3.2.0.ebuild | 64 +++++++++++++++++++++++++++++++++ 5 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 net-analyzer/nrpe/files/nrpe-3.1.1.init create mode 100644 net-analyzer/nrpe/files/nrpe-3.2.0.init delete mode 100644 net-analyzer/nrpe/nrpe-3.1.1.ebuild create mode 100644 net-analyzer/nrpe/nrpe-3.2.0.ebuild (limited to 'net-analyzer/nrpe') diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest index 1ec17f2638da..9142d44c45a7 100644 --- a/net-analyzer/nrpe/Manifest +++ b/net-analyzer/nrpe/Manifest @@ -1,2 +1,2 @@ DIST nrpe-2.15.tar.gz 419695 SHA256 66383b7d367de25ba031d37762d83e2b55de010c573009c6f58270b137131072 SHA512 03ce9774b5112d03235dc9da075770d89d1bcc5ffa5faf221ff7ea8ec5c92ded1e1ae9222581a87cf53736d190ac047e1acce7edc2f31f26c432d786cdef0e73 WHIRLPOOL f97ad7431138fd96588bb4e9d13404a0425bbdb8582c7c472cb20621bb77a9e9ecdeed88b9247ea20815da33c5b123368a540c5a0a058921e59367c2ce2a2b10 -DIST nrpe-3.1.1.tar.gz 515215 SHA256 cfb3d4fb036e81cbb8a6d9c34f24b7d9395ecfaa55234a0572382ea30c54fd8d SHA512 1d4cb6e35ad88f1dcd66b552ac1b3892cbd894f182b2ab35929bb656423187a7e93ac3e9c812a72f10aaecd0924fc7bc36719abbeec2d65363534830972b5d92 WHIRLPOOL f77db69c351488ea2e83d60094f82447c1bf4adea9da0cff2264346fdc7679941fb148546bd290da3d498851f84859164ac13c55e58e24785f808309bb8e14ae +DIST nrpe-3.2.0.tar.gz 517743 SHA256 6f4a0cfe1d7b7b38e43f9f87909f5cb1e3a7150a2ccfc0a6822e3b1e7d76cf8e SHA512 a2fe7971ce0ab1bdc55cdecb96d096b45db493cfefdb414930a1eb4cf99b92660a99784d14e6e9dc0b951769cf14f066507ee8b0fec0aa13d46288dcc069d473 WHIRLPOOL 5094f04a2e7672c1489a7364c6bb5c20e1f33477e6df22974ed44cfa97839174d537b309bb8f196f74ecc04f643f71e2f77adafd7d9027c1a84356c52f5aa23f diff --git a/net-analyzer/nrpe/files/nrpe-3.1.1.init b/net-analyzer/nrpe/files/nrpe-3.1.1.init deleted file mode 100644 index acf8b549ee78..000000000000 --- a/net-analyzer/nrpe/files/nrpe-3.1.1.init +++ /dev/null @@ -1,16 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -: ${CFGFILE:=/etc/nagios/nrpe.cfg} - -extra_started_commands="reload" -command="/usr/bin/${SVCNAME}" -command_args="-c ${CFGFILE} --daemon" -pidfile=/run/nrpe.pid - -reload() { - ebegin "Reloading ${SVCNAME}" - start-stop-daemon --exec $command --pidfile $pidfile --signal HUP - eend $? -} diff --git a/net-analyzer/nrpe/files/nrpe-3.2.0.init b/net-analyzer/nrpe/files/nrpe-3.2.0.init new file mode 100644 index 000000000000..acf8b549ee78 --- /dev/null +++ b/net-analyzer/nrpe/files/nrpe-3.2.0.init @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +: ${CFGFILE:=/etc/nagios/nrpe.cfg} + +extra_started_commands="reload" +command="/usr/bin/${SVCNAME}" +command_args="-c ${CFGFILE} --daemon" +pidfile=/run/nrpe.pid + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --exec $command --pidfile $pidfile --signal HUP + eend $? +} diff --git a/net-analyzer/nrpe/nrpe-3.1.1.ebuild b/net-analyzer/nrpe/nrpe-3.1.1.ebuild deleted file mode 100644 index 6ad8fe398f16..000000000000 --- a/net-analyzer/nrpe/nrpe-3.1.1.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit systemd user - -DESCRIPTION="Nagios Remote Plugin Executor" -HOMEPAGE="https://github.com/NagiosEnterprises/nrpe" -SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="selinux ssl" - -DEPEND="sys-apps/tcp-wrappers - ssl? ( dev-libs/openssl:0 )" -RDEPEND="${DEPEND} - || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins ) - selinux? ( sec-policy/selinux-nagios )" - -pkg_setup() { - enewgroup nagios - enewuser nagios -1 /bin/bash /var/nagios/home nagios -} - -src_configure() { - econf \ - --libexecdir=/usr/$(get_libdir)/nagios/plugins \ - --localstatedir=/var/nagios \ - --sysconfdir=/etc/nagios \ - --with-nrpe-user=nagios \ - --with-nrpe-group=nagios \ - --with-piddir=/run \ - $(use_enable ssl) -} - -src_compile() { - emake all -} - -src_install() { - default - - dodoc Changelog SECURITY.md - insinto /etc/nagios - newins sample-config/nrpe.cfg nrpe.cfg - fowners root:nagios /etc/nagios/nrpe.cfg - fperms 0640 /etc/nagios/nrpe.cfg - - newinitd "${FILESDIR}/nrpe-${PV}.init" nrpe - systemd_dounit "${FILESDIR}/${PN}.service" - - insinto /etc/xinetd.d/ - newins "${FILESDIR}/nrpe.xinetd.2" nrpe - - rm "${D}/usr/bin/nrpe-uninstall" || die 'failed to remove uninstall tool' -} - -pkg_postinst(){ - elog 'Some users have reported incompatibilities between nrpe-2.x and' - elog 'nrpe-3.x. We recommend that you use the same major version for' - elog 'both your server and clients.' -} diff --git a/net-analyzer/nrpe/nrpe-3.2.0.ebuild b/net-analyzer/nrpe/nrpe-3.2.0.ebuild new file mode 100644 index 000000000000..47ab35e74b4e --- /dev/null +++ b/net-analyzer/nrpe/nrpe-3.2.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit systemd user + +DESCRIPTION="Nagios Remote Plugin Executor" +HOMEPAGE="https://github.com/NagiosEnterprises/nrpe" +SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="selinux ssl" + +DEPEND="sys-apps/tcp-wrappers + ssl? ( dev-libs/openssl:0 )" +RDEPEND="${DEPEND} + || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins ) + selinux? ( sec-policy/selinux-nagios )" + +pkg_setup() { + enewgroup nagios + enewuser nagios -1 /bin/bash /var/nagios/home nagios +} + +src_configure() { + econf \ + --libexecdir=/usr/$(get_libdir)/nagios/plugins \ + --localstatedir=/var/nagios \ + --sysconfdir=/etc/nagios \ + --with-nrpe-user=nagios \ + --with-nrpe-group=nagios \ + --with-piddir=/run \ + $(use_enable ssl) +} + +src_compile() { + emake all +} + +src_install() { + default + + dodoc CHANGELOG.md SECURITY.md + insinto /etc/nagios + newins sample-config/nrpe.cfg nrpe.cfg + fowners root:nagios /etc/nagios/nrpe.cfg + fperms 0640 /etc/nagios/nrpe.cfg + + newinitd "${FILESDIR}/nrpe-${PV}.init" nrpe + systemd_dounit "${FILESDIR}/${PN}.service" + + insinto /etc/xinetd.d/ + newins "${FILESDIR}/nrpe.xinetd.2" nrpe + + rm "${D}/usr/bin/nrpe-uninstall" || die 'failed to remove uninstall tool' +} + +pkg_postinst(){ + elog 'Some users have reported incompatibilities between nrpe-2.x and' + elog 'nrpe-3.x. We recommend that you use the same major version for' + elog 'both your server and clients.' +} -- cgit v1.2.3-65-gdbad