diff options
author | Louis Sautier <sbraz@gentoo.org> | 2019-08-28 00:25:10 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2019-08-28 00:46:51 +0200 |
commit | aa79e280a3402420221b42c15f1c9843f0d3453e (patch) | |
tree | 7c13a76ed30d48edd7aa5dcdbdd94a10e8f8295a /net-analyzer/nagios-plugins-linux-madrisan | |
parent | app-admin/salt: Revbump, update to work with newer deps (diff) | |
download | gentoo-aa79e280a3402420221b42c15f1c9843f0d3453e.tar.gz gentoo-aa79e280a3402420221b42c15f1c9843f0d3453e.tar.bz2 gentoo-aa79e280a3402420221b42c15f1c9843f0d3453e.zip |
net-analyzer/nagios-plugins-linux-madrisan: new package, version 25
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'net-analyzer/nagios-plugins-linux-madrisan')
3 files changed, 60 insertions, 0 deletions
diff --git a/net-analyzer/nagios-plugins-linux-madrisan/Manifest b/net-analyzer/nagios-plugins-linux-madrisan/Manifest new file mode 100644 index 000000000000..02102b1d690a --- /dev/null +++ b/net-analyzer/nagios-plugins-linux-madrisan/Manifest @@ -0,0 +1 @@ +DIST nagios-plugins-linux-madrisan-25.tar.xz 371712 BLAKE2B 60637426d9ced289a1acdf61c3e7c5a2b3227afb20079ef93d445057b2127d12a6c76ab5a780571ac8bdd6ac3b55de2761722236d2ed7a057ab84559d97610e9 SHA512 64961a16e24802d66c48d0c33bd63d75aba8492f38dd83a57ee2e7cb728cf6876c7869622256c4249a9e9da39b744a332df6ecad80f6039861887bb5c8d806ec diff --git a/net-analyzer/nagios-plugins-linux-madrisan/metadata.xml b/net-analyzer/nagios-plugins-linux-madrisan/metadata.xml new file mode 100644 index 000000000000..2485783589cb --- /dev/null +++ b/net-analyzer/nagios-plugins-linux-madrisan/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sbraz@gentoo.org</email> + <name>Louis Sautier</name> + </maintainer> + <use> + <flag name="curl">Build check_docker which requires <pkg>net-misc/curl</pkg></flag> + </use> + <upstream> + <remote-id type="github">madrisan/nagios-plugins-linux</remote-id> + <bugs-to>https://github.com/madrisan/nagios-plugins-linux/issues</bugs-to> + </upstream> +</pkgmetadata> 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 new file mode 100644 index 000000000000..ce3bc9bb46cd --- /dev/null +++ b/net-analyzer/nagios-plugins-linux-madrisan/nagios-plugins-linux-madrisan-25.ebuild @@ -0,0 +1,44 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +MY_PN="nagios-plugins-linux" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Additional and alternative Nagios plugins for Linux" +HOMEPAGE="https://github.com/madrisan/nagios-plugins-linux" +SRC_URI="https://github.com/madrisan/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.xz -> ${P}.tar.xz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="curl" + +DEPEND="curl? ( net-misc/curl:0= )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + # Avoid collision with net-analyzer/monitoring-plugins + sed -ri "s/check_(load|swap|users)/&_madrisan/" plugins/Makefile.am || die + eautoreconf +} + +src_configure() { + local myconf=( + --libexecdir="${EPREFIX}/usr/$(get_libdir)/nagios/plugins" + # Most options are already defaults for Gentoo + --disable-hardening + $(use_enable curl libcurl) + ) + econf "${myconf[@]}" +} + +src_test() { + emake check VERBOSE=1 +} |