summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-11-23 16:39:18 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-11-23 16:39:18 +0000
commit4dfbb8369c639bc116ff1a8c2859cf264c6130ec (patch)
tree02e75c452a65fc6f58305983396248a2f71d9cff /net-analyzer/nagios-plugins-flameeyes
parentSImplified dependencies (diff)
downloadhistorical-4dfbb8369c639bc116ff1a8c2859cf264c6130ec.tar.gz
historical-4dfbb8369c639bc116ff1a8c2859cf264c6130ec.tar.bz2
historical-4dfbb8369c639bc116ff1a8c2859cf264c6130ec.zip
Initial import of a live ebuild for my own set of nagios plugins. This makes it much easier to deal with their dependencies, and two out of three at the time of adding are Gentoo-specific. An actual release will follow when I'll be done writing a few more.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x1CD13C8AD4301342
Diffstat (limited to 'net-analyzer/nagios-plugins-flameeyes')
-rw-r--r--net-analyzer/nagios-plugins-flameeyes/ChangeLog12
-rw-r--r--net-analyzer/nagios-plugins-flameeyes/Manifest17
-rw-r--r--net-analyzer/nagios-plugins-flameeyes/metadata.xml17
-rw-r--r--net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild49
4 files changed, 95 insertions, 0 deletions
diff --git a/net-analyzer/nagios-plugins-flameeyes/ChangeLog b/net-analyzer/nagios-plugins-flameeyes/ChangeLog
new file mode 100644
index 000000000000..626fdd2edd7a
--- /dev/null
+++ b/net-analyzer/nagios-plugins-flameeyes/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-analyzer/nagios-plugins-flameeyes
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/ChangeLog,v 1.1 2012/11/23 16:39:04 flameeyes Exp $
+
+*nagios-plugins-flameeyes-9999 (23 Nov 2012)
+
+ 23 Nov 2012; Diego E. Pettenò <flameeyes@gentoo.org> +metadata.xml,
+ +nagios-plugins-flameeyes-9999.ebuild:
+ Initial import of a live ebuild for my own set of nagios plugins. This makes
+ it much easier to deal with their dependencies, and two out of three at the
+ time of adding are Gentoo-specific. An actual release will follow when I'll be
+ done writing a few more.
diff --git a/net-analyzer/nagios-plugins-flameeyes/Manifest b/net-analyzer/nagios-plugins-flameeyes/Manifest
new file mode 100644
index 000000000000..9d25390936a4
--- /dev/null
+++ b/net-analyzer/nagios-plugins-flameeyes/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+EBUILD nagios-plugins-flameeyes-9999.ebuild 1205 SHA256 bfc3173658dc772d96fc1e65a7da33202d7b7573d61541adfb0e9e42d4072cf1 SHA512 46ab9a9a11085ac9725d94f9e99dedebf659df62f4e1470a26528064e111c52924fbad77322e385d29e80665aabd4e3785606351c29272ae67cecf0f580f7ba0 WHIRLPOOL 21da0e415e9505f9392d062c6f5e831d3ec86da439b59583b82f86be96d8a2d6fd7fae56d054a1b7ad20ada26bf81517a50812d67d7e056af4ebc862cf830c22
+MISC ChangeLog 673 SHA256 339a23f7a87d3f44a248e78ae992857da28f7d87e01e94a4dd1cc3193c1bfd5c SHA512 538574027bc56d99241e230ff23c209f7f4ede6955064beb64ad031d4be9b18c63c92c6dde97756cba4aaa80d0315733b1c7205e1d50e26d12fb759cacb9cbec WHIRLPOOL 3e4755be5ef0cad165ea7c39f31e4c4ebb63e874e5eea790c9a21bd7d3178a969b58116434371c0cf87717372b93b05c14492599c84b06084288d3103b0a7e0a
+MISC metadata.xml 493 SHA256 636cc954dee1057284ba7295b081513d3676237d1cc94b86636e0ccec15d559f SHA512 0ae154774caaa62f5b585a8939a51a5b2beddabdee82a509cd0fcab247cbe6853bd7300d3e9cb2522782b78c10b8a837c6cd9d8108a7ed11f75a9fd3aa34df54 WHIRLPOOL 6c659ee4591146acacdc8b403183602ebcc265f964411f53861839a16deab5f98df3427987b80f6d63895664282f24ce587da2574aa38301c7271c0bf640f333
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJQr6a2AAoJEBzRPIrUMBNCj30H/iZ5KlLzZd4CXVgzvGq/fefn
+ZiwzvueGCG9uHXuXAsKLRd6RGGqjiuMFVhccVpmJFDjgYex6HUiSzsxqatjrk6jd
+wT3WRKwIUn5832XOslZnleb+57qYE9XJP/1jC3rk88V9Es0XTZk/6q4/TyXaWthV
+/qQHdaYbeXrieuuUZc1N1+Ai5c5IGD3d9nCTxn88Nkb2+v7aS3VJ2XV6fhUbVSWb
++gurn6gA89yhaNzFiPNJTJet3cQ7sht2xo7GJRb59iWIXnd1Mpl9aHoLXqSm68fG
+x6dFZ2Pbx1E0EbKW7VGvzo7NCxEJ2Lrwchfn9ccMpjcIu7ERiCWoF5sychyDuGo=
+=3zhM
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/nagios-plugins-flameeyes/metadata.xml b/net-analyzer/nagios-plugins-flameeyes/metadata.xml
new file mode 100644
index 000000000000..ab131fd14a16
--- /dev/null
+++ b/net-analyzer/nagios-plugins-flameeyes/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sysadmin</herd>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ </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>
+</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..142a8197dca1
--- /dev/null
+++ b/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins-flameeyes/nagios-plugins-flameeyes-9999.ebuild,v 1.1 2012/11/23 16:39:04 flameeyes Exp $
+
+EAPI=5
+
+inherit git multilib
+
+EGIT_REPO_URI="git://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"
+
+RDEPEND="
+ dev-perl/Nagios-Plugin
+ sys-apps/portage
+ dev-perl/Time-Duration
+ dev-perl/TimeDate
+ smart? (
+ sys-apps/smartmontools
+ app-admin/sudo
+ )"
+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
+}