Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-plugins-linux-madrisan/
Date: Tue, 05 May 2020 18:12:27
Message-Id: 1588702337.ec073bc4955be3bfa0ac8bddbacc97cadc13cb91.sbraz@gentoo
1 commit: ec073bc4955be3bfa0ac8bddbacc97cadc13cb91
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 5 18:08:03 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue May 5 18:12:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec073bc4
7
8 net-analyzer/nagios-plugins-linux-madrisan: bump to 26
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 .../nagios-plugins-linux-madrisan/Manifest | 1 +
14 .../nagios-plugins-linux-madrisan-26.ebuild | 45 ++++++++++++++++++++++
15 2 files changed, 46 insertions(+)
16
17 diff --git a/net-analyzer/nagios-plugins-linux-madrisan/Manifest b/net-analyzer/nagios-plugins-linux-madrisan/Manifest
18 index 02102b1d690..439a712c118 100644
19 --- a/net-analyzer/nagios-plugins-linux-madrisan/Manifest
20 +++ b/net-analyzer/nagios-plugins-linux-madrisan/Manifest
21 @@ -1 +1,2 @@
22 DIST nagios-plugins-linux-madrisan-25.tar.xz 371712 BLAKE2B 60637426d9ced289a1acdf61c3e7c5a2b3227afb20079ef93d445057b2127d12a6c76ab5a780571ac8bdd6ac3b55de2761722236d2ed7a057ab84559d97610e9 SHA512 64961a16e24802d66c48d0c33bd63d75aba8492f38dd83a57ee2e7cb728cf6876c7869622256c4249a9e9da39b744a332df6ecad80f6039861887bb5c8d806ec
23 +DIST nagios-plugins-linux-madrisan-26.tar.xz 379480 BLAKE2B e30fa00c029506ffd76e9c16f409f62f00ab481894d6b35dd34470dab5f2a18b2fc18bd06ae5e6a7179ed23f36c785c9a403258b9066e5a08f6a139ab0192088 SHA512 61c523ddf7a98ae01caf543a7e38903478346ce380884a7cd2a2e592db806e73fb996675aa701e2bbf57b31ed062886daba4af70cc2875e1c296537de01c588d
24
25 diff --git a/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-26.ebuild b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-26.ebuild
26 new file mode 100644
27 index 00000000000..0e91fa5a72c
28 --- /dev/null
29 +++ b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-26.ebuild
30 @@ -0,0 +1,45 @@
31 +# Copyright 2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools
37 +
38 +MY_PN="nagios-plugins-linux"
39 +MY_P="${MY_PN}-${PV}"
40 +
41 +DESCRIPTION="Additional and alternative Nagios plugins for Linux"
42 +HOMEPAGE="https://github.com/madrisan/nagios-plugins-linux"
43 +SRC_URI="https://github.com/madrisan/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.xz -> ${P}.tar.xz"
44 +
45 +LICENSE="GPL-3+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="curl"
49 +
50 +DEPEND="curl? ( net-misc/curl:0= )"
51 +RDEPEND="${DEPEND}"
52 +
53 +S="${WORKDIR}/${MY_P}"
54 +
55 +src_prepare() {
56 + default
57 + # Avoid collision with net-analyzer/monitoring-plugins
58 + # and net-analyzer/nagios-plugins
59 + sed -ri "s/check_(load|swap|uptime|users)/&_madrisan/" plugins/Makefile.am || die
60 + eautoreconf
61 +}
62 +
63 +src_configure() {
64 + local myconf=(
65 + --libexecdir="${EPREFIX}/usr/$(get_libdir)/nagios/plugins"
66 + # Most options are already defaults for Gentoo
67 + --disable-hardening
68 + $(use_enable curl libcurl)
69 + )
70 + econf "${myconf[@]}"
71 +}
72 +
73 +src_test() {
74 + emake check VERBOSE=1
75 +}