diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2010-07-30 14:34:42 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2010-07-30 14:34:42 +0000 |
commit | 268033d99f2b2edfd4b8215fe5d8b6dc4b712887 (patch) | |
tree | 6550503134a74ab5ff2b7a2a00f05c33909d5cea /net-analyzer/nagios-plugins | |
parent | Version bump. Drop older. Grass support to be done. (diff) | |
download | historical-268033d99f2b2edfd4b8215fe5d8b6dc4b712887.tar.gz historical-268033d99f2b2edfd4b8215fe5d8b6dc4b712887.tar.bz2 historical-268033d99f2b2edfd4b8215fe5d8b6dc4b712887.zip |
Version bump
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/nagios-plugins')
-rw-r--r-- | net-analyzer/nagios-plugins/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/nagios-plugins/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch | 98 | ||||
-rw-r--r-- | net-analyzer/nagios-plugins/nagios-plugins-1.4.15.ebuild (renamed from net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r1.ebuild) | 27 |
4 files changed, 128 insertions, 13 deletions
diff --git a/net-analyzer/nagios-plugins/ChangeLog b/net-analyzer/nagios-plugins/ChangeLog index c6b75ae690aa..0c7f96d7cfcc 100644 --- a/net-analyzer/nagios-plugins/ChangeLog +++ b/net-analyzer/nagios-plugins/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-analyzer/nagios-plugins # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.130 2010/06/25 10:34:19 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.131 2010/07/30 14:34:41 dertobi123 Exp $ + +*nagios-plugins-1.4.15 (30 Jul 2010) + + 30 Jul 2010; Tobias Scherbaum <dertobi123@gentoo.org> + -nagios-plugins-1.4.13-r1.ebuild, +nagios-plugins-1.4.15.ebuild, + +files/nagios-plugins-1.4.15-vserver.patch: + Version bump 25 Jun 2010; Markos Chandras <hwoarang@gentoo.org> nagios-plugins-1.4.14.ebuild, diff --git a/net-analyzer/nagios-plugins/Manifest b/net-analyzer/nagios-plugins/Manifest index d4305591950c..6f28f8297c46 100644 --- a/net-analyzer/nagios-plugins/Manifest +++ b/net-analyzer/nagios-plugins/Manifest @@ -3,10 +3,11 @@ AUX nagios-plugins-1.4.10-noradius.patch 1029 RMD160 e1e449d93966d822eca21782968 AUX nagios-plugins-1.4.12-pgsqlconfigure.patch 2981 RMD160 6090168654e888ce9b5bb1c5c6b493f3a019472d SHA1 db41a7f6b57f1119045fb90707a7a8182225d9b8 SHA256 8e57962c484363fa790c6920f1f9fe11f273a061fcc59ac2cb9b1d57634a1455 AUX nagios-plugins-1.4.14-implicit-pointer-conversion.patch 486 RMD160 193b213ea168a7b25d16380918a3d82e85d86ce3 SHA1 130256ff58f01ac9cae08edbb2f86a2b90c89247 SHA256 65c06471f1b5085371dac7edf55004924745d342c08c03abe9d39116b6b0c10c AUX nagios-plugins-1.4.14-vserver.patch 3509 RMD160 49a84ccf016a707872af94306570d7ff173499b8 SHA1 45c255a947adb07cef9f3f18bf9eb0e511c82937 SHA256 7302c26729d02b00c5b5ac4857136773f348ea0a2b7fbddb8ef701784020c3c8 -DIST nagios-plugins-1.4.13.tar.gz 2279556 RMD160 38de32581581b21e36e047138a94a70a9a031a02 SHA1 fb22eba22095bdd709a65b1477bfb566aac9077e SHA256 592fe3329777e53f8fb526cb61e625a85ae9a1fd850b4039f78a2c460b1607c5 +AUX nagios-plugins-1.4.15-vserver.patch 3492 RMD160 3676fe7b9e9aaefa48662d9a7e4569bee25282de SHA1 ba07ac251f9827be1952999b67c01ab41b2ca910 SHA256 06d34d4a5f75757782ece8074c366eb630b25be01428e8337ea6874cd3636d85 DIST nagios-plugins-1.4.14.tar.gz 1950729 RMD160 f4e1768d84474fc4fa2b59a52efe320c7cbefb3a SHA1 b9998231f992c92b9370b62f15ac80323042f22c SHA256 b1f0f2c01bab2a320cc7c041106500acfd6a5262ff811a2c31b62608ac6c3352 -EBUILD nagios-plugins-1.4.13-r1.ebuild 4090 RMD160 72faeda3a9f44fa9ab29adc2b6a02cc9860889a2 SHA1 264ba2c18d6aee014081fc19a4a6a42fca10a0f0 SHA256 81f7b466b791e19118f641ed1817e5f4fedd554759dfd3faa1369c75042d9b6b +DIST nagios-plugins-1.4.15.tar.gz 2095419 RMD160 c2780a3523cf4eaaed34a94c07f5f6bd6fb1f736 SHA1 1faab309c06d37e559490fd852ecb0dc8a8ab610 SHA256 51136e5210e3664e1351550de3aff4a766d9d9fea9a24d09e37b3428ef96fa5b EBUILD nagios-plugins-1.4.14-r2.ebuild 4452 RMD160 e1f88f5a50c68b114250655b5bc996516241e674 SHA1 d365f8625163a3ac2228d4edbbdf6423878cf570 SHA256 d151215b6b78ff3e43f1e8c58fef054a67563eef2b793589d2f81907394ddf8c EBUILD nagios-plugins-1.4.14.ebuild 4265 RMD160 e790298a3d94a4b2a8da93aca9adcfdae1d43d0d SHA1 a555a731b70a6328e6e6de7b5345ebff7ed16691 SHA256 12166c6ed5c3b36663631aaa9f00041e10b60c96b4d662c051830de9b77ba807 -MISC ChangeLog 7783 RMD160 c015749bc153742b719bd7e2415c2b897d0a39f1 SHA1 8386ae126fb5780597e8c325462a160256e8ce13 SHA256 9acb7c50c69002a5f3fb7687fddec390ee89aadff964d83a87c9e4ede3227646 +EBUILD nagios-plugins-1.4.15.ebuild 4452 RMD160 20da51c023df4781fc6d257a59197e02e50683a0 SHA1 da5dd761a0e54a382884512e43c8b80d750af3df SHA256 b79edc4ba9d65721461e3caaaac50168b3a05311cc3e86466007e372a354c896 +MISC ChangeLog 8008 RMD160 4caa4b0a14873842adc9b16314692ad4d9bb0894 SHA1 effb0cb608f8106be36d7f74cea3d6c54d847215 SHA256 020f3105fc8696122f3e6565268774e9deec6ecfcdd6eaec7ebaa970e73121b5 MISC metadata.xml 846 RMD160 c586646ae8e50e5530570a9e7dbdc3bfef074d89 SHA1 4a58e0ba3dde6f44a5227c0c232a0f2d2f06ed1d SHA256 ca1e7a175629f4ce6866ca6408744e222216e12c4ce37c6075bf2ded87916ff7 diff --git a/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch b/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch new file mode 100644 index 000000000000..867fdd3f4325 --- /dev/null +++ b/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch @@ -0,0 +1,98 @@ +--- configure.in.orig 2010-07-30 16:22:01.000000000 +0200 ++++ configure.in 2010-07-30 16:24:30.000000000 +0200 +@@ -94,6 +94,8 @@ + REV_DATESTAMP=`date '+%Y.%m.%d.%H.%M'` + REV_TIMESTAMP=`date '+%Y%m%d%H%M%S'` + ++first_ip=`/sbin/ifconfig | egrep "inet addr:" | sed -n '1p' | sed 's/ Bcast.*$//' | sed 's/^\s*inet addr://'` ++ + AC_SUBST(PKG_ARCH) + AC_SUBST(REV_DATESTAMP) + AC_SUBST(REV_TIMESTAMP) +@@ -950,14 +952,14 @@ + fi + + elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ +- $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ ++ $PATH_TO_PING -n -s $first_ip 56 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -U -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -U -w 10 -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" +@@ -965,52 +967,52 @@ + ac_cv_ping_has_timeout=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -U -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -U -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ ++elif $PATH_TO_PING -n $first_ip -c 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n %s -c %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ ++elif $PATH_TO_PING $first_ip -n 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING %s -n %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ ++elif $PATH_TO_PING -n -s $first_ip 56 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -s %s 56 %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ ++elif $PATH_TO_PING -n -h $first_ip -s 56 -c 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -s 56 -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -c %d %s" +@@ -1221,7 +1223,7 @@ + if test -n "$PATH_TO_NSLOOKUP" + then + AC_MSG_CHECKING(for nslookup syntax) +- if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null ++ if $PATH_TO_NSLOOKUP -sil $first_ip 2>&1 | grep ["Invalid option: sil"] >/dev/null + then + ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" + AC_MSG_RESULT([$ac_cv_nslookup_command]) diff --git a/net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r1.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-1.4.15.ebuild index 5f12283b7b73..541ae4e4deba 100644 --- a/net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r1.ebuild +++ b/net-analyzer/nagios-plugins/nagios-plugins-1.4.15.ebuild @@ -1,9 +1,8 @@ # Copyright 1999-2010 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.13-r1.ebuild,v 1.10 2010/06/17 20:32:06 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.15.ebuild,v 1.1 2010/07/30 14:34:41 dertobi123 Exp $ -WANT_AUTOCONF="latest" -WANT_AUTOMAKE="latest" +EAPI=1 inherit eutils autotools @@ -13,9 +12,8 @@ SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" -IUSE="ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping -nagios-ssh nagios-game ups ipv6 radius" +KEYWORDS="~alpha ~amd64 ~hppa ~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 ) @@ -38,7 +36,8 @@ RDEPEND="${DEPEND} 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 ) )" + !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) ) + jabber? ( >=dev-perl/Net-Jabber-2.0 )" pkg_setup() { enewgroup nagios @@ -56,6 +55,7 @@ src_unpack() { epatch "${FILESDIR}"/${PN}-1.4.10-contrib.patch epatch "${FILESDIR}"/${PN}-1.4.12-pgsqlconfigure.patch + epatch "${FILESDIR}"/${P}-vserver.patch eautoreconf } @@ -93,6 +93,7 @@ src_install() { 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" @@ -114,14 +115,22 @@ src_install() { 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" - chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/check_icmp \ - || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins/check_icmp" + 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 |