Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nagios-plugins: ChangeLog nagios-plugins-1.4.13-r4.ebuild nagios-plugins-1.4.13-r3.ebuild
Date: Sat, 30 May 2009 07:58:28
Message-Id: E1MAJST-0003Ht-RG@stork.gentoo.org
1 dertobi123 09/05/30 07:58:25
2
3 Modified: ChangeLog
4 Added: nagios-plugins-1.4.13-r4.ebuild
5 Removed: nagios-plugins-1.4.13-r3.ebuild
6 Log:
7 Revbump, fix #243384 and #253893
8 (Portage version: 2.2_rc33/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.114 net-analyzer/nagios-plugins/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.114&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.114&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?r1=1.113&r2=1.114
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v
20 retrieving revision 1.113
21 retrieving revision 1.114
22 diff -u -r1.113 -r1.114
23 --- ChangeLog 15 May 2009 17:32:37 -0000 1.113
24 +++ ChangeLog 30 May 2009 07:58:25 -0000 1.114
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-analyzer/nagios-plugins
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.113 2009/05/15 17:32:37 dertobi123 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.114 2009/05/30 07:58:25 dertobi123 Exp $
30 +
31 +*nagios-plugins-1.4.13-r4 (30 May 2009)
32 +
33 + 30 May 2009; Tobias Scherbaum <dertobi123@g.o>
34 + +files/nagios-plugins-1.4.13-mysqlpass-917fcc7.patch,
35 + +files/nagios-plugins-1.4.13-upslogout.patch,
36 + -nagios-plugins-1.4.13-r3.ebuild, +nagios-plugins-1.4.13-r4.ebuild:
37 + Revbump, fix #243384 and #253893
38
39 *nagios-plugins-1.4.13-r3 (15 May 2009)
40
41
42
43
44 1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r4.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: nagios-plugins-1.4.13-r4.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.13-r4.ebuild,v 1.1 2009/05/30 07:58:25 dertobi123 Exp $
54
55 EAPI=1
56
57 inherit eutils autotools
58
59 DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly"
60 HOMEPAGE="http://www.nagios.org/"
61 SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="+ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping
67 nagios-ssh nagios-game ups ipv6 radius +suid"
68
69 DEPEND="ldap? ( >=net-nds/openldap-2.0.25 )
70 mysql? ( virtual/mysql )
71 postgres? ( >=virtual/postgresql-base-7.2 )
72 ssl? ( >=dev-libs/openssl-0.9.6g )
73 radius? ( >=net-dialup/radiusclient-0.3.2 )"
74
75 RESTRICT="test"
76
77 RDEPEND="${DEPEND}
78 >=dev-lang/perl-5.6.1-r7
79 samba? ( >=net-fs/samba-2.2.5-r1 )
80 snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1
81 >=net-analyzer/net-snmp-5.0.6
82 )
83 mysql? ( dev-perl/DBI
84 dev-perl/DBD-mysql )
85 nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 )
86 nagios-ntp? ( >=net-misc/ntp-4.1.1a )
87 nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 )
88 nagios-ssh? ( >=net-misc/openssh-3.5_p1 )
89 ups? ( >=sys-power/nut-1.4 )
90 !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) )"
91
92 pkg_setup() {
93 enewgroup nagios
94 enewuser nagios -1 /bin/bash /var/nagios/home nagios
95 }
96
97 src_unpack() {
98 unpack ${A}
99 cd "${S}"
100
101 if ! use radius; then
102 EPATCH_OPTS="-p1 -d ${S}" epatch \
103 "${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch
104 fi
105
106 epatch "${FILESDIR}"/${PN}-1.4.10-contrib.patch
107 epatch "${FILESDIR}"/${PN}-1.4.12-pgsqlconfigure.patch
108
109 # Fix my.cnf usage, #253893, upstream fix commitid 917fcc7, will be fixed
110 # upstream in 1.4.14
111 epatch "${FILESDIR}"/${P}-mysqlpass-917fcc7.patch
112
113 # check_ups Logout, #243384 ,will be fixed upstream in 1.4.14
114 epatch "${FILESDIR}"/${P}--upslogout.patch
115
116 eautoreconf
117 }
118
119 src_compile() {
120
121 local conf
122 if use ssl; then
123 conf="${conf} --with-openssl=/usr"
124 else
125 conf="${conf} --without-openssl"
126 fi
127
128 if use postgres; then
129 conf="${conf} --with-pgsql=/usr"
130 fi
131
132 econf \
133 $(use_with mysql) \
134 $(use_with ipv6) \
135 ${conf} \
136 --host=${CHOST} \
137 --prefix=/usr \
138 --libexecdir=/usr/$(get_libdir)/nagios/plugins \
139 --sysconfdir=/etc/nagios || die "econf failed"
140
141 # fix problem with additional -
142 sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed"
143
144 emake || die "emake failed"
145 }
146
147 src_install() {
148 mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg
149 chmod +x "${S}"/contrib/*.pl
150
151 sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed"
152 sed -i -e s#/usr/nagios/libexec#/usr/$(get_libdir)/nagios/plugins#g "${S}"/contrib/*.pl || die "sed failed"
153 sed -i -e '30s/use lib utils.pm;/use utils;/' \
154 "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
155
156 dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
157 ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
158
159 emake DESTDIR="${D}" install || die "make install failed"
160
161 if use mysql || use postgres; then
162 dodir /usr/$(get_libdir)/nagios/plugins
163 exeinto /usr/$(get_libdir)/nagios/plugins
164 doexe "${S}"/contrib/check_nagios_db.pl
165 fi
166
167 if ! use snmp; then
168 rm "${D}"/usr/$(get_libdir)/nagios/plugins/check_if{operstatus,status} \
169 || die "Failed to remove SNMP check plugins"
170 fi
171
172 mv "${S}"/contrib "${D}"/usr/$(get_libdir)/nagios/plugins/contrib
173
174 chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins \
175 || die "Failed chown of ${D}usr/$(get_libdir)/nagios/plugins"
176
177 chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins \
178 || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins"
179
180 if use suid ; then
181
182 chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/{check_icmp,check_ide_smart,check_dhcp} \
183 || die "Failed setting the suid bit for various plugins"
184 fi
185
186 dosym /usr/$(get_libdir)/nagios/plugins/utils.sh /usr/$(get_libdir)/nagios/plugins/contrib/utils.sh
187 dosym /usr/$(get_libdir)/nagios/plugins/utils.pm /usr/$(get_libdir)/nagios/plugins/contrib/utils.pm
188 }
189
190 pkg_postinst() {
191 einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor."
192 einfo "Depending on what you want to monitor with nagios, some or all of these USE"
193 einfo "flags need to be set for nagios to function correctly."
194 echo
195 einfo "contrib plugins are installed into /usr/$(get_libdir)/nagios/plugins/contrib"
196 }