public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/
Date: Sat, 31 Aug 2019 21:35:37 +0000 (UTC)	[thread overview]
Message-ID: <1567287295.41fd5199166502416d53932adb6a25f442499779.mjo@gentoo> (raw)

commit:     41fd5199166502416d53932adb6a25f442499779
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 31 20:44:54 2019 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Aug 31 21:34:55 2019 +0000
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 <mjo <AT> 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 00000000000..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
+}


             reply	other threads:[~2019-08-31 21:35 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-31 21:35 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-06-23  7:50 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nrpe/ Arthur Zamarin
2023-06-23  7:50 Arthur Zamarin
2023-06-23  6:10 Arthur Zamarin
2023-06-23  4:50 Arthur Zamarin
2022-11-01 22:54 Sam James
2022-08-19  3:38 Sam James
2021-07-30 15:17 Agostino Sarubbo
2021-07-30 15:14 Agostino Sarubbo
2021-07-29  7:08 Agostino Sarubbo
2021-07-29  6:45 Agostino Sarubbo
2021-07-29  6:40 Agostino Sarubbo
2021-04-29 18:28 Mikle Kolyada
2020-03-25 12:34 Michael Orlitzky
2020-03-20  9:16 Sergei Trofimovich
2020-03-18 22:24 Thomas Deutschmann
2020-03-18 11:13 Agostino Sarubbo
2020-03-18 11:11 Agostino Sarubbo
2020-03-18 11:04 Agostino Sarubbo
2020-03-18  9:51 Agostino Sarubbo
2020-03-17 16:01 Agostino Sarubbo
2020-02-14 13:48 Michael Orlitzky
2020-01-17 17:02 Michael Orlitzky
2019-05-02 21:21 Mikle Kolyada
2019-04-28 22:06 Thomas Deutschmann
2019-04-08 13:53 Mikle Kolyada
2019-04-07 20:52 Sergei Trofimovich
2019-04-02 19:20 Sergei Trofimovich
2018-04-23 21:22 Aaron Bauman
2017-09-29 11:55 Michael Orlitzky
2017-08-24 15:16 Michael Orlitzky
2017-07-16 12:49 Michael Orlitzky
2017-05-15  8:13 Tobias Klausmann
2017-05-01 13:52 Michael Orlitzky
2017-04-30  9:37 Agostino Sarubbo
2017-04-29 15:02 Agostino Sarubbo
2017-04-27 11:23 Agostino Sarubbo
2017-04-25  7:21 Jeroen Roovers
2017-04-24 12:44 Tobias Klausmann
2017-04-23 12:40 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1567287295.41fd5199166502416d53932adb6a25f442499779.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox