summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/nagios-plugins-snmp')
-rw-r--r--net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0-r2.ebuild29
1 files changed, 13 insertions, 16 deletions
diff --git a/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0-r2.ebuild b/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0-r2.ebuild
index c89ed52c8249..6eb4daae21ea 100644
--- a/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0-r2.ebuild
+++ b/net-analyzer/nagios-plugins-snmp/nagios-plugins-snmp-0.6.0-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
-inherit autotools user
+inherit autotools
DESCRIPTION="Additional Nagios plugins for monitoring SNMP capable devices"
HOMEPAGE="http://nagios.manubulon.com"
@@ -12,31 +12,28 @@ SRC_URI="http://nagios.manubulon.com/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ppc64 ~sparc x86"
-IUSE=""
-DEPEND="net-analyzer/net-snmp"
+DEPEND="
+ acct-group/nagios
+ acct-user/nagios
+ net-analyzer/net-snmp"
RDEPEND="${DEPEND}"
-S=${WORKDIR}/nagios-plugins-snmp
-
-pkg_setup() {
- enewgroup nagios
- enewuser nagios -1 /bin/bash /var/nagios/home nagios
-}
+S="${WORKDIR}/nagios-plugins-snmp"
src_prepare() {
- sed -i -e '/^CFLAGS=""/d' configure.in
+ default
+ sed -i -e '/^CFLAGS=""/d' configure.in || die
+ mv configure.{in,ac} || die
eautoreconf
}
src_configure() {
econf \
- --sysconfdir=/etc/nagios \
- --libexec=/usr/$(get_libdir)/nagios/plugins
+ --sysconfdir="${EPREFIX}"/etc/nagios \
+ --libexec="${EPREFIX}"/usr/$(get_libdir)/nagios/plugins
}
-DOCS=( README NEWS AUTHORS )
-
src_install() {
default