net-analyzer/nrpe: new revision adding the command-args flag back.
authorMichael Orlitzky <mjo@gentoo.org>
Thu, 24 Aug 2017 15:01:01 +0000 (11:01 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Thu, 24 Aug 2017 15:01:01 +0000 (11:01 -0400)
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

net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild [moved from net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild with 85% similarity]

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 08d233c3de60beda6a903e41085409c69b1aed0f..ca614e36b646d17cabedae99626aae5ad61cf1ea 100644 (file)
@@ -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
 }