]> Pileus Git - ~andy/sunrise/commitdiff
net-analyzer/nagios-check_multi: New Ebuild for bug 356193
authorcaguiar <caguiar@madeiratecnopolo.pt>
Mon, 28 Feb 2011 18:57:37 +0000 (18:57 +0000)
committercaguiar <caguiar@madeiratecnopolo.pt>
Mon, 28 Feb 2011 18:57:37 +0000 (18:57 +0000)
svn path=/sunrise/; revision=11798

net-analyzer/nagios-check_multi/ChangeLog [new file with mode: 0644]
net-analyzer/nagios-check_multi/Manifest [new file with mode: 0644]
net-analyzer/nagios-check_multi/metadata.xml [new file with mode: 0644]
net-analyzer/nagios-check_multi/nagios-check_multi-0.24.ebuild [new file with mode: 0644]

diff --git a/net-analyzer/nagios-check_multi/ChangeLog b/net-analyzer/nagios-check_multi/ChangeLog
new file mode 100644 (file)
index 0000000..5d69a5f
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for net-analyzer/nagios-check_multi
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  25 Feb 2011; Your Name (caguiar) <caguiar@madeiratecnopolo.pt
+  +nagios-check_multi-0.24.ebuild, +metadata.xml:
+  New Ebuild for bug 356193
+
diff --git a/net-analyzer/nagios-check_multi/Manifest b/net-analyzer/nagios-check_multi/Manifest
new file mode 100644 (file)
index 0000000..bdbd4c3
--- /dev/null
@@ -0,0 +1,4 @@
+DIST check_multi-stable-0.24.tar.gz 119390 RMD160 98ed72db69f1759748749d061e256fe3129d4ffb SHA1 d648a902ca487ffb36fff7fefa432ce58404b396 SHA256 272d01c8cee8c6b6d47f7cd014c691734685878d1a05adf9b79e8ee223a2c278
+EBUILD nagios-check_multi-0.24.ebuild 1497 RMD160 2c9522e7b3b43f7ca736a26e6c6813b9906b13bc SHA1 62616195f5b906e4f9e6f342f4960cb5c8d03574 SHA256 4d2420a0aee6f54c4da33d36fdd8beae50ee77f2b2d63f2b26fbd0107f780f94
+MISC ChangeLog 275 RMD160 aee3651ed7472048a2dfd68847dbbf981fabd9da SHA1 162c064256fd10ae900407fadd30fde0a8bf1c35 SHA256 e72bdd0175081fd68a4b1da1a92864cbd3366fd2cae3532c03f966affb59041d
+MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f
diff --git a/net-analyzer/nagios-check_multi/metadata.xml b/net-analyzer/nagios-check_multi/metadata.xml
new file mode 100644 (file)
index 0000000..e6233b5
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/nagios-check_multi/nagios-check_multi-0.24.ebuild b/net-analyzer/nagios-check_multi/nagios-check_multi-0.24.ebuild
new file mode 100644 (file)
index 0000000..76b10da
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="A multi-purpose wrapper plugin for Nagios"
+HOMEPAGE="http://my-plugin.de/wiki/projects/check_multi/start"
+SRC_URI="http://my-plugin.de/check_multi/check_multi-stable-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+       net-analyzer/nagios-plugins"
+
+S=${WORKDIR}/check_multi-${PV}
+
+src_compile() {
+       econf \
+               --libexecdir=/usr/$(get_libdir)/nagios/plugins \
+               --sysconfdir=/etc/nagios \
+               --with-nagios-group=nagios
+
+       emake all || die "emake failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install install-config || die "emake install failed"
+
+       # set file permissions similar to nagios / nagios-plugins
+       fperms 0750 /usr/$(get_libdir)/nagios/plugins/check_multi \
+               || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins/check_multi"
+
+       # the files in this directory have been incorrectly set executable permissions
+       # by the author. Author said that will be corrected in next version.
+       find "${D}"/etc/nagios/check_multi -type f -exec chmod 0640 {} \;
+
+       dodoc README Changelog  || die "dodoc failed"
+}
+
+pkg_postinst() {
+       elog "Check ${ROOT}/etc/nagios/check_multi for config examples."
+       elog "In case ${PN} is to be used with net-analyzer/nagios-nrpe"
+       elog "make sure that it is version 2.12-r103 or greater on both"
+       elog "the client and the server sides (see bug #264467)."
+}