diff options
Diffstat (limited to 'net-analyzer/nagios-plugins-flameeyes')
3 files changed, 72 insertions, 0 deletions
diff --git a/net-analyzer/nagios-plugins-flameeyes/Manifest b/net-analyzer/nagios-plugins-flameeyes/Manifest new file mode 100644 index 000000000000..8f92bbfeaf24 --- /dev/null +++ b/net-analyzer/nagios-plugins-flameeyes/Manifest @@ -0,0 +1,4 @@ +EBUILD nagios-plugins-flameeyes-9999.ebuild 1106 SHA256 efa1f04648c7c3a327983a3ade209966806611057a12658badd634847965cbbe SHA512 b26844e3264f0a4f77994419d151c978574c1cd5e765bc3bde2b19e202a0d4d68aa56b92911c12d4ccc1a5a4768a2742fb60f951aa0f2744b262c29eb6e40a35 WHIRLPOOL cae8d088d957f13032b785494f52f9c35848d03dd2585d5fcf0b5a87dbd6ddb7639faf26bd5128fcc43bc0332fdd30fe47107fa333fa4c3c0172463c5782bac7 +MISC ChangeLog 2600 SHA256 6f390b960afe4b0c938a32b304f0c921da2edd2aebecedda4e6b3cf0d93bc352 SHA512 96435c02c6759597dd6361a242e279bd2e5705726a5158877d777b7e06b175b307c789f52e25862ecc15dedfaadeb7c75f32b9b674bb91e7cbbdf452d7ec3965 WHIRLPOOL 9ac2167fccf810edbe2921bb88dfb9f9914ffcc2a908dc33a26769b879560d5ad44d62d67dd92412c03d12fce6a1558df11e015a25a70f7115c896dafc31b635 +MISC ChangeLog-2015 1032 SHA256 003871ce9515b51cbcb2f5aace62e550842219ef4cbb92974eba2d64b69a3666 SHA512 b4a00542af13aff7a856da1576dda193bb5f441a2c1f08b468eb40b2a505caf3fda637c76575ceabe478dbb7b2acf2355d56f84f73ef6ab9194c176d2fef1d2e WHIRLPOOL a9373ba9f2b8e17e52dce0a9cf9126979802bc23d4b031f405b8520e2a4d90da2d759e944be348595296f656d2362bddbe003d9f6e653ba445e6630aec0c758d +MISC metadata.xml 626 SHA256 fabbbce39e10cf0676e036d2116a10ab90fa2245029bf50abcac3ff112e24248 SHA512 f89139edf88000f6767eeb1424ead0fc9a87e9ededbdb4277e73db92a766804182540aa82a0de37b7b708d0f5094fc816be9be2485a8f1af9190cc690cd57176 WHIRLPOOL 865d2867bc834d8b767cb55795a2628f3ac1d870808ed8deadc503161b061cffcf42ae8c47ad801ec80f7659a9711f282e25e8ccf03c375e0511591af34b87ec diff --git a/net-analyzer/nagios-plugins-flameeyes/metadata.xml b/net-analyzer/nagios-plugins-flameeyes/metadata.xml new file mode 100644 index 000000000000..7bf85b98253c --- /dev/null +++ b/net-analyzer/nagios-plugins-flameeyes/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sysadmin@gentoo.org</email> + <name>Gentoo Sysadmin Project</name> + </maintainer> + <use> + <flag name="smart"> + Install <pkg>sys-apps/smartmontools</pkg> required for + S.M.A.R.T. disk monitoring. Disabling the flag removes the + plugin file. This plugin also requires the sudo flag to be + enable. + </flag> + </use> + <upstream> + <remote-id type="github">Flameeyes/nagios-plugins-flameeyes</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild b/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild new file mode 100644 index 000000000000..dd0b836e946c --- /dev/null +++ b/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit git-2 multilib + +EGIT_REPO_URI="https://github.com/Flameeyes/${PN}.git" +SRC_URI="" +KEYWORDS="" + +DESCRIPTION="Flameeyes's custom Nagios/Icinga plugins" +HOMEPAGE="https://github.com/Flameeyes/nagios-plugins-flameeyes" + +LICENSE="MIT" +SLOT="0" +IUSE="smart samba" + +RDEPEND=" + dev-perl/Monitoring-Plugin + sys-apps/portage + dev-perl/Time-Duration + dev-perl/TimeDate + smart? ( + sys-apps/smartmontools + app-admin/sudo + ) + samba? ( dev-perl/Filesys-SmbClient )" +DEPEND="" + +src_compile() { + cat - > "${T}"/50${PN} <<EOF +Cmnd_Alias NAGIOS_PLUGINS_FLAMEEYES_CMDS = /usr/sbin/smartctl +User_Alias NAGIOS_PLUGINS_FLAMEEYES_USERS = nagios, icinga + +NAGIOS_PLUGINS_FLAMEEYES_USERS ALL=(root) NOPASSWD: NAGIOS_PLUGINS_FLAMEEYES_CMDS +EOF +} + +src_install() { + insinto /etc/sudoers.d + doins "${T}"/50${PN} + + dodir /usr/$(get_libdir)/nagios/plugins/flameeyes + cp -Rp $(find . -type d -mindepth 1 -maxdepth 1 -not -name .git) \ + "${D}/usr/$(get_libdir)/nagios/plugins/flameeyes" || die + + dodoc README.md +} |