summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2009-12-23 12:41:20 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2009-12-23 12:41:20 +0000
commit26165e9265914da4941571852f9a27f8175c27cb (patch)
tree31fe7ae1c590e16cca2ae899da2b303168b7131a /net-analyzer
parentBlock media-gfx/qiv (diff)
downloadhistorical-26165e9265914da4941571852f9a27f8175c27cb.tar.gz
historical-26165e9265914da4941571852f9a27f8175c27cb.tar.bz2
historical-26165e9265914da4941571852f9a27f8175c27cb.zip
Add jabber use-flag, drop ~hppa keyword due to unsatisfied deps. (#295361)
Package-Manager: portage-2.2_rc58/cvs/Linux i686
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/nagios-plugins/ChangeLog14
-rw-r--r--net-analyzer/nagios-plugins/Manifest3
-rw-r--r--net-analyzer/nagios-plugins/nagios-plugins-1.4.14-r1.ebuild144
3 files changed, 156 insertions, 5 deletions
diff --git a/net-analyzer/nagios-plugins/ChangeLog b/net-analyzer/nagios-plugins/ChangeLog
index 631906194b1d..54882f532e29 100644
--- a/net-analyzer/nagios-plugins/ChangeLog
+++ b/net-analyzer/nagios-plugins/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/nagios-plugins
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.117 2009/09/28 10:31:50 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.118 2009/12/23 12:41:20 dertobi123 Exp $
+
+*nagios-plugins-1.4.14-r1 (23 Dec 2009)
+
+ 23 Dec 2009; Tobias Scherbaum <dertobi123@gentoo.org>
+ +nagios-plugins-1.4.14-r1.ebuild:
+ Add jabber use-flag, drop ~hppa keyword due to unsatisfied deps. (#295361)
28 Sep 2009; Tobias Scherbaum <dertobi123@gentoo.org>
-files/nagios-plugins-1.4.13-mysqlpass-917fcc7.patch,
@@ -75,7 +81,7 @@
nagios-plugins-1.4.13.ebuild:
x86 stable, bug #252669
- 02 Jan 2009; Dawid Węgliński <cla@gentoo.org>
+ 02 Jan 2009; Dawid Węgliński <cla@gentoo.org>
nagios-plugins-1.4.12-r101.ebuild, nagios-plugins-1.4.13.ebuild:
Stable on amd64 (bug #252669)
@@ -135,7 +141,7 @@
+nagios-plugins-1.4.12-r100.ebuild:
Version bump
- 21 May 2008; Tiziano Müller <dev-zero@gentoo.org>
+ 21 May 2008; Tiziano Müller <dev-zero@gentoo.org>
nagios-plugins-1.4.11-r102.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server
@@ -146,7 +152,7 @@
USE=postgres should set --with-pgsql, reported by Krzysztof Tomczyk
(#222317)
- 19 May 2008; Tiziano Müller <dev-zero@gentoo.org>
+ 19 May 2008; Tiziano Müller <dev-zero@gentoo.org>
nagios-plugins-1.4.11.ebuild, nagios-plugins-1.4.11-r1.ebuild:
Changed dependency for postgresql to virtual/postgresql-base
diff --git a/net-analyzer/nagios-plugins/Manifest b/net-analyzer/nagios-plugins/Manifest
index 23a649523192..bc81eb569188 100644
--- a/net-analyzer/nagios-plugins/Manifest
+++ b/net-analyzer/nagios-plugins/Manifest
@@ -4,6 +4,7 @@ AUX nagios-plugins-1.4.12-pgsqlconfigure.patch 2981 RMD160 6090168654e888ce9b5bb
DIST nagios-plugins-1.4.13.tar.gz 2279556 RMD160 38de32581581b21e36e047138a94a70a9a031a02 SHA1 fb22eba22095bdd709a65b1477bfb566aac9077e SHA256 592fe3329777e53f8fb526cb61e625a85ae9a1fd850b4039f78a2c460b1607c5
DIST nagios-plugins-1.4.14.tar.gz 1950729 RMD160 f4e1768d84474fc4fa2b59a52efe320c7cbefb3a SHA1 b9998231f992c92b9370b62f15ac80323042f22c SHA256 b1f0f2c01bab2a320cc7c041106500acfd6a5262ff811a2c31b62608ac6c3352
EBUILD nagios-plugins-1.4.13-r1.ebuild 4095 RMD160 e6631308d30928cab3c8217e2eb19cf1afd924ff SHA1 e0141cabfd0eeaa34118954aa59493d07ba127f1 SHA256 953f7ae9cfb3c4fb64459625573eea0c4f9a88611c6e0da90a0e954411587dda
+EBUILD nagios-plugins-1.4.14-r1.ebuild 4415 RMD160 6206bb7d315d76fbbd26992911c54c21ece511db SHA1 abe6bbd6218f7c747821b04b44e453a79649b5a8 SHA256 25d72f09a0bc22e72dfbb6f9a496931038097ddf2439c6071050995954a909a3
EBUILD nagios-plugins-1.4.14.ebuild 4220 RMD160 ac568a50fae05b43828fbd3601240c56cb87e320 SHA1 0b6e16c9d1b38d3509b4cae475314b1ee880ddce SHA256 45372b79f6bf8a33d563ca96faf5c0722945876e86e0b9b4cdfa56b832f663c8
-MISC ChangeLog 5947 RMD160 bec9d9dc14f78c7a31587119a296be475730f9b0 SHA1 b43988ebe1363ae5021b2611dcbab5e30b4eda7e SHA256 d46c420c1a681af6fb3ef25875b487f0d92ad9212b6602d063417ae734bfed1a
+MISC ChangeLog 6166 RMD160 73b5ab89448aaa12400c08e941a08f70af0b8237 SHA1 2918331f6d27f27cacbc1c41add13b839f2b9207 SHA256 e2df04a6f5f9aaf4b42e99cc1d5a43961dc0facba139c78f6326a16ac0764879
MISC metadata.xml 846 RMD160 c586646ae8e50e5530570a9e7dbdc3bfef074d89 SHA1 4a58e0ba3dde6f44a5227c0c232a0f2d2f06ed1d SHA256 ca1e7a175629f4ce6866ca6408744e222216e12c4ce37c6075bf2ded87916ff7
diff --git a/net-analyzer/nagios-plugins/nagios-plugins-1.4.14-r1.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-1.4.14-r1.ebuild
new file mode 100644
index 000000000000..9fcba5fa79f5
--- /dev/null
+++ b/net-analyzer/nagios-plugins/nagios-plugins-1.4.14-r1.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.14-r1.ebuild,v 1.1 2009/12/23 12:41:20 dertobi123 Exp $
+
+EAPI=1
+
+inherit eutils autotools
+
+DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly"
+HOMEPAGE="http://www.nagios.org/"
+SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="+ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping nagios-ssh nagios-game ups ipv6 radius +suid jabber"
+
+DEPEND="ldap? ( >=net-nds/openldap-2.0.25 )
+ mysql? ( virtual/mysql )
+ postgres? ( >=virtual/postgresql-base-7.2 )
+ ssl? ( >=dev-libs/openssl-0.9.6g )
+ radius? ( >=net-dialup/radiusclient-0.3.2 )"
+
+RESTRICT="test"
+
+RDEPEND="${DEPEND}
+ >=dev-lang/perl-5.6.1-r7
+ samba? ( >=net-fs/samba-2.2.5-r1 )
+ snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1
+ >=net-analyzer/net-snmp-5.0.6
+ )
+ mysql? ( dev-perl/DBI
+ dev-perl/DBD-mysql )
+ nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 )
+ nagios-ntp? ( >=net-misc/ntp-4.1.1a )
+ nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 )
+ nagios-ssh? ( >=net-misc/openssh-3.5_p1 )
+ ups? ( >=sys-power/nut-1.4 )
+ !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) )
+ jabber? ( >=dev-perl/Net-Jabber-2.0 )"
+
+pkg_setup() {
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /var/nagios/home nagios
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if ! use radius; then
+ EPATCH_OPTS="-p1 -d ${S}" epatch \
+ "${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch
+ fi
+
+ epatch "${FILESDIR}"/${PN}-1.4.10-contrib.patch
+ epatch "${FILESDIR}"/${PN}-1.4.12-pgsqlconfigure.patch
+
+ eautoreconf
+}
+
+src_compile() {
+
+ local conf
+ if use ssl; then
+ conf="${conf} --with-openssl=/usr"
+ else
+ conf="${conf} --without-openssl"
+ fi
+
+ if use postgres; then
+ conf="${conf} --with-pgsql=/usr"
+ fi
+
+ econf \
+ $(use_with mysql) \
+ $(use_with ipv6) \
+ ${conf} \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --libexecdir=/usr/$(get_libdir)/nagios/plugins \
+ --sysconfdir=/etc/nagios || die "econf failed"
+
+ # fix problem with additional -
+ sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg
+ chmod +x "${S}"/contrib/*.pl
+
+ sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed"
+ sed -i -e s#/usr/nagios/libexec#/usr/$(get_libdir)/nagios/plugins#g "${S}"/contrib/*.pl || die "sed failed"
+ sed -i -e '30s/use lib utils.pm;/use utils;/' \
+ "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
+
+ dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
+ ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
+
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ if use mysql || use postgres; then
+ dodir /usr/$(get_libdir)/nagios/plugins
+ exeinto /usr/$(get_libdir)/nagios/plugins
+ doexe "${S}"/contrib/check_nagios_db.pl
+ fi
+
+ if ! use snmp; then
+ rm "${D}"/usr/$(get_libdir)/nagios/plugins/check_if{operstatus,status} \
+ || die "Failed to remove SNMP check plugins"
+ fi
+
+ mv "${S}"/contrib "${D}"/usr/$(get_libdir)/nagios/plugins/contrib
+
+ if ! use jabber; then
+ rm "${D}"usr/$(get_libdir)/nagios/plugins/contrib/nagios_sendim.pl \
+ || die "Failed to remove XMPP notification addon"
+ fi
+
+ chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins \
+ || die "Failed chown of ${D}usr/$(get_libdir)/nagios/plugins"
+
+ chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins \
+ || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins"
+
+ if use suid ; then
+
+ chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/{check_icmp,check_ide_smart,check_dhcp} \
+ || die "Failed setting the suid bit for various plugins"
+ fi
+
+ dosym /usr/$(get_libdir)/nagios/plugins/utils.sh /usr/$(get_libdir)/nagios/plugins/contrib/utils.sh
+ dosym /usr/$(get_libdir)/nagios/plugins/utils.pm /usr/$(get_libdir)/nagios/plugins/contrib/utils.pm
+}
+
+pkg_postinst() {
+ einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor."
+ einfo "Depending on what you want to monitor with nagios, some or all of these USE"
+ einfo "flags need to be set for nagios to function correctly."
+ echo
+ einfo "contrib plugins are installed into /usr/$(get_libdir)/nagios/plugins/contrib"
+}