[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2023-06-23 Thread Arthur Zamarin
commit: c8cc6c05cf4a82a33cfd1b0e046fdfb4f210fe65
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun 23 07:50:43 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun 23 07:50:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8cc6c05

net-analyzer/nrpe: Stabilize 4.1.0 ppc64, #908994

Signed-off-by: Arthur Zamarin  gentoo.org>

 net-analyzer/nrpe/nrpe-4.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
index b30f85a449ef..33d9a7322a24 100644
--- a/net-analyzer/nrpe/nrpe-4.1.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2023-06-23 Thread Arthur Zamarin
commit: 94eb4438d75f1f95c86427ef7fc4908ab2469905
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun 23 07:50:46 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun 23 07:50:46 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94eb4438

net-analyzer/nrpe: Stabilize 4.1.0 amd64, #908994

Signed-off-by: Arthur Zamarin  gentoo.org>

 net-analyzer/nrpe/nrpe-4.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
index 33d9a7322a24..8d9091865841 100644
--- a/net-analyzer/nrpe/nrpe-4.1.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2023-06-23 Thread Arthur Zamarin
commit: 45b9293f5c70abd25d7852cd152a440c5a4dad18
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun 23 06:10:07 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun 23 06:10:07 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45b9293f

net-analyzer/nrpe: Stabilize 4.1.0 sparc, #908994

Signed-off-by: Arthur Zamarin  gentoo.org>

 net-analyzer/nrpe/nrpe-4.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
index 07e9a0add1b0..b30f85a449ef 100644
--- a/net-analyzer/nrpe/nrpe-4.1.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2023-06-22 Thread Arthur Zamarin
commit: 6d5677c2721cc2475bd6fa48f4c8868b1aaac9fb
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Jun 23 04:50:35 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Jun 23 04:50:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d5677c2

net-analyzer/nrpe: Stabilize 4.1.0 x86, #908994

Signed-off-by: Arthur Zamarin  gentoo.org>

 net-analyzer/nrpe/nrpe-4.1.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/nrpe/nrpe-4.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
index 88306182ea63..07e9a0add1b0 100644
--- a/net-analyzer/nrpe/nrpe-4.1.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2022-11-01 Thread Sam James
commit: b2ce25ee2b1c9b6a2b3c63dbaa4eb512b8566773
Author: Tomáš Mózes  gmail  com>
AuthorDate: Tue Nov  1 17:13:06 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Nov  1 22:54:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2ce25ee

net-analyzer/nrpe: add 4.1.0

Closes: https://bugs.gentoo.org/805080
Closes: https://bugs.gentoo.org/865705
Signed-off-by: Tomáš Mózes  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28084
Signed-off-by: Sam James  gentoo.org>

 net-analyzer/nrpe/Manifest  |   1 +
 net-analyzer/nrpe/nrpe-4.1.0.ebuild | 100 
 2 files changed, 101 insertions(+)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index b156a0375137..f81d01f00913 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1,3 +1,4 @@
 DIST nrpe-4.0.0.tar.gz 523846 BLAKE2B 
850a420f0550e1dfe6b0ea98a9d9cafec0ec583c115be89b3ba8e88a309c40226c87f6ae880d12c582822e492c5991e3d2444b68f5644750fc74ad75596c96fd
 SHA512 
8773102f28f3e7e96f3637e77489eb12ffe88fe839abfe3f150d2eb3d2efe05f7f812ab4d52a64cbd8d0a5e491aed93d5300b7ce9a8dd072b3a00d885b91276b
 DIST nrpe-4.0.2.tar.gz 524146 BLAKE2B 
dc100579420eeccaaa2a913f56c76b86b6ebdce8d1afdddcc428bfd4a8c12ad19050ab0395e7a109d4e8b43ca7d6a11e13ec4a4250a91483e37725c184382ca2
 SHA512 
4d7cf6abc974bc79df54afc42644418e3f086a279c8c17d0fd104f19e3c21c0f3dae4fb4268dd134446ff9fe505159b0446372c5cac71cfe03a97479ed41c09b
 DIST nrpe-4.0.3.tar.gz 524160 BLAKE2B 
d2c99cadf718e7049c911388b105fb4f5248307c733d94a73fd02ac69c49be230dad58be0a182af9c8d7e0d1f34e8dba6b8fc46a7c01eb15d845f2b3a54499ed
 SHA512 
31d932c481c8a53bd0f8865fb3cfeeb1466b9b05fa89382aa056aa9343a09843b51fe5398fd0388e6bba99e9c3d8093f6033799fd83afd43012bfe8fdc5a33e3
+DIST nrpe-4.1.0.tar.gz 528228 BLAKE2B 
a8890eef9f32e43417270eb80dcb9eedf1272d70d2dad73fecd855565358fbe9cb1d716fe0b79270310c2c5097eba3ffc7f786c89eecae9f6b84d2fbb43d3e0f
 SHA512 
a47935eecc65d646737166f98f5f160e3d1d5bbd245e006e8cd0758af75db083f870db6c02c1edd0d44cf9a91909ba26df8eee1620a7ac4d9f98032f2cce8981

diff --git a/net-analyzer/nrpe/nrpe-4.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
new file mode 100644
index ..88306182ea63
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-4.1.0.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools systemd
+
+DESCRIPTION="Nagios Remote Plugin Executor"
+HOMEPAGE="https://github.com/NagiosEnterprises/nrpe;
+SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.tar.gz;
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="command-args selinux ssl tcpd"
+
+DEPEND="acct-group/nagios
+   acct-user/nagios
+   tcpd? (
+   sys-apps/tcp-wrappers
+   )
+   ssl? (
+   dev-libs/openssl:=
+   )"
+RDEPEND="${DEPEND}
+   || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
+   selinux? ( sec-policy/selinux-nagios )"
+
+PATCHES=(
+   "${FILESDIR}/nrpe-3.2.1-eliminate-systemd-pid.patch"
+)
+
+src_prepare() {
+   default
+   eautoreconf
+}
+
+src_configure() {
+   # The configure script tries to detect what OS, distribution, and
+   # init system you're running and changes the build/install process
+   # depending on what it comes up with. We specify fixed values
+   # 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 \
+   --sysconfdir=/etc/nagios \
+   --with-nrpe-user=nagios \
+   --with-nrpe-group=nagios \
+   --with-piddir=/run \
+   --with-opsys=unknown \
+   --with-dist-type=unknown \
+   --with-init-type=unknown \
+   --with-inetd-type=unknown \
+   $(use_enable command-args) \
+   $(use_enable ssl) \
+   $(use_enable tcpd)
+}
+
+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 "startup/openrc-init" nrpe
+  

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2022-08-18 Thread Sam James
commit: d58dfdd3615721b8ec7d8a787bf2dc723de742c5
Author: Sam James  gentoo  org>
AuthorDate: Fri Aug 19 03:30:27 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 19 03:35:24 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d58dfdd3

net-analyzer/nrpe: add github upstream metadata

Signed-off-by: Sam James  gentoo.org>

 net-analyzer/nrpe/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net-analyzer/nrpe/metadata.xml b/net-analyzer/nrpe/metadata.xml
index 176f956f4bb6..1876e4216dde 100644
--- a/net-analyzer/nrpe/metadata.xml
+++ b/net-analyzer/nrpe/metadata.xml
@@ -17,6 +17,7 @@
 
   
   
+NagiosEnterprises/nrpe
 nagios
   
 



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2021-07-30 Thread Agostino Sarubbo
commit: 54ab891a4729c0aa3b620b89bf404f497fca58a1
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri Jul 30 15:15:58 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri Jul 30 15:15:58 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54ab891a

net-analyzer/nrpe: ppc64 stable wrt bug #804864

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.3.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
index 162c31003dc..585fd858b11 100644
--- a/net-analyzer/nrpe/nrpe-4.0.3.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2021-07-30 Thread Agostino Sarubbo
commit: 3a9e428ae0f8ec99682dd42d83fa0dbc423893a3
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Fri Jul 30 15:12:47 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Fri Jul 30 15:12:47 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a9e428a

net-analyzer/nrpe: ppc stable wrt bug #804864

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.3.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
index aa0cd2af5fe..162c31003dc 100644
--- a/net-analyzer/nrpe/nrpe-4.0.3.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ppc ~ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2021-07-29 Thread Agostino Sarubbo
commit: 1e7067b4275a3d133a5b6c89f0946a6ce6d1ed48
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu Jul 29 07:07:11 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu Jul 29 07:07:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e7067b4

net-analyzer/nrpe: amd64 stable wrt bug #804864

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.3.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
index 1c39a600a92..aa0cd2af5fe 100644
--- a/net-analyzer/nrpe/nrpe-4.0.3.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2021-07-29 Thread Agostino Sarubbo
commit: e6c74d05b86036ff6b7d8147ca78789c95830549
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu Jul 29 06:44:55 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu Jul 29 06:44:55 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6c74d05

net-analyzer/nrpe: x86 stable wrt bug #804864

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.3.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
index a4ae73d7aab..1c39a600a92 100644
--- a/net-analyzer/nrpe/nrpe-4.0.3.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2021-07-29 Thread Agostino Sarubbo
commit: 1a6611dbfdb0b3f053228e2657e646413ae360fe
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu Jul 29 06:39:24 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu Jul 29 06:39:24 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6611db

net-analyzer/nrpe: sparc stable wrt bug #804864

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.3.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
index 5cbe3d9a63b..a4ae73d7aab 100644
--- a/net-analyzer/nrpe/nrpe-4.0.3.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc ~x86"
 IUSE="command-args selinux ssl tcpd"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2021-04-29 Thread Mikle Kolyada
commit: 39d8d363398d85a269fe57130a0277001d0edeea
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Thu Apr 29 18:17:16 2021 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Thu Apr 29 18:28:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39d8d363

net-analyzer/nrpe: remove libressl support

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Mikle Kolyada  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 9 +++--
 net-analyzer/nrpe/nrpe-4.0.2.ebuild | 9 +++--
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
index d1e218e2cd8..e39d700be6f 100644
--- a/net-analyzer/nrpe/nrpe-4.0.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,15 +11,12 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86"
-IUSE="command-args libressl selinux ssl"
+IUSE="command-args selinux ssl"
 
 DEPEND="acct-group/nagios
acct-user/nagios
sys-apps/tcp-wrappers
-   ssl? (
-   !libressl? ( dev-libs/openssl:0= )
-   libressl? ( dev-libs/libressl:0= )
-   )"
+   ssl? ( dev-libs/openssl:0= )"
 RDEPEND="${DEPEND}
|| ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
selinux? ( sec-policy/selinux-nagios )"

diff --git a/net-analyzer/nrpe/nrpe-4.0.2.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.2.ebuild
index 73205353081..750ad02c972 100644
--- a/net-analyzer/nrpe/nrpe-4.0.2.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -11,15 +11,12 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="command-args libressl selinux ssl"
+IUSE="command-args selinux ssl"
 
 DEPEND="acct-group/nagios
acct-user/nagios
sys-apps/tcp-wrappers
-   ssl? (
-   !libressl? ( dev-libs/openssl:0= )
-   libressl? ( dev-libs/libressl:0= )
-   )"
+   ssl? ( dev-libs/openssl:0= )"
 RDEPEND="${DEPEND}
|| ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
selinux? ( sec-policy/selinux-nagios )"



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/, net-analyzer/nrpe/files/

2021-03-10 Thread John Helmert III
commit: 1df43041963603de62674b76888b68ddae5ee97f
Author: Jaco Kroon  uls  co  za>
AuthorDate: Mon Feb  8 16:55:39 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Wed Mar 10 15:39:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1df43041

net-analyzer/nrpe: version bump + add USE=tcpd

This includes a patch for ./configure that has also been submitted
upstream:

https://github.com/NagiosEnterprises/nrpe/pull/247

Dropped libressl support.

Closes:  https://bugs.gentoo.org/698794
Closes:  https://bugs.gentoo.org/737038
Signed-off-by: Jaco Kroon  uls.co.za>
Closes: https://github.com/gentoo/gentoo/pull/19376
Signed-off-by: John Helmert III  gentoo.org>

 net-analyzer/nrpe/Manifest |   1 +
 .../nrpe/files/nrpe-4.0.2-disable-tcpd.patch   |  62 +
 net-analyzer/nrpe/nrpe-4.0.3.ebuild| 101 +
 3 files changed, 164 insertions(+)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 4fab8d8b80d..b156a037513 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1,2 +1,3 @@
 DIST nrpe-4.0.0.tar.gz 523846 BLAKE2B 
850a420f0550e1dfe6b0ea98a9d9cafec0ec583c115be89b3ba8e88a309c40226c87f6ae880d12c582822e492c5991e3d2444b68f5644750fc74ad75596c96fd
 SHA512 
8773102f28f3e7e96f3637e77489eb12ffe88fe839abfe3f150d2eb3d2efe05f7f812ab4d52a64cbd8d0a5e491aed93d5300b7ce9a8dd072b3a00d885b91276b
 DIST nrpe-4.0.2.tar.gz 524146 BLAKE2B 
dc100579420eeccaaa2a913f56c76b86b6ebdce8d1afdddcc428bfd4a8c12ad19050ab0395e7a109d4e8b43ca7d6a11e13ec4a4250a91483e37725c184382ca2
 SHA512 
4d7cf6abc974bc79df54afc42644418e3f086a279c8c17d0fd104f19e3c21c0f3dae4fb4268dd134446ff9fe505159b0446372c5cac71cfe03a97479ed41c09b
+DIST nrpe-4.0.3.tar.gz 524160 BLAKE2B 
d2c99cadf718e7049c911388b105fb4f5248307c733d94a73fd02ac69c49be230dad58be0a182af9c8d7e0d1f34e8dba6b8fc46a7c01eb15d845f2b3a54499ed
 SHA512 
31d932c481c8a53bd0f8865fb3cfeeb1466b9b05fa89382aa056aa9343a09843b51fe5398fd0388e6bba99e9c3d8093f6033799fd83afd43012bfe8fdc5a33e3

diff --git a/net-analyzer/nrpe/files/nrpe-4.0.2-disable-tcpd.patch 
b/net-analyzer/nrpe/files/nrpe-4.0.2-disable-tcpd.patch
new file mode 100644
index 000..7140c43d7e8
--- /dev/null
+++ b/net-analyzer/nrpe/files/nrpe-4.0.2-disable-tcpd.patch
@@ -0,0 +1,62 @@
+Stripped ./configure portion for Gentoo, instead relying on eautoreconf.
+
+From 8bce40cff68c0a7d88b465eb345267ad5176461a Mon Sep 17 00:00:00 2001
+From: Jaco Kroon 
+Date: Mon, 8 Feb 2021 17:07:30 +0200
+Subject: [PATCH] Patch to allow passing --enable-tcpd or --disable-tcpd.
+
+If passing --enable-tcpd and libwrap is not available, ./configure will
+fail.
+
+If passing --disable-tcpd, libwrap will be completely ignore.
+
+If not passed, current behaviour still applies.
+
+Signed-off-by: Jaco Kroon 
+---
+ configure.ac | 28 +++-
+ 2 files changed, 52 insertions(+), 6 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3981bb0..e3c1a15 100644
+--- a/configure.ac
 b/configure.ac
+@@ -237,12 +237,30 @@ 
AC_CHECK_FUNCS([getopt_long],,AC_CHECK_LIB([iberty],[getopt_long],OTHERLIBS="$OT
+ dnl Checks for library functions.
+ AC_CHECK_LIB(nsl,main,SOCKETLIBS="$SOCKETLIBS -lnsl")
+ AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket")
+-AC_CHECK_LIB(wrap,main,[
+-  LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
+-  AC_DEFINE(HAVE_LIBWRAP,[1],[Have the TCP wrappers library])
+-  AC_TRY_LINK([#include 
+-  ],[int a = rfc931_timeout;],AC_DEFINE(HAVE_RFC931_TIMEOUT))
++
++AC_ARG_ENABLE([tcpd],
++  AS_HELP_STRING([--disable-tcpd],[disables support for tcpd even if 
present]),[
++  if test x$enableval = xyes; then
++  check_for_tcpd=yes
++  else
++  check_for_tcpd=no
++  fi
++  ],check_for_tcpd=optional)
++
++AC_MSG_CHECKING(check_for_tcpd=$check_for_tcpd)
++if test x$check_for_tcpd != xno; then
++  AC_CHECK_LIB(wrap,main,[
++  LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
++  AC_DEFINE(HAVE_LIBWRAP,[1],[Have the TCP wrappers library])
++  AC_TRY_LINK([#include 
++  ],[int a = 
rfc931_timeout;],AC_DEFINE(HAVE_RFC931_TIMEOUT))
++  ],[
++  if test x$check_for_tcpd = xyes; then
++  AC_MSG_ERROR(--enable-tcpd specified but unable to 
locate libwrap.)
++  fi
+   ])
++fi
++
+ AC_CHECK_FUNCS(strdup strstr strtoul strtok_r initgroups closesocket 
sigaction scandir)
+ 
+ dnl socklen_t check - from curl
+-- 
+2.26.2
+

diff --git a/net-analyzer/nrpe/nrpe-4.0.3.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
new file mode 100644
index 000..5cbe3d9a63b
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-4.0.3.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools systemd
+
+DESCRIPTION="Nagios Remote Plugin Executor"

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/files/

2020-05-14 Thread Aaron Bauman
commit: 8000e0b834d948b33492790240934058b95b31c3
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Tue Jan 21 06:55:58 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Thu May 14 22:19:35 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8000e0b8

net-analyzer/nrpe: remove unused files

Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14403
Signed-off-by: Aaron Bauman  gentoo.org>

 net-analyzer/nrpe/files/nrpe.init| 49 
 net-analyzer/nrpe/files/nrpe.service | 11 
 2 files changed, 60 deletions(-)

diff --git a/net-analyzer/nrpe/files/nrpe.init 
b/net-analyzer/nrpe/files/nrpe.init
deleted file mode 100644
index bb7e34ef22e..000
--- a/net-analyzer/nrpe/files/nrpe.init
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-: ${CFGFILE:=/etc/nagios/nrpe.cfg}
-
-get_config() {
-[ -f ${CFGFILE} ] || return 1
-
-sed -n -e 's:^[ \t]*'$1'=\([^#]\+\).*:\1:p' \
-   ${CFGFILE}
-}
-
-extra_started_commands="reload"
-
-command=/usr/libexec/${SVCNAME}
-command_args="-c ${CFGFILE} --daemon"
-pidfile=$(get_config pid_file)
-
-depend() {
-config ${CFGFILE}
-}
-
-reload() {
-ebegin "Reloading ${SVCNAME}"
-kill -1 `cat ${pidfile}`
-eend $?
-}
-
-start()
-{
-mkdir -p $(dirname $pidfile)
-local _background=
-ebegin "Starting ${name:-$RC_SVCNAME}"
-eval start-stop-daemon --start \
---exec $command \
-${procname:+--name} $procname \
-${pidfile:+--pidfile} $pidfile \
-$_background $start_stop_daemon_args \
--- $command_args
-if eend $? "Failed to start $RC_SVCNAME"; then
-service_set_value "command" "${command}"
-[ -n "${pidfile}" ] && service_set_value "pidfile" "${pidfile}"
-[ -n "${procname}" ] && service_set_value "procname" "${procname}"
-return 0
-fi  
-return 1
-}
-

diff --git a/net-analyzer/nrpe/files/nrpe.service 
b/net-analyzer/nrpe/files/nrpe.service
deleted file mode 100644
index f6546d703cd..000
--- a/net-analyzer/nrpe/files/nrpe.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Daemon to answer plugin requests from Nagios on remote hosts
-After=network.target
-Requires=network.target
-
-[Service]
-Type=forking
-ExecStart=/usr/libexec/nrpe -c /etc/nagios/nrpe.cfg -d
-
-[Install]
-WantedBy=multi-user.target



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-25 Thread Michael Orlitzky
commit: 6605f564beba67c715410948f4b770077153aaa7
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed Mar 25 12:32:36 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Wed Mar 25 12:32:36 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6605f564

net-analyzer/nrpe: drop vulnerable 3.x versions.

Bug: https://bugs.gentoo.org/712908
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky  gentoo.org>

 net-analyzer/nrpe/Manifest |  1 -
 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 89 
 net-analyzer/nrpe/nrpe-3.2.1-r3.ebuild | 93 --
 3 files changed, 183 deletions(-)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index dcfd9ec975a..4fab8d8b80d 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1,3 +1,2 @@
-DIST nrpe-3.2.1.tar.gz 518015 BLAKE2B 
c9be2bf24e3d9977a7ff5c2f0e08bfe841729289af836bb7ac6ccb2c173a519958b12cc3e90ece612ac6c2527ad472ef1464be648a66b11ff8ad483d5ad78cc1
 SHA512 
ec6ff42a00bd97ed80010a82e26dc35fd419f2feda65820cda0108068173c1ae44eee698833a50fd2079429a6f5eb1321c4f06b09c6708bc5fbe48f176389856
 DIST nrpe-4.0.0.tar.gz 523846 BLAKE2B 
850a420f0550e1dfe6b0ea98a9d9cafec0ec583c115be89b3ba8e88a309c40226c87f6ae880d12c582822e492c5991e3d2444b68f5644750fc74ad75596c96fd
 SHA512 
8773102f28f3e7e96f3637e77489eb12ffe88fe839abfe3f150d2eb3d2efe05f7f812ab4d52a64cbd8d0a5e491aed93d5300b7ce9a8dd072b3a00d885b91276b
 DIST nrpe-4.0.2.tar.gz 524146 BLAKE2B 
dc100579420eeccaaa2a913f56c76b86b6ebdce8d1afdddcc428bfd4a8c12ad19050ab0395e7a109d4e8b43ca7d6a11e13ec4a4250a91483e37725c184382ca2
 SHA512 
4d7cf6abc974bc79df54afc42644418e3f086a279c8c17d0fd104f19e3c21c0f3dae4fb4268dd134446ff9fe505159b0446372c5cac71cfe03a97479ed41c09b

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
deleted file mode 100644
index 81a6c0164ea..000
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# 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="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.tar.gz;
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86"
-IUSE="command-args libressl selinux ssl"
-
-DEPEND="sys-apps/tcp-wrappers
-   ssl? (
-   !libressl? ( dev-libs/openssl:0= )
-   libressl? ( dev-libs/libressl:0= )
-   )"
-RDEPEND="${DEPEND}
-   || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
-   selinux? ( sec-policy/selinux-nagios )"
-
-PATCHES=( "${FILESDIR}/nrpe-3.2.1-eliminate-systemd-pid.patch" )
-
-pkg_setup() {
-   enewgroup nagios
-   enewuser nagios -1 /bin/bash /var/nagios/home nagios
-}
-
-src_configure() {
-   # The configure script tries to detect what OS, distribution, and
-   # init system you're running and changes the build/install process
-   # depending on what it comes up with. We specify fixed values
-   # 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).
-   econf \
-   --libexecdir=/usr/$(get_libdir)/nagios/plugins \
-   --localstatedir=/var/nagios \
-   --sysconfdir=/etc/nagios \
-   --with-nrpe-user=nagios \
-   --with-nrpe-group=nagios \
-   --with-piddir=/run \
-   --with-opsys=unknown \
-   --with-dist-type=unknown \
-   --with-init-type=unknown \
-   --with-inetd-type=unknown \
-   $(use_enable command-args) \
-   $(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 "startup/openrc-init" nrpe
-   newconfd "startup/openrc-conf" nrpe
-   systemd_newunit "startup/default-service" "${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.'
-
-   if use command-args ; then
-   ewarn ''
-   ewarn 'You have enabled command-args for NRPE. That lets 
clients'
-   ewarn 'supply arguments to the 

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-20 Thread Sergei Trofimovich
commit: fa6cb0f6d856aa47f0175d8663f659a8369a088d
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Fri Mar 20 08:26:49 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Mar 20 09:16:19 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa6cb0f6

net-analyzer/nrpe: drop to ~hppa

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
index e6bbf0ba41b..81a6c0164ea 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -10,7 +10,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-18 Thread Thomas Deutschmann
commit: ca217cc2be98c0c11d8d2ffd111f864c2309be64
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Wed Mar 18 22:19:12 2020 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Wed Mar 18 22:23:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca217cc2

net-analyzer/nrpe: bump to v4.0.2

Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Thomas Deutschmann  gentoo.org>

 net-analyzer/nrpe/Manifest  |  1 +
 net-analyzer/nrpe/nrpe-4.0.2.ebuild | 94 +
 2 files changed, 95 insertions(+)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index e036a22c560..dcfd9ec975a 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1,2 +1,3 @@
 DIST nrpe-3.2.1.tar.gz 518015 BLAKE2B 
c9be2bf24e3d9977a7ff5c2f0e08bfe841729289af836bb7ac6ccb2c173a519958b12cc3e90ece612ac6c2527ad472ef1464be648a66b11ff8ad483d5ad78cc1
 SHA512 
ec6ff42a00bd97ed80010a82e26dc35fd419f2feda65820cda0108068173c1ae44eee698833a50fd2079429a6f5eb1321c4f06b09c6708bc5fbe48f176389856
 DIST nrpe-4.0.0.tar.gz 523846 BLAKE2B 
850a420f0550e1dfe6b0ea98a9d9cafec0ec583c115be89b3ba8e88a309c40226c87f6ae880d12c582822e492c5991e3d2444b68f5644750fc74ad75596c96fd
 SHA512 
8773102f28f3e7e96f3637e77489eb12ffe88fe839abfe3f150d2eb3d2efe05f7f812ab4d52a64cbd8d0a5e491aed93d5300b7ce9a8dd072b3a00d885b91276b
+DIST nrpe-4.0.2.tar.gz 524146 BLAKE2B 
dc100579420eeccaaa2a913f56c76b86b6ebdce8d1afdddcc428bfd4a8c12ad19050ab0395e7a109d4e8b43ca7d6a11e13ec4a4250a91483e37725c184382ca2
 SHA512 
4d7cf6abc974bc79df54afc42644418e3f086a279c8c17d0fd104f19e3c21c0f3dae4fb4268dd134446ff9fe505159b0446372c5cac71cfe03a97479ed41c09b

diff --git a/net-analyzer/nrpe/nrpe-4.0.2.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.2.ebuild
new file mode 100644
index 000..73205353081
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-4.0.2.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit systemd
+
+DESCRIPTION="Nagios Remote Plugin Executor"
+HOMEPAGE="https://github.com/NagiosEnterprises/nrpe;
+SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.tar.gz;
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="command-args libressl selinux ssl"
+
+DEPEND="acct-group/nagios
+   acct-user/nagios
+   sys-apps/tcp-wrappers
+   ssl? (
+   !libressl? ( dev-libs/openssl:0= )
+   libressl? ( dev-libs/libressl:0= )
+   )"
+RDEPEND="${DEPEND}
+   || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
+   selinux? ( sec-policy/selinux-nagios )"
+
+PATCHES=( "${FILESDIR}/nrpe-3.2.1-eliminate-systemd-pid.patch" )
+
+src_configure() {
+   # The configure script tries to detect what OS, distribution, and
+   # init system you're running and changes the build/install process
+   # depending on what it comes up with. We specify fixed values
+   # 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 \
+   --sysconfdir=/etc/nagios \
+   --with-nrpe-user=nagios \
+   --with-nrpe-group=nagios \
+   --with-piddir=/run \
+   --with-opsys=unknown \
+   --with-dist-type=unknown \
+   --with-init-type=unknown \
+   --with-inetd-type=unknown \
+   $(use_enable command-args) \
+   $(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 "startup/openrc-init" nrpe
+   newconfd "startup/openrc-conf" nrpe
+   systemd_newunit "startup/default-service" "${PN}.service"
+
+   insinto /etc/xinetd.d/
+   newins "${FILESDIR}/nrpe.xinetd.2" nrpe
+
+   rm "${ED}/usr/bin/nrpe-uninstall" || die 'failed to remove uninstall 
tool'
+   rm -r "${ED}/run" || die 'failed to remove /run'
+}
+
+pkg_postinst() {
+   elog 'Some users have reported incompatibilities between nrpe-2.x and'
+   elog 'nrpe-3.x. We recommend that you use the 

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-18 Thread Agostino Sarubbo
commit: 0b91b204795c90f591b5368d2e5694583b9daa16
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Wed Mar 18 11:13:34 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Wed Mar 18 11:13:34 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b91b204

net-analyzer/nrpe: ppc64 stable wrt bug #712908

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
index 98e59953557..d1e218e2cd8 100644
--- a/net-analyzer/nrpe/nrpe-4.0.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -10,7 +10,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-18 Thread Agostino Sarubbo
commit: a3a3d1c9eaff208d00b7eddcc187709a34035ca6
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Wed Mar 18 11:11:05 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Wed Mar 18 11:11:05 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3a3d1c9

net-analyzer/nrpe: ppc stable wrt bug #712908

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
index dd05f8c1f67..98e59953557 100644
--- a/net-analyzer/nrpe/nrpe-4.0.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -10,7 +10,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 sparc x86"
+KEYWORDS="~alpha amd64 ~hppa ppc ~ppc64 sparc x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-18 Thread Agostino Sarubbo
commit: 951c1c004c499e01090cd6fe5544629037dae853
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Wed Mar 18 11:04:10 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Wed Mar 18 11:04:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=951c1c00

net-analyzer/nrpe: x86 stable wrt bug #712908

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
index efab7221781..dd05f8c1f67 100644
--- a/net-analyzer/nrpe/nrpe-4.0.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -10,7 +10,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 sparc x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-18 Thread Agostino Sarubbo
commit: d944754ca66b5981fe6acde4b8b954d5cdb7708e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Wed Mar 18 09:51:05 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Wed Mar 18 09:51:05 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d944754c

net-analyzer/nrpe: sparc stable wrt bug #712908

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
index 0226a813f3f..efab7221781 100644
--- a/net-analyzer/nrpe/nrpe-4.0.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -10,7 +10,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 sparc ~x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-03-17 Thread Agostino Sarubbo
commit: d124bad8f13a6d7bff0339fb93c7139722f1491d
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Tue Mar 17 16:00:54 2020 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Tue Mar 17 16:00:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d124bad8

net-analyzer/nrpe: amd64 stable wrt bug #712908

Package-Manager: Portage-2.3.89, Repoman-2.3.20
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
index 6e332b90dd4..0226a813f3f 100644
--- a/net-analyzer/nrpe/nrpe-4.0.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -10,7 +10,7 @@ 
SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.t
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="acct-group/nagios



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-02-14 Thread Michael Orlitzky
commit: f253da80a9ba717b4ff9ffe3ce8dae2f151e5260
Author: Jonas Licht  fem  tu-ilmenau  de>
AuthorDate: Thu Feb 13 19:35:24 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri Feb 14 13:45:22 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f253da80

net-analyzer/nrpe: Version bump to 4.0.0

Closes: https://bugs.gentoo.org/709518
Closes: https://github.com/gentoo/gentoo/pull/14651
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jonas Licht  fem.tu-ilmenau.de>
Signed-off-by: Michael Orlitzky  gentoo.org>

 net-analyzer/nrpe/Manifest  |  1 +
 net-analyzer/nrpe/nrpe-4.0.0.ebuild | 93 +
 2 files changed, 94 insertions(+)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 0091826d876..e036a22c560 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1 +1,2 @@
 DIST nrpe-3.2.1.tar.gz 518015 BLAKE2B 
c9be2bf24e3d9977a7ff5c2f0e08bfe841729289af836bb7ac6ccb2c173a519958b12cc3e90ece612ac6c2527ad472ef1464be648a66b11ff8ad483d5ad78cc1
 SHA512 
ec6ff42a00bd97ed80010a82e26dc35fd419f2feda65820cda0108068173c1ae44eee698833a50fd2079429a6f5eb1321c4f06b09c6708bc5fbe48f176389856
+DIST nrpe-4.0.0.tar.gz 523846 BLAKE2B 
850a420f0550e1dfe6b0ea98a9d9cafec0ec583c115be89b3ba8e88a309c40226c87f6ae880d12c582822e492c5991e3d2444b68f5644750fc74ad75596c96fd
 SHA512 
8773102f28f3e7e96f3637e77489eb12ffe88fe839abfe3f150d2eb3d2efe05f7f812ab4d52a64cbd8d0a5e491aed93d5300b7ce9a8dd072b3a00d885b91276b

diff --git a/net-analyzer/nrpe/nrpe-4.0.0.ebuild 
b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
new file mode 100644
index 000..0dad49acfdf
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-4.0.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit systemd
+
+DESCRIPTION="Nagios Remote Plugin Executor"
+HOMEPAGE="https://github.com/NagiosEnterprises/nrpe;
+SRC_URI="https://github.com/NagiosEnterprises/nrpe/releases/download/${P}/${P}.tar.gz;
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="command-args libressl selinux ssl"
+
+DEPEND="acct-group/nagios
+   acct-user/nagios
+   sys-apps/tcp-wrappers
+   ssl? (
+   !libressl? ( dev-libs/openssl:0= )
+   libressl? ( dev-libs/libressl:0= )
+   )"
+RDEPEND="${DEPEND}
+   || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
+   selinux? ( sec-policy/selinux-nagios )"
+
+PATCHES=( "${FILESDIR}/nrpe-3.2.1-eliminate-systemd-pid.patch" )
+
+src_configure() {
+   # The configure script tries to detect what OS, distribution, and
+   # init system you're running and changes the build/install process
+   # depending on what it comes up with. We specify fixed values
+   # 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 \
+   --sysconfdir=/etc/nagios \
+   --with-nrpe-user=nagios \
+   --with-nrpe-group=nagios \
+   --with-piddir=/run \
+   --with-opsys=unknown \
+   --with-dist-type=unknown \
+   --with-init-type=unknown \
+   --with-inetd-type=unknown \
+   $(use_enable command-args) \
+   $(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 "startup/openrc-init" nrpe
+   newconfd "startup/openrc-conf" nrpe
+   systemd_newunit "startup/default-service" "${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.'
+
+   if use command-args ; then
+   ewarn ''
+   ewarn 'You have enabled command-args for NRPE. That lets 
clients'
+   

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2020-01-17 Thread Michael Orlitzky
commit: 83050577827c0e38af3d4b6d641be350aff2c843
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Wed Jan 15 16:04:21 2020 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri Jan 17 17:01:31 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83050577

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  gentoo.org>

 .../{nrpe-3.2.1-r2.ebuild => nrpe-3.2.1-r3.ebuild} | 22 +-
 1 file 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
similarity index 83%
rename from net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild
rename to net-analyzer/nrpe/nrpe-3.2.1-r3.ebuild
index 7838b676b30..0dad49acfdf 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 \



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/files/, net-analyzer/nrpe/

2019-08-31 Thread Michael Orlitzky
commit: bc77e1137940198a2ff4ca5f62842dcfdf1bb3e4
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Aug 31 20:47:22 2019 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Aug 31 21:34:56 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc77e113

net-analyzer/nrpe: remove "unused" nrpe-{2.15-r3,3.2.1}.ebuild.

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Michael Orlitzky  gentoo.org>

 net-analyzer/nrpe/Manifest |   1 -
 net-analyzer/nrpe/files/nrpe-2.14-multiline.patch  | 204 -
 .../nrpe/files/nrpe-2.15-autoconf-header.patch |  24 ---
 .../files/nrpe-2.15-metachar-security-fix.patch|  26 ---
 net-analyzer/nrpe/files/nrpe-2.15-no-ssl.patch |  39 
 net-analyzer/nrpe/files/nrpe-2.15-tcpd-et-al.patch |  50 -
 net-analyzer/nrpe/metadata.xml |   3 -
 net-analyzer/nrpe/nrpe-2.15-r3.ebuild  | 140 --
 net-analyzer/nrpe/nrpe-3.2.1.ebuild|  77 
 9 files changed, 564 deletions(-)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 8b0da4d1b7d..0091826d876 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1,2 +1 @@
-DIST nrpe-2.15.tar.gz 419695 BLAKE2B 
999ecc633cbd2dc516ff0654db3ac0cc58a88d93ae4ace1040888fe73d8fb471306d95312ac364c79b3a47300ac57c0c429a24697c37bfa639f1da55cb6bc756
 SHA512 
03ce9774b5112d03235dc9da075770d89d1bcc5ffa5faf221ff7ea8ec5c92ded1e1ae9222581a87cf53736d190ac047e1acce7edc2f31f26c432d786cdef0e73
 DIST nrpe-3.2.1.tar.gz 518015 BLAKE2B 
c9be2bf24e3d9977a7ff5c2f0e08bfe841729289af836bb7ac6ccb2c173a519958b12cc3e90ece612ac6c2527ad472ef1464be648a66b11ff8ad483d5ad78cc1
 SHA512 
ec6ff42a00bd97ed80010a82e26dc35fd419f2feda65820cda0108068173c1ae44eee698833a50fd2079429a6f5eb1321c4f06b09c6708bc5fbe48f176389856

diff --git a/net-analyzer/nrpe/files/nrpe-2.14-multiline.patch 
b/net-analyzer/nrpe/files/nrpe-2.14-multiline.patch
deleted file mode 100644
index 3af2ef95bab..000
--- a/net-analyzer/nrpe/files/nrpe-2.14-multiline.patch
+++ /dev/null
@@ -1,204 +0,0 @@
-Add support for large output
-
-http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.htmlIndex: 
nrpe-2.14/include/common.h
-===
-Index: nrpe-2.14/include/common.h
-===
 nrpe-2.14.orig/include/common.h
-+++ nrpe-2.14/include/common.h
-@@ -41,7 +41,7 @@
- #define DEFAULT_SOCKET_TIMEOUT10  /* timeout after 10 seconds */
- #define DEFAULT_CONNECTION_TIMEOUT 300/* timeout if daemon is waiting 
for connection more than this time */
- 
--#define MAX_INPUT_BUFFER  2048/* max size of most buffers we use */
-+#define MAX_INPUT_BUFFER  16384   /* max size of most buffers we use */
- #define MAX_FILENAME_LENGTH 256
- 
- #define MAX_HOST_ADDRESS_LENGTH   256 /* max size of a host address */
-@@ -55,12 +55,14 @@
- 
- #define QUERY_PACKET  1   /* id code for a packet 
containing a query */
- #define   RESPONSE_PACKET 2   /* id code for a packet 
containing a response */
-+#defineRESPONSE_PACKET_WITH_MORE   3   /* id code for a packet containing 
a response, with more data to follow */
- 
- #define NRPE_PACKET_VERSION_3   3   /* packet version identifier 
*/
- #define NRPE_PACKET_VERSION_2   2   
- #define NRPE_PACKET_VERSION_1 1   /* older packet version 
identifiers (no longer supported) */
- 
- #define MAX_PACKETBUFFER_LENGTH   1024/* max amount of data 
we'll send in one query/response */
-+  
/* WARNING - do not change this as older clients/servers will not work 
*/
- 
- typedef struct packet_struct{
-   int16_t   packet_version;
-Index: nrpe-2.14/src/check_nrpe.c
-===
 nrpe-2.14.orig/src/check_nrpe.c
-+++ nrpe-2.14/src/check_nrpe.c
-@@ -221,6 +221,11 @@ int main(int argc, char **argv){
-   return STATE_UNKNOWN;
-   }
- 
-+  /* Altinity patch: Allow multiple packets to be received */
-+  /* Indentation not corrected to allow simpler patching */
-+  /* START MULTI_PACKET LOOP */
-+  do {
-+
-   /* wait for the response packet */
-   bytes_to_recv=sizeof(receive_packet);
-   if(use_ssl==FALSE)
-@@ -233,31 +238,24 @@ int main(int argc, char **argv){
-   /* reset timeout */
-   alarm(0);
- 
--  /* close the connection */
--#ifdef HAVE_SSL
--  if(use_ssl==TRUE){
--  SSL_shutdown(ssl);
--  SSL_free(ssl);
--  SSL_CTX_free(ctx);
--  }

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2019-08-31 Thread Michael Orlitzky
commit: 41fd5199166502416d53932adb6a25f442499779
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Aug 31 20:44:54 2019 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Aug 31 21:34:55 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41fd5199

net-analyzer/nrpe: new revision to match nagios-core.

The "nagios" user data and its localstatedir changed in the latest
revision of nagios-core. This revision synchronizes the same bits for
nrpe.

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Michael Orlitzky  gentoo.org>

 net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild | 89 ++
 1 file changed, 89 insertions(+)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild
new file mode 100644
index 000..430050c49b1
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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="command-args libressl selinux ssl"
+
+DEPEND="sys-apps/tcp-wrappers
+   ssl? (
+   !libressl? ( dev-libs/openssl:0= )
+   libressl? ( dev-libs/libressl:0= )
+   )"
+RDEPEND="${DEPEND}
+   || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
+   selinux? ( sec-policy/selinux-nagios )"
+
+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
+   # depending on what it comes up with. We specify fixed values
+   # 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).
+   econf \
+   --libexecdir=/usr/$(get_libdir)/nagios/plugins \
+   --localstatedir=/var/lib/nagios \
+   --sysconfdir=/etc/nagios \
+   --with-nrpe-user=nagios \
+   --with-nrpe-group=nagios \
+   --with-piddir=/run \
+   --with-opsys=unknown \
+   --with-dist-type=unknown \
+   --with-init-type=unknown \
+   --with-inetd-type=unknown \
+   $(use_enable command-args) \
+   $(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 "startup/openrc-init" nrpe
+   newconfd "startup/openrc-conf" nrpe
+   systemd_newunit "startup/default-service" "${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.'
+
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2019-05-02 Thread Mikle Kolyada
commit: 7c98fd90d8991b4cfae6417a18e1bedf39da2111
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Thu May  2 21:21:05 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Thu May  2 21:21:05 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c98fd90

net-analyzer/nrpe: alpha stable wrt bug #662624

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
RepoMan-Options: --include-arches="alpha"

 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
index c0b7658e22f..42a98a8d1ee 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2019-04-28 Thread Thomas Deutschmann
commit: d84492f50124d958c13aebdfba0f848e4e5235de
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sun Apr 28 22:01:43 2019 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sun Apr 28 22:05:17 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d84492f5

net-analyzer/nrpe: x86 stable (bug #662624)

Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann  gentoo.org>

 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
index c5a933d6063..c0b7658e22f 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc ~x86"
+KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2019-04-08 Thread Mikle Kolyada
commit: 0812f4c2a13f58bf921490b83871d0e27c47360c
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Mon Apr  8 13:52:15 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Mon Apr  8 13:53:21 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0812f4c2

net-analyzer/nrpe: amd64 stable wrt bug #662624

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
RepoMan-Options: --include-arches="amd64"

 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
index d7a5b229112..c5a933d6063 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 hppa ppc ppc64 sparc ~x86"
+KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc ~x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2019-04-07 Thread Sergei Trofimovich
commit: 57e0ed682b10249613cc9d40102275930cca566c
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Apr  7 20:47:08 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Apr  7 20:50:10 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e0ed68

net-analyzer/nrpe: stable 3.2.1-r1 for hppa, bug #662624

Package-Manager: Portage-2.3.62, Repoman-2.3.12
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
index 558209c7eff..7618e85345d 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -10,7 +10,7 @@ SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc ~x86"
+KEYWORDS="~alpha ~amd64 hppa ~ppc ~ppc64 sparc ~x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2019-04-02 Thread Sergei Trofimovich
commit: 5a219b9586c465035894baea659825cb8396556c
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Tue Apr  2 15:54:34 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Apr  2 19:20:47 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a219b95

net-analyzer/nrpe: stable 3.2.1-r1 for sparc, bug #662624

Signed-off-by: Rolf Eike Beer  sf-mail.de>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
index af8c100f0f3..558209c7eff 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 sparc ~x86"
 IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/, net-analyzer/nrpe/files/

2018-09-30 Thread Michael Orlitzky
commit: 2ddfa65c2244d92429897a51b1d8a8e3dc8a92dc
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sun Sep 30 12:26:56 2018 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sun Sep 30 12:27:53 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ddfa65c

net-analyzer/nrpe: new revision to eliminate PID files with systemd.

The NRPE systemd service is "simple," which means that it runs in the
foreground. As a result, no PID file is needed to later kill it.
Nevertheless, the systemd service file that ships with NRPE tries to
create one. And in order to do that, it messes with some permissions
(Gentoo bug 648992) that shouldn't be messed with. This commit adds a
patch to remove the PID file from the service.

A related problem that this revision fixes is the automagic detection
of the operating system, distribution, and init system by the NRPE
autotools. The new revision hard-codes all of these to "unknown,"
which should result in behavior that is consistent across machines. In
particular, it should cause the problematic tmpfiles.d entry
(associated with the PID file) to not be installed.

Bug: https://bugs.gentoo.org/648992
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Signed-off-by: Michael Orlitzky  gentoo.org>

 .../files/nrpe-3.2.1-eliminate-systemd-pid.patch   | 38 +
 net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild | 89 ++
 2 files changed, 127 insertions(+)

diff --git a/net-analyzer/nrpe/files/nrpe-3.2.1-eliminate-systemd-pid.patch 
b/net-analyzer/nrpe/files/nrpe-3.2.1-eliminate-systemd-pid.patch
new file mode 100644
index 000..6ee520dfa69
--- /dev/null
+++ b/net-analyzer/nrpe/files/nrpe-3.2.1-eliminate-systemd-pid.patch
@@ -0,0 +1,38 @@
+From c4ad513294e8db25ebaf25127948cce37c13e1b2 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky 
+Date: Sat, 29 Sep 2018 20:23:53 -0400
+Subject: [PATCH 1/1] startup/default-service.in: remove PIDFile and
+ ExecStopPost lines.
+
+The nrpe systemd service is a "simple" service, which means that it
+runs in the foreground and doesn't need any PID file tracking to begin
+with. The tmpfiles.d entry associated with the PID file is causing
+problems in Gentoo bug 648992, and so as a prerequisite for deleting
+it, this commit eliminates the PID file.
+
+Bug: https://bugs.gentoo.org/648992
+Bug: https://github.com/NagiosEnterprises/nrpe/issues/188
+---
+ startup/default-service.in | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/startup/default-service.in b/startup/default-service.in
+index b6c6063..110a0cd 100644
+--- a/startup/default-service.in
 b/startup/default-service.in
+@@ -11,12 +11,10 @@ WantedBy=multi-user.target
+ [Service]
+ Type=simple
+ Restart=on-abort
+-PIDFile=@piddir@/nrpe.pid
+ RuntimeDirectory=nrpe
+ RuntimeDirectoryMode=0755
+ ExecStart=@sbindir@/nrpe -c @pkgsysconfdir@/nrpe.cfg -f
+ ExecReload=/bin/kill -HUP $MAINPID
+-ExecStopPost=/bin/rm -f @piddir@/nrpe.pid
+ TimeoutStopSec=60
+ User=@nrpe_user@
+ Group=@nrpe_group@
+-- 
+2.16.4
+

diff --git a/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
new file mode 100644
index 000..af8c100f0f3
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-3.2.1-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2018 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="command-args libressl selinux ssl"
+
+DEPEND="sys-apps/tcp-wrappers
+   ssl? (
+   !libressl? ( dev-libs/openssl:0= )
+   libressl? ( dev-libs/libressl:0= )
+   )"
+RDEPEND="${DEPEND}
+   || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
+   selinux? ( sec-policy/selinux-nagios )"
+
+PATCHES=( "${FILESDIR}/nrpe-3.2.1-eliminate-systemd-pid.patch" )
+
+pkg_setup() {
+   enewgroup nagios
+   enewuser nagios -1 /bin/bash /var/nagios/home nagios
+}
+
+src_configure() {
+   # The configure script tries to detect what OS, distribution, and
+   # init system you're running and changes the build/install process
+   # depending on what it comes up with. We specify fixed values
+   # 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).
+   econf \
+   --libexecdir=/usr/$(get_libdir)/nagios/plugins \
+   --localstatedir=/var/nagios \
+   --sysconfdir=/etc/nagios \
+   --with-nrpe-user=nagios \
+   --with-nrpe-group=nagios \
+   --with-piddir=/run \
+   --with-opsys=unknown \
+   --with-dist-type=unknown \
+   

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2018-04-23 Thread Aaron Bauman
commit: 7a56720aaea444a2243979f8f7c1424e67949b70
Author: Aaron Bauman  gentoo  org>
AuthorDate: Mon Apr 23 21:22:23 2018 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Mon Apr 23 21:22:23 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a56720a

net-analyzer/nrpe: add LibreSSL support

Closes: https://bugs.gentoo.org/581592
Package-Manager: Portage-2.3.31, Repoman-2.3.9

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 10 +++---
 net-analyzer/nrpe/nrpe-3.2.1.ebuild   |  9 ++---
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index 90481423d1f..afdbdc893c4 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -11,9 +11,13 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
-IUSE="command-args minimal selinux ssl tcpd"
+IUSE="command-args libressl minimal selinux ssl tcpd"
 
-DEPEND="ssl? ( dev-libs/openssl:0 )
+DEPEND="
+   ssl? (
+   !libressl? ( dev-libs/openssl:0= )
+   libressl? ( dev-libs/libressl:0= )
+   )
!minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )"
 RDEPEND="${DEPEND}
!minimal? (

diff --git a/net-analyzer/nrpe/nrpe-3.2.1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1.ebuild
index fabe5f984ca..3a4f9d8d251 100644
--- a/net-analyzer/nrpe/nrpe-3.2.1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -11,10 +11,13 @@ SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="command-args selinux ssl"
+IUSE="command-args libressl selinux ssl"
 
 DEPEND="sys-apps/tcp-wrappers
-   ssl? ( dev-libs/openssl:0 )"
+   ssl? (
+   !libressl? ( dev-libs/openssl:0= )
+   libressl? ( dev-libs/libressl:0= )
+   )"
 RDEPEND="${DEPEND}
|| ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )
selinux? ( sec-policy/selinux-nagios )"



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/files/

2017-12-06 Thread Michael Palimaka
commit: a008f4a6406eb6e1da4ae263b5acb94618c75d28
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Mon Dec  4 20:19:35 2017 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Wed Dec  6 13:03:58 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a008f4a6

net-analyzer/nrpe: remove unused file

Closes: https://github.com/gentoo/gentoo/pull/6442

 net-analyzer/nrpe/files/nrpe-3.2.0.init | 16 
 1 file changed, 16 deletions(-)

diff --git a/net-analyzer/nrpe/files/nrpe-3.2.0.init 
b/net-analyzer/nrpe/files/nrpe-3.2.0.init
deleted file mode 100644
index acf8b549ee7..000
--- a/net-analyzer/nrpe/files/nrpe-3.2.0.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 $?
-}



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-09-29 Thread Michael Orlitzky
commit: a4af659e27fc6fa5569cc1d1f5aae396b6d2782e
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Fri Sep 29 01:13:03 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri Sep 29 11:54:26 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4af659e

net-analyzer/nrpe: new version 3.2.1.

Package-Manager: Portage-2.3.8, Repoman-2.3.1

 net-analyzer/nrpe/Manifest| 2 +-
 net-analyzer/nrpe/{nrpe-3.2.0-r2.ebuild => nrpe-3.2.1.ebuild} | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 9142d44c45a..a46b59766a0 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.2.0.tar.gz 517743 SHA256 
6f4a0cfe1d7b7b38e43f9f87909f5cb1e3a7150a2ccfc0a6822e3b1e7d76cf8e SHA512 
a2fe7971ce0ab1bdc55cdecb96d096b45db493cfefdb414930a1eb4cf99b92660a99784d14e6e9dc0b951769cf14f066507ee8b0fec0aa13d46288dcc069d473
 WHIRLPOOL 
5094f04a2e7672c1489a7364c6bb5c20e1f33477e6df22974ed44cfa97839174d537b309bb8f196f74ecc04f643f71e2f77adafd7d9027c1a84356c52f5aa23f
+DIST nrpe-3.2.1.tar.gz 518015 SHA256 
8ad2d1846ab9011fdd2942b8fc0c99dfad9a97e57f4a3e6e394a4ead99c0f1f0 SHA512 
ec6ff42a00bd97ed80010a82e26dc35fd419f2feda65820cda0108068173c1ae44eee698833a50fd2079429a6f5eb1321c4f06b09c6708bc5fbe48f176389856
 WHIRLPOOL 
b6d14d57dd40b69f7bd6b0c125a3b839741b4265868f3f2bf02523b67954d1580a50f5b8bafc7210320f04964ff2f6727448c59f826cc85ed313bd4483218687

diff --git a/net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.1.ebuild
similarity index 96%
rename from net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild
rename to net-analyzer/nrpe/nrpe-3.2.1.ebuild
index ca614e36b64..fabe5f984ca 100644
--- a/net-analyzer/nrpe/nrpe-3.2.0-r2.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.1.ebuild
@@ -49,7 +49,8 @@ src_install() {
fowners root:nagios /etc/nagios/nrpe.cfg
fperms 0640 /etc/nagios/nrpe.cfg
 
-   newinitd "${FILESDIR}/nrpe-${PV}.init" nrpe
+   newinitd "startup/openrc-init" nrpe
+   newconfd "startup/openrc-conf" nrpe
systemd_newunit "startup/default-service" "${PN}.service"
 
insinto /etc/xinetd.d/



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-08-24 Thread Michael Orlitzky
commit: b2e206ae1296ba85a0f5dc624903e182af65bf3a
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Thu Aug 24 15:01:01 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Thu Aug 24 15:01:01 2017 +
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
 }



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-07-16 Thread Michael Orlitzky
commit: ff8b8d98148eb80e04011adc3ba1c757ee4f0c97
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sun Jul 16 12:41:10 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sun Jul 16 12:41:10 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff8b8d98

net-analyzer/nrpe: new revision to fix the systemd service.

The systemd unit file we were shipping no longer works with
nrpe-3.x. Fortunately, upstream has their own service file which will
work for us. We now use upstream's copy instead. Thanks to Nemunaire
for the report, fix, and testing.

Gentoo-Bug: 620020

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 net-analyzer/nrpe/{nrpe-3.2.0.ebuild => nrpe-3.2.0-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.2.0.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild
similarity index 96%
rename from net-analyzer/nrpe/nrpe-3.2.0.ebuild
rename to net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild
index 47ab35e74b4..08d233c3de6 100644
--- a/net-analyzer/nrpe/nrpe-3.2.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.0-r1.ebuild
@@ -49,7 +49,7 @@ src_install() {
fperms 0640 /etc/nagios/nrpe.cfg
 
newinitd "${FILESDIR}/nrpe-${PV}.init" nrpe
-   systemd_dounit "${FILESDIR}/${PN}.service"
+   systemd_newunit "startup/default-service" "${PN}.service"
 
insinto /etc/xinetd.d/
newins "${FILESDIR}/nrpe.xinetd.2" nrpe



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/, net-analyzer/nrpe/files/

2017-07-15 Thread Michael Orlitzky
commit: 563a03380b72349d215d57be76f7c5de3e3a24d3
Author: Tomas Mozes  gmail  com>
AuthorDate: Thu Jun 29 13:41:58 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Jul 15 19:15:13 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=563a0338

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  gentoo.org>

 net-analyzer/nrpe/Manifest   | 2 +-
 net-analyzer/nrpe/files/{nrpe-3.1.1.init => nrpe-3.2.0.init} | 0
 net-analyzer/nrpe/{nrpe-3.1.1.ebuild => nrpe-3.2.0.ebuild}   | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 1ec17f2638d..9142d44c45a 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.2.0.init
similarity index 100%
rename from net-analyzer/nrpe/files/nrpe-3.1.1.init
rename to net-analyzer/nrpe/files/nrpe-3.2.0.init

diff --git a/net-analyzer/nrpe/nrpe-3.1.1.ebuild 
b/net-analyzer/nrpe/nrpe-3.2.0.ebuild
similarity index 97%
rename from net-analyzer/nrpe/nrpe-3.1.1.ebuild
rename to net-analyzer/nrpe/nrpe-3.2.0.ebuild
index 6ad8fe398f1..47ab35e74b4 100644
--- a/net-analyzer/nrpe/nrpe-3.1.1.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.2.0.ebuild
@@ -42,7 +42,7 @@ src_compile() {
 src_install() {
default
 
-   dodoc Changelog SECURITY.md
+   dodoc CHANGELOG.md SECURITY.md
insinto /etc/nagios
newins sample-config/nrpe.cfg nrpe.cfg
fowners root:nagios /etc/nagios/nrpe.cfg



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/files/, net-analyzer/nrpe/

2017-06-07 Thread Michael Orlitzky
commit: c4935b71037ff671ee78d8185e657c87cc29a76e
Author: Tomas Mozes  gmail  com>
AuthorDate: Fri Jun  2 05:54:42 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Wed Jun  7 12:23:15 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4935b71

net-analyzer/nrpe: bump to 3.1.1, drop old

Package-Manager: Portage-2.3.6, Repoman-2.3.2

Signed-off-by: Michael Orlitzky  gentoo.org>

 net-analyzer/nrpe/Manifest   | 2 +-
 net-analyzer/nrpe/files/{nrpe-3.1.0.init => nrpe-3.1.1.init} | 0
 net-analyzer/nrpe/{nrpe-3.1.0.ebuild => nrpe-3.1.1.ebuild}   | 0
 3 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 9dbbbda4871..1ec17f2638d 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.0.tar.gz 501028 SHA256 
22942b546f1af9b3f277daa68742b7f72a53145079adf0f086e4554e1482f24a SHA512 
d67ae7cbd7f72fccc341e7da6d8774ee28da93dd14a18e6c6fbce6c9ba3fab19451ededea3cff0945ec1569026ee10f12a44bebbeac12a3b8210ed9aec4b39b8
 WHIRLPOOL 
ecb41098e5bc87a8eaa0af8853fbe48b85a1c84a01ad5484f89aa231bb99a7604e4d67aa495651487577e3c85471bc274123809b40d791ade2c55d46d37b3e1b
+DIST nrpe-3.1.1.tar.gz 515215 SHA256 
cfb3d4fb036e81cbb8a6d9c34f24b7d9395ecfaa55234a0572382ea30c54fd8d SHA512 
1d4cb6e35ad88f1dcd66b552ac1b3892cbd894f182b2ab35929bb656423187a7e93ac3e9c812a72f10aaecd0924fc7bc36719abbeec2d65363534830972b5d92
 WHIRLPOOL 
f77db69c351488ea2e83d60094f82447c1bf4adea9da0cff2264346fdc7679941fb148546bd290da3d498851f84859164ac13c55e58e24785f808309bb8e14ae

diff --git a/net-analyzer/nrpe/files/nrpe-3.1.0.init 
b/net-analyzer/nrpe/files/nrpe-3.1.1.init
similarity index 100%
rename from net-analyzer/nrpe/files/nrpe-3.1.0.init
rename to net-analyzer/nrpe/files/nrpe-3.1.1.init

diff --git a/net-analyzer/nrpe/nrpe-3.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-3.1.1.ebuild
similarity index 100%
rename from net-analyzer/nrpe/nrpe-3.1.0.ebuild
rename to net-analyzer/nrpe/nrpe-3.1.1.ebuild



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-05-15 Thread Tobias Klausmann
commit: becd5deb942d5d9360d5506fc8d33c450665d1c1
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Mon May 15 08:13:30 2017 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Mon May 15 08:13:30 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=becd5deb

net-analyzer/nrpe: Fix broken SRC_URI for 3.0.1

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 net-analyzer/nrpe/nrpe-3.1.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-3.1.0.ebuild 
b/net-analyzer/nrpe/nrpe-3.1.0.ebuild
index e6ed550c91c..6ad8fe398f1 100644
--- a/net-analyzer/nrpe/nrpe-3.1.0.ebuild
+++ b/net-analyzer/nrpe/nrpe-3.1.0.ebuild
@@ -6,7 +6,7 @@ inherit systemd user
 
 DESCRIPTION="Nagios Remote Plugin Executor"
 HOMEPAGE="https://github.com/NagiosEnterprises/nrpe;
-SRC_URI="${HOMEPAGE}/releases/download/release-${PV}/${P}.tar.gz"
+SRC_URI="${HOMEPAGE}/releases/download/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/files/, net-analyzer/nrpe/

2017-05-12 Thread Michael Orlitzky
commit: 1aa4d1f895af173e41d53f5d811a62788a68d7f2
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Fri May 12 21:56:12 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Fri May 12 21:56:29 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa4d1f8

net-analyzer/nrpe: new version 3.1.0.

This new ebuild is missing a lot of the custom patching of the 2.x
series, ultimately because I just don't have time to forward-port a
bunch of patches. Here's a quick summary of the changes:

  * Command arguments are unconditionally disabled, because they're
a security risk. This flag would be easy to bring back, but it
should be masked if we do.

  * The daemon and tcp wrappers are no longer optional. While I admit
that having them be optional is useful, a giant patch to the build
system is not the way to go about it. Send that mess upstream!

  * The nrpe_check_control tool is not installed. This is "contrib"
upstream, and doesn't use the correct paths from the build
system. Needs to be fixed upstream.

Thanks to Tomáš Mózes for the heads-up about the new version, and for
testing the ebuild and init script. It looks like our nrpe-2.x and
nrpe-3.x have some incompatibilities, possibly due to our patches
against the 2.x series. I've added an elog recommending that users not
mix major versions on the client/server.

Gentoo-Bug: 616092

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-analyzer/nrpe/Manifest  |  1 +
 net-analyzer/nrpe/files/nrpe-3.1.0.init | 16 +
 net-analyzer/nrpe/nrpe-3.1.0.ebuild | 64 +
 3 files changed, 81 insertions(+)

diff --git a/net-analyzer/nrpe/Manifest b/net-analyzer/nrpe/Manifest
index 51876a8e1c1..9dbbbda4871 100644
--- a/net-analyzer/nrpe/Manifest
+++ b/net-analyzer/nrpe/Manifest
@@ -1 +1,2 @@
 DIST nrpe-2.15.tar.gz 419695 SHA256 
66383b7d367de25ba031d37762d83e2b55de010c573009c6f58270b137131072 SHA512 
03ce9774b5112d03235dc9da075770d89d1bcc5ffa5faf221ff7ea8ec5c92ded1e1ae9222581a87cf53736d190ac047e1acce7edc2f31f26c432d786cdef0e73
 WHIRLPOOL 
f97ad7431138fd96588bb4e9d13404a0425bbdb8582c7c472cb20621bb77a9e9ecdeed88b9247ea20815da33c5b123368a540c5a0a058921e59367c2ce2a2b10
+DIST nrpe-3.1.0.tar.gz 501028 SHA256 
22942b546f1af9b3f277daa68742b7f72a53145079adf0f086e4554e1482f24a SHA512 
d67ae7cbd7f72fccc341e7da6d8774ee28da93dd14a18e6c6fbce6c9ba3fab19451ededea3cff0945ec1569026ee10f12a44bebbeac12a3b8210ed9aec4b39b8
 WHIRLPOOL 
ecb41098e5bc87a8eaa0af8853fbe48b85a1c84a01ad5484f89aa231bb99a7604e4d67aa495651487577e3c85471bc274123809b40d791ade2c55d46d37b3e1b

diff --git a/net-analyzer/nrpe/files/nrpe-3.1.0.init 
b/net-analyzer/nrpe/files/nrpe-3.1.0.init
new file mode 100644
index 000..acf8b549ee7
--- /dev/null
+++ b/net-analyzer/nrpe/files/nrpe-3.1.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.0.ebuild 
b/net-analyzer/nrpe/nrpe-3.1.0.ebuild
new file mode 100644
index 000..e6ed550c91c
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-3.1.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/release-${PV}/${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 

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-05-01 Thread Michael Orlitzky
commit: 68b248d93dd95048426be0ae9139a58b3f15e60b
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Mon May  1 13:51:19 2017 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon May  1 13:51:19 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68b248d9

net-analyzer/nrpe: remove unused version 2.15-r2.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-analyzer/nrpe/nrpe-2.15-r2.ebuild | 128 --
 1 file changed, 128 deletions(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r2.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r2.ebuild
deleted file mode 100644
index d36cf25b13d..000
--- a/net-analyzer/nrpe/nrpe-2.15-r2.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils systemd toolchain-funcs multilib user autotools
-
-DESCRIPTION="Nagios Remote Plugin Executor"
-HOMEPAGE="http://www.nagios.org/;
-SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
-IUSE="command-args ssl tcpd minimal"
-
-DEPEND="ssl? ( dev-libs/openssl )
-   !minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )"
-RDEPEND="${DEPEND}
-   !minimal? (
-   || ( net-analyzer/nagios-plugins 
net-analyzer/monitoring-plugins )
-   )"
-
-pkg_setup() {
-   enewgroup nagios
-   enewuser nagios -1 /bin/bash /dev/null nagios
-
-   elog "If you plan to use \"nrpe_check_control\" then you may want to 
specify"
-   elog "different command and services files. You can override the 
defaults"
-   elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" 
environment variables."
-   elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}"
-   elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}"
-}
-
-src_prepare() {
-   # Add support for large output,
-   # http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html
-   epatch "${FILESDIR}"/${PN}-2.14-multiline.patch
-   # fix configure, among others #326367, #397603
-   epatch "${FILESDIR}"/${PN}-2.15-tcpd-et-al.patch
-   # otherwise autoconf will overwrite the custom include/config.h.in
-   epatch "${FILESDIR}"/${PN}-2.15-autoconf-header.patch
-   # improve handling of metachars for security
-   epatch "${FILESDIR}"/${PN}-2.15-metachar-security-fix.patch
-
-   sed -i -e '/define \(COMMAND\|SERVICES\)_FILE/d' 
contrib/nrpe_check_control.c || die
-
-   # change the default location of the pid file
-   sed -i -e '/pid_file/s:/var/run:/run:' sample-config/nrpe.cfg.in || die
-
-   # fix TFU handling of autoheader
-   sed -i -e '/#undef/d' include/config.h.in || die
-
-   eautoreconf
-}
-
-src_configure() {
-   local myconf
-   if use minimal; then
-   myconf="--disable-tcp-wrapper --disable-command-args"
-   else
-   myconf="$(use_enable tcpd tcp-wrapper) $(use_enable 
command-args)"
-   fi
-
-   econf \
-   --libexecdir=/usr/$(get_libdir)/nagios/plugins \
-   --localstatedir=/var/nagios \
-   --sysconfdir=/etc/nagios \
-   --with-nrpe-user=nagios \
-   --with-nrpe-group=nagios \
-   $(use_enable ssl) \
-   ${myconf}
-}
-
-src_compile() {
-   emake -C src check_nrpe $(use minimal || echo nrpe)
-
-   # Add nifty nrpe check tool
-   $(tc-getCC) ${CPPFLAGS} ${CFLAGS} \
-   -DCOMMAND_FILE=\"${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}\" \
-   -DSERVICES_FILE=\"${NAGIOS_SERVICES_FILE:-/etc/services.cfg}\" \
-   ${LDFLAGS} -o nrpe_check_control contrib/nrpe_check_control.c 
|| die
-}
-
-src_install() {
-   dodoc LEGAL Changelog README SECURITY \
-   contrib/README.nrpe_check_control \
-   $(use ssl && echo README.SSL)
-
-   exeinto /usr/$(get_libdir)/nagios/plugins
-   doexe src/check_nrpe nrpe_check_control
-
-   use minimal && return 0
-
-   ## NON-MINIMAL INSTALL FOLLOWS ##
-
-   insinto /etc/nagios
-   newins sample-config/nrpe.cfg nrpe.cfg
-   fowners root:nagios /etc/nagios/nrpe.cfg
-   fperms 0640 /etc/nagios/nrpe.cfg
-
-   exeinto /usr/libexec
-   doexe src/nrpe
-
-   newinitd "${FILESDIR}"/nrpe.init nrpe
-   systemd_dounit "${FILESDIR}/${PN}.service"
-
-   insinto /etc/xinetd.d/
-   newins "${FILESDIR}/nrpe.xinetd.2" nrpe
-
-   if use tcpd; then
-   sed -i -e '/^reload()/, /^}/ d' -e 
'/extra_started_commands/s:reload::' \
-   "${D}"/etc/init.d/nrpe
-   fi
-}
-
-pkg_postinst() {
-   elog "If you are using the nrpe daemon, remember to edit"
-   elog "the config file /etc/nagios/nrpe.cfg"
-
-   if use command-args ; then
-   ewarn ""
-   ewarn "You have enabled 

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-04-30 Thread Agostino Sarubbo
commit: 82b203d46163dbb1c3a669f129823ce2114556aa
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Apr 30 09:35:00 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Apr 30 09:37:00 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82b203d4

net-analyzer/nrpe: ppc64 stable wrt bug #608596

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index b98cad59d81..90481423d1f 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86"
+KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
 IUSE="command-args minimal selinux ssl tcpd"
 
 DEPEND="ssl? ( dev-libs/openssl:0 )



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-04-29 Thread Agostino Sarubbo
commit: 04f3a8022dffc86e653a187295fe2db0b173ba9e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sat Apr 29 14:59:40 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sat Apr 29 14:59:40 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04f3a802

net-analyzer/nrpe: ppc stable wrt bug #608596

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan-Options: --include-arches="ppc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index d53902c7305..b98cad59d81 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="alpha amd64 hppa ~ppc ~ppc64 sparc x86"
+KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86"
 IUSE="command-args minimal selinux ssl tcpd"
 
 DEPEND="ssl? ( dev-libs/openssl:0 )



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-04-27 Thread Agostino Sarubbo
commit: 030336c9cb968d3cd0f45bd1a5b3c24d7b412c4e
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu Apr 27 11:21:04 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu Apr 27 11:21:04 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=030336c9

net-analyzer/nrpe: sparc stable wrt bug #608596

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index 0d3f8833846..d53902c7305 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="alpha amd64 hppa ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="alpha amd64 hppa ~ppc ~ppc64 sparc x86"
 IUSE="command-args minimal selinux ssl tcpd"
 
 DEPEND="ssl? ( dev-libs/openssl:0 )



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-04-25 Thread Jeroen Roovers
commit: 0d190768da55023932a0cf743c7765defc6171d0
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Tue Apr 25 07:15:42 2017 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Tue Apr 25 07:15:42 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d190768

net-analyzer/nrpe: Stable for HPPA (bug #608596).

Package-Manager: Portage-2.3.5, Repoman-2.3.2
RepoMan-Options: --ignore-arches

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index cd4543a5da5..8bda02057ce 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="alpha amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 hppa ~ppc ~ppc64 ~sparc ~x86"
 IUSE="command-args minimal selinux ssl tcpd"
 
 DEPEND="ssl? ( dev-libs/openssl:0 )



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-04-24 Thread Tobias Klausmann
commit: e8df6b1376e0510513b42b2ab1d9ab2cc230ea93
Author: Tobias Klausmann  gentoo  org>
AuthorDate: Mon Apr 24 08:59:50 2017 +
Commit: Tobias Klausmann  gentoo  org>
CommitDate: Mon Apr 24 12:43:21 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8df6b13

net-analyzer/nrpe-2.15-r3: add alpha keyword

Gentoo-Bug: 608596

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index 04bdbc578fc..cd4543a5da5 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="alpha amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
 IUSE="command-args minimal selinux ssl tcpd"
 
 DEPEND="ssl? ( dev-libs/openssl:0 )



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/

2017-04-23 Thread Agostino Sarubbo
commit: 87b0fb91563e955b01e0926ab8b5a72685c49fe5
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Sun Apr 23 12:40:00 2017 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Sun Apr 23 12:40:00 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87b0fb91

net-analyzer/nrpe: amd64 stable wrt bug #608596

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 net-analyzer/nrpe/nrpe-2.15-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
index 72cbc68a5f2..04bdbc578fc 100644
--- a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
 IUSE="command-args minimal selinux ssl tcpd"
 
 DEPEND="ssl? ( dev-libs/openssl:0 )



[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/files/, net-analyzer/nrpe/

2015-08-31 Thread Michael Orlitzky
commit: 9dc0aa1615c187829e2d3c1f9019a72559ee185f
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Mon Aug 31 15:43:48 2015 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Aug 31 15:44:05 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dc0aa16

net-analyzer/nrpe: remove old ebuilds and patches.

Package-Manager: portage-2.2.20.1

 .../nrpe/files/nagios-nrpe-2.13-command-args.patch |  15 --
 .../nrpe/files/nagios-nrpe-2.13-multiline.patch| 200 -
 .../nrpe/files/nagios-nrpe-2.13-tcpd.patch |  33 
 net-analyzer/nrpe/files/nrpe-2.14-tcpd-et-al.patch |  74 
 net-analyzer/nrpe/nrpe-2.15-r1.ebuild  | 127 -
 net-analyzer/nrpe/nrpe-2.15.ebuild | 127 -
 6 files changed, 576 deletions(-)

diff --git a/net-analyzer/nrpe/files/nagios-nrpe-2.13-command-args.patch 
b/net-analyzer/nrpe/files/nagios-nrpe-2.13-command-args.patch
deleted file mode 100644
index fe6751a..000
--- a/net-analyzer/nrpe/files/nagios-nrpe-2.13-command-args.patch
+++ /dev/null
@@ -1,15 +0,0 @@
 configure.old  2008-03-10 22:04:41.0 +0100
-+++ configure.in   2012-01-04 09:46:38.0 +0100
-@@ -362,7 +362,11 @@
- AC_SUBST(NAGIOS_INSTALL_OPTS)
- 
- 
--AC_ARG_ENABLE(command-args,--enable-command-args allows clients to specify 
command arguments.  *** THIS IS A SECURITY RISK! *** Read the SECURITY file 
before using this option!,AC_DEFINE_UNQUOTED(ENABLE_COMMAND_ARGUMENTS))
-+AC_ARG_ENABLE(command-args,--enable-command-args allows clients to specify 
command arguments.  *** THIS IS A SECURITY RISK! *** Read the SECURITY file 
before using this option!,[
-+  if test x$enableval = xyes; then
-+  AC_DEFINE_UNQUOTED(ENABLE_COMMAND_ARGUMENTS)
-+  fi
-+  ])
- 
- 
- AC_PATH_PROG(PERL,perl)

diff --git a/net-analyzer/nrpe/files/nagios-nrpe-2.13-multiline.patch 
b/net-analyzer/nrpe/files/nagios-nrpe-2.13-multiline.patch
deleted file mode 100644
index 8d96149..000
--- a/net-analyzer/nrpe/files/nagios-nrpe-2.13-multiline.patch
+++ /dev/null
@@ -1,200 +0,0 @@
-diff --git a/include/common.h b/include/common.h
-index 202dec4..86f8e32 100755
 a/include/common.h
-+++ b/include/common.h
-@@ -41,7 +41,7 @@
- #define DEFAULT_SOCKET_TIMEOUT10  /* timeout after 10 seconds */
- #define DEFAULT_CONNECTION_TIMEOUT 300/* timeout if daemon is waiting 
for connection more than this time */
- 
--#define MAX_INPUT_BUFFER  2048/* max size of most buffers we use */
-+#define MAX_INPUT_BUFFER  16384   /* max size of most buffers we use */
- #define MAX_FILENAME_LENGTH 256
- 
- #define MAX_HOST_ADDRESS_LENGTH   256 /* max size of a host address */
-@@ -55,12 +55,14 @@
- 
- #define QUERY_PACKET  1   /* id code for a packet 
containing a query */
- #define   RESPONSE_PACKET 2   /* id code for a packet 
containing a response */
-+#defineRESPONSE_PACKET_WITH_MORE   3   /* id code for a packet containing 
a response, with more data to follow */
- 
- #define NRPE_PACKET_VERSION_3   3   /* packet version identifier 
*/
- #define NRPE_PACKET_VERSION_2   2   
- #define NRPE_PACKET_VERSION_1 1   /* older packet version 
identifiers (no longer supported) */
- 
- #define MAX_PACKETBUFFER_LENGTH   1024/* max amount of data 
we'll send in one query/response */
-+  
/* WARNING - do not change this as older clients/servers will not work 
*/
- 
- typedef struct packet_struct{
-   int16_t   packet_version;
-diff --git a/src/check_nrpe.c b/src/check_nrpe.c
-index 0adced1..ff4b920 100755
 a/src/check_nrpe.c
-+++ b/src/check_nrpe.c
-@@ -221,6 +221,11 @@ int main(int argc, char **argv){
-   return STATE_UNKNOWN;
-   }
- 
-+  /* Altinity patch: Allow multiple packets to be received */
-+  /* Indentation not corrected to allow simpler patching */
-+  /* START MULTI_PACKET LOOP */
-+  do {
-+
-   /* wait for the response packet */
-   bytes_to_recv=sizeof(receive_packet);
-   if(use_ssl==FALSE)
-@@ -233,31 +238,24 @@ int main(int argc, char **argv){
-   /* reset timeout */
-   alarm(0);
- 
--  /* close the connection */
--#ifdef HAVE_SSL
--  if(use_ssl==TRUE){
--  SSL_shutdown(ssl);
--  SSL_free(ssl);
--  SSL_CTX_free(ctx);
--  }
--#endif
--  graceful_close(sd,1000);
--
-   /* recv() error */
-   if(rc<0){
-   printf("CHECK_NRPE: Error receiving data from 
daemon.\n");
-+  graceful_close(sd,1000);
-   return STATE_UNKNOWN;
-

[gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/, net-analyzer/nrpe/files/

2015-08-31 Thread Michael Orlitzky
commit: e05d77e5b5a85672092c5c156b1371da178b520f
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Mon Aug 31 16:08:49 2015 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Aug 31 16:08:49 2015 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e05d77e5

net-analyzer/nrpe: revbump to add selinux and no-ssl support.

Add a conditional dep on sec-policy/selinux-nagios, and pull in an
(unreleased) upstream patch to fix the build when USE="-ssl". Also add
a slot on the openssl dependency to make repoman happy.

Bug: 462572
Bug: 554536

Package-Manager: portage-2.2.20.1

 net-analyzer/nrpe/files/nrpe-2.15-no-ssl.patch |  39 +++
 net-analyzer/nrpe/nrpe-2.15-r3.ebuild  | 137 +
 2 files changed, 176 insertions(+)

diff --git a/net-analyzer/nrpe/files/nrpe-2.15-no-ssl.patch 
b/net-analyzer/nrpe/files/nrpe-2.15-no-ssl.patch
new file mode 100644
index 000..3b3fc13
--- /dev/null
+++ b/net-analyzer/nrpe/files/nrpe-2.15-no-ssl.patch
@@ -0,0 +1,39 @@
+Without this patch, you can't build nrpe without SSL support. It was
+originally submitted on the Nagios forums by user Matthew L. Daniel:
+
+  https://support.nagios.com/forum/viewtopic.php?t=27027
+
+It was merged into the upstream github repo (NagiosEnterprises/nrpe)
+in commit 3736fdeeac11a.
+
+
+diff --git a/src/nrpe.c b/src/nrpe.c
+index 4bc849b..1e55ab4 100644
+--- a/src/nrpe.c
 b/src/nrpe.c
+@@ -102,7 +102,9 @@ int use_src=FALSE; /* Define parameter for SRC option 
*/
+ int   listen_queue_size=DEFAULT_LISTEN_QUEUE_SIZE;
+ 
+ 
++#ifdef HAVE_SSL
+ void complete_SSL_shutdown( SSL *);
++#endif
+ 
+ 
+ int main(int argc, char **argv){
+@@ -1815,6 +1817,7 @@ int remove_pid_file(void){
+   return OK;
+ }
+ 
++#ifdef HAVE_SSL
+ void complete_SSL_shutdown( SSL *ssl) {
+ 
+   /*  
+@@ -1835,6 +1838,7 @@ void complete_SSL_shutdown( SSL *ssl) {
+   if( SSL_shutdown( ssl)) break;
+   }
+ }
++#endif/*HAVE_SSL*/
+ 
+ /* bail if daemon is running as root */
+ int check_privileges(void){

diff --git a/net-analyzer/nrpe/nrpe-2.15-r3.ebuild 
b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
new file mode 100644
index 000..906120d
--- /dev/null
+++ b/net-analyzer/nrpe/nrpe-2.15-r3.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils systemd toolchain-funcs multilib user autotools
+
+DESCRIPTION="Nagios Remote Plugin Executor"
+HOMEPAGE="http://www.nagios.org/;
+SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="command-args minimal selinux ssl tcpd"
+
+DEPEND="ssl? ( dev-libs/openssl:0 )
+   !minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )"
+RDEPEND="${DEPEND}
+   !minimal? (
+   || ( net-analyzer/nagios-plugins 
net-analyzer/monitoring-plugins )
+   )
+   selinux? ( sec-policy/selinux-nagios )"
+
+pkg_setup() {
+   enewgroup nagios
+   enewuser nagios -1 /bin/bash /dev/null nagios
+
+   elog "If you plan to use \"nrpe_check_control\" then you may want to 
specify"
+   elog "different command and services files. You can override the 
defaults"
+   elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" 
environment variables."
+   elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}"
+   elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}"
+}
+
+src_prepare() {
+   # Add support for large output,
+   # http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html
+   epatch "${FILESDIR}"/${PN}-2.14-multiline.patch
+
+   # fix configure, among others #326367, #397603
+   epatch "${FILESDIR}"/${PN}-2.15-tcpd-et-al.patch
+
+   # otherwise autoconf will overwrite the custom include/config.h.in
+   epatch "${FILESDIR}"/${PN}-2.15-autoconf-header.patch
+
+   # improve handling of metachars for security
+   epatch "${FILESDIR}"/${PN}-2.15-metachar-security-fix.patch
+
+   # Fix build with USE="-ssl".
+   epatch "${FILESDIR}"/${PN}-2.15-no-ssl.patch
+
+   sed -i -e '/define \(COMMAND\|SERVICES\)_FILE/d' \
+   contrib/nrpe_check_control.c || die
+
+   # change the default location of the pid file
+   sed -i -e '/pid_file/s:/var/run:/run:' sample-config/nrpe.cfg.in || die
+
+   # fix TFU handling of autoheader
+   sed -i -e '/#undef/d' include/config.h.in || die
+
+   eautoreconf
+}
+
+src_configure() {
+   local myconf
+   if use minimal; then
+   myconf="--disable-tcp-wrapper --disable-command-args"
+   else
+   myconf="$(use_enable tcpd tcp-wrapper) $(use_enable 
command-args)"
+   fi
+
+   econf \
+   --libexecdir=/usr/$(get_libdir)/nagios/plugins \
+   --localstatedir=/var/nagios \
+