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: Sun, 30 Jan 2022 13:29:24
Message-Id: 1643549238.aa477d019849b72bc3d8358fc6a039c00186a4b5.sbraz@gentoo
1 commit: aa477d019849b72bc3d8358fc6a039c00186a4b5
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 30 13:26:25 2022 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 13:27:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa477d01
7
8 net-analyzer/nagios-plugins-linux-madrisan: add 30
9
10 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
11
12 .../nagios-plugins-linux-madrisan/Manifest | 1 +
13 .../nagios-plugins-linux-madrisan-30.ebuild | 48 ++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/net-analyzer/nagios-plugins-linux-madrisan/Manifest b/net-analyzer/nagios-plugins-linux-madrisan/Manifest
17 index b1d8f6d2e28f..43c97183659f 100644
18 --- a/net-analyzer/nagios-plugins-linux-madrisan/Manifest
19 +++ b/net-analyzer/nagios-plugins-linux-madrisan/Manifest
20 @@ -1,2 +1,3 @@
21 DIST nagios-plugins-linux-madrisan-28.tar.xz 390428 BLAKE2B bc41fb7d3b639fe2d133c2ff6643562ce94e5523b13aa18045d7265ae8d9d80873b0611aaee0f0fa8b959e0da3e2c350868574a8986c0d9436b6bd4e4154d908 SHA512 c72065ade12ec60c86479276370215bc0dc419ae9681d7260c550f8985300c39c1c8e39537c51c56e0c1ae61283befc5d111ffd47394de7dc7f7daa5993254fc
22 DIST nagios-plugins-linux-madrisan-29.tar.xz 392700 BLAKE2B edc93bfb113cb12ce8a345e38627881decb952cb1e7a948dcdced2aaa9c940956b75a7c8f7ad1b72daac132236ab27762b6f8b14a5098eaac648bafae6dfdb33 SHA512 412464b894fe2a0953e495c7c87604ed6b282f65fd1988043757b162ba4fecf9e8f9740e7e09ec2dad8ba8d80fa928df4d7e644260538117d19776f4883045f6
23 +DIST nagios-plugins-linux-madrisan-30.tar.xz 391164 BLAKE2B 3b16d0e61a68153fa90bed4c3540d9457546d2448b3b0da2b9313cd99e9b65f44c6f8d52322500570510171a049759ab85855f262d0581c6f926a96fbfe268dd SHA512 c02f81b6bbd4a0453780d9301a5cd1be67b9640e1b75d06c626a433b6e544fb4649c9b14e8e9a2c84dc6917aaf2011fb9a864ef36fef661bbcd673fa00bc5d57
24
25 diff --git a/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-30.ebuild b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-30.ebuild
26 new file mode 100644
27 index 000000000000..6e71445b286d
28 --- /dev/null
29 +++ b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-30.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
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 +S="${WORKDIR}/${MY_P}"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="curl varlink"
50 +
51 +DEPEND="
52 + curl? ( net-misc/curl:0= )
53 + varlink? ( dev-libs/libvarlink:= )
54 +"
55 +RDEPEND="${DEPEND}"
56 +
57 +src_prepare() {
58 + default
59 + # Avoid collision with net-analyzer/monitoring-plugins
60 + # and net-analyzer/nagios-plugins
61 + sed -ri "s/check_(load|swap|uptime|users)/&_madrisan/" plugins/Makefile.am || die
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + local myconf=(
67 + --libexecdir="${EPREFIX}/usr/$(get_libdir)/nagios/plugins"
68 + # Most options are already defaults for Gentoo
69 + --disable-hardening
70 + $(use_enable curl libcurl)
71 + $(use_enable varlink libvarlink)
72 + )
73 + econf "${myconf[@]}"
74 +}
75 +
76 +src_test() {
77 + emake check VERBOSE=1
78 +}