summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2020-01-15 11:04:21 -0500
committerMichael Orlitzky <mjo@gentoo.org>2020-01-17 12:01:31 -0500
commit83050577827c0e38af3d4b6d641be350aff2c843 (patch)
tree13927499fd0e2b8d47ec6586edf8b2022c7158aa /net-analyzer
parentnet-analyzer/nagios-core: new revision using a GLEP81 user/group. (diff)
downloadgentoo-83050577827c0e38af3d4b6d641be350aff2c843.tar.gz
gentoo-83050577827c0e38af3d4b6d641be350aff2c843.tar.bz2
gentoo-83050577827c0e38af3d4b6d641be350aff2c843.zip
net-analyzer/nrpe: new revision using a GLEP81 user/group.
Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/nrpe/nrpe-3.2.1-r3.ebuild (renamed from net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild)22
1 files changed, 13 insertions, 9 deletions
diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild b/net-analyzer/nrpe/nrpe-3.2.1-r3.ebuild
index 7838b676b308..0dad49acfdf5 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r3.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit systemd user
+EAPI=7
+inherit systemd
DESCRIPTION="Nagios Remote Plugin Executor"
HOMEPAGE="https://github.com/NagiosEnterprises/nrpe"
@@ -13,7 +13,9 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="command-args libressl selinux ssl"
-DEPEND="sys-apps/tcp-wrappers
+DEPEND="acct-group/nagios
+ acct-user/nagios
+ sys-apps/tcp-wrappers
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
@@ -24,11 +26,6 @@ RDEPEND="${DEPEND}
PATCHES=( "${FILESDIR}/nrpe-3.2.1-eliminate-systemd-pid.patch" )
-pkg_setup() {
- enewgroup nagios
- enewuser nagios -1 -1 -1 nagios
-}
-
src_configure() {
# The configure script tries to detect what OS, distribution, and
# init system you're running and changes the build/install process
@@ -36,6 +33,13 @@ src_configure() {
# because we don't want it guessing, for example, whether or not
# to install the tmpfiles.d entry based on whether or not systemd
# is currently running (OpenRC uses them too).
+ #
+ # Note: upstream defaults to using "nagios" as the default NRPE
+ # user and group. I have a feeling that this isn't quite correct
+ # on a system where "nagios" is also the user running the nagios
+ # server daemon. In the future, it would be nice if someone who
+ # actually uses NRPE could test with an unprivileged "nrpe" as
+ # the user and group.
econf \
--libexecdir=/usr/$(get_libdir)/nagios/plugins \
--localstatedir=/var/lib/nagios \