commit: b2e206ae1296ba85a0f5dc624903e182af65bf3a
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 24 15:01:01 2017 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Aug 24 15:01:01 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2e206ae
net-analyzer/nrpe: new revision adding the command-args flag back.
After some discussion on the mailing list, I've decided to add back
the "command-args" USE flag, but to mask it in package.use.mask.
Gentoo-Bug: 628596
Package-Manager: Portage-2.3.6, Repoman-2.3.1
.../nrpe/{nrpe-3.2.0-r1.ebuild => nrpe-3.2.0-r2.ebuild} | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild
b/net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild
similarity index 85%
rename from net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild
rename to net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild
index 08d233c3de6..ca614e36b64 100644
--- a/net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild
@@ -11,7 +11,7 @@ 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"
+IUSE="command-args selinux ssl"
DEPEND="sys-apps/tcp-wrappers
ssl? ( dev-libs/openssl:0 )"
@@ -32,6 +32,7 @@ src_configure() {
--with-nrpe-user=nagios \
--with-nrpe-group=nagios \
--with-piddir=/run \
+ $(use_enable command-args) \
$(use_enable ssl)
}
@@ -61,4 +62,12 @@ 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.'
+
+ if use command-args ; then
+ ewarn ''
+ ewarn 'You have enabled command-args for NRPE. That lets
clients'
+ ewarn 'supply arguments to the commands that are run, and IS A'
+ ewarn 'SECURITY RISK!'
+ ewarn''
+ fi
}