1 |
commit: aa79e280a3402420221b42c15f1c9843f0d3453e |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 27 22:25:10 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 27 22:46:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa79e280 |
7 |
|
8 |
net-analyzer/nagios-plugins-linux-madrisan: new package, version 25 |
9 |
|
10 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
.../nagios-plugins-linux-madrisan/Manifest | 1 + |
14 |
.../nagios-plugins-linux-madrisan/metadata.xml | 15 ++++++++ |
15 |
.../nagios-plugins-linux-madrisan-25.ebuild | 44 ++++++++++++++++++++++ |
16 |
3 files changed, 60 insertions(+) |
17 |
|
18 |
diff --git a/net-analyzer/nagios-plugins-linux-madrisan/Manifest b/net-analyzer/nagios-plugins-linux-madrisan/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..02102b1d690 |
21 |
--- /dev/null |
22 |
+++ b/net-analyzer/nagios-plugins-linux-madrisan/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST nagios-plugins-linux-madrisan-25.tar.xz 371712 BLAKE2B 60637426d9ced289a1acdf61c3e7c5a2b3227afb20079ef93d445057b2127d12a6c76ab5a780571ac8bdd6ac3b55de2761722236d2ed7a057ab84559d97610e9 SHA512 64961a16e24802d66c48d0c33bd63d75aba8492f38dd83a57ee2e7cb728cf6876c7869622256c4249a9e9da39b744a332df6ecad80f6039861887bb5c8d806ec |
25 |
|
26 |
diff --git a/net-analyzer/nagios-plugins-linux-madrisan/metadata.xml b/net-analyzer/nagios-plugins-linux-madrisan/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..2485783589c |
29 |
--- /dev/null |
30 |
+++ b/net-analyzer/nagios-plugins-linux-madrisan/metadata.xml |
31 |
@@ -0,0 +1,15 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>sbraz@g.o</email> |
37 |
+ <name>Louis Sautier</name> |
38 |
+ </maintainer> |
39 |
+ <use> |
40 |
+ <flag name="curl">Build check_docker which requires <pkg>net-misc/curl</pkg></flag> |
41 |
+ </use> |
42 |
+ <upstream> |
43 |
+ <remote-id type="github">madrisan/nagios-plugins-linux</remote-id> |
44 |
+ <bugs-to>https://github.com/madrisan/nagios-plugins-linux/issues</bugs-to> |
45 |
+ </upstream> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-25.ebuild b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-25.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..ce3bc9bb46c |
51 |
--- /dev/null |
52 |
+++ b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-25.ebuild |
53 |
@@ -0,0 +1,44 @@ |
54 |
+# Copyright 2019 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+inherit autotools |
60 |
+ |
61 |
+MY_PN="nagios-plugins-linux" |
62 |
+MY_P="${MY_PN}-${PV}" |
63 |
+ |
64 |
+DESCRIPTION="Additional and alternative Nagios plugins for Linux" |
65 |
+HOMEPAGE="https://github.com/madrisan/nagios-plugins-linux" |
66 |
+SRC_URI="https://github.com/madrisan/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.xz -> ${P}.tar.xz" |
67 |
+ |
68 |
+LICENSE="GPL-3+" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+IUSE="curl" |
72 |
+ |
73 |
+DEPEND="curl? ( net-misc/curl:0= )" |
74 |
+RDEPEND="${DEPEND}" |
75 |
+ |
76 |
+S="${WORKDIR}/${MY_P}" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ # Avoid collision with net-analyzer/monitoring-plugins |
81 |
+ sed -ri "s/check_(load|swap|users)/&_madrisan/" plugins/Makefile.am || die |
82 |
+ eautoreconf |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ local myconf=( |
87 |
+ --libexecdir="${EPREFIX}/usr/$(get_libdir)/nagios/plugins" |
88 |
+ # Most options are already defaults for Gentoo |
89 |
+ --disable-hardening |
90 |
+ $(use_enable curl libcurl) |
91 |
+ ) |
92 |
+ econf "${myconf[@]}" |
93 |
+} |
94 |
+ |
95 |
+src_test() { |
96 |
+ emake check VERBOSE=1 |
97 |
+} |