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.11-r102.ebuild nagios-plugins-1.4.12-r100.ebuild nagios-plugins-1.4.12.ebuild
Date: Thu, 29 May 2008 12:57:48
Message-Id: E1K1hhO-000166-Q2@stork.gentoo.org
1 dertobi123 08/05/29 12:57:42
2
3 Modified: ChangeLog nagios-plugins-1.4.11-r102.ebuild
4 Added: nagios-plugins-1.4.12-r100.ebuild
5 nagios-plugins-1.4.12.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.92 net-analyzer/nagios-plugins/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.92&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?rev=1.92&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog?r1=1.91&r2=1.92
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v
20 retrieving revision 1.91
21 retrieving revision 1.92
22 diff -u -r1.91 -r1.92
23 --- ChangeLog 21 May 2008 18:51:51 -0000 1.91
24 +++ ChangeLog 29 May 2008 12:57:42 -0000 1.92
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-analyzer/nagios-plugins
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.91 2008/05/21 18:51:51 dev-zero Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/ChangeLog,v 1.92 2008/05/29 12:57:42 dertobi123 Exp $
30 +
31 +*nagios-plugins-1.4.12-r100 (29 May 2008)
32 +*nagios-plugins-1.4.12 (29 May 2008)
33 +
34 + 29 May 2008; Tobias Scherbaum <dertobi123@g.o>
35 + nagios-plugins-1.4.11-r102.ebuild, +nagios-plugins-1.4.12.ebuild,
36 + +nagios-plugins-1.4.12-r100.ebuild:
37 + Version bump
38
39 21 May 2008; Tiziano Müller <dev-zero@g.o>
40 nagios-plugins-1.4.11-r102.ebuild:
41
42
43
44 1.4 net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild?rev=1.4&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild?rev=1.4&content-type=text/plain
48 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild?r1=1.3&r2=1.4
49
50 Index: nagios-plugins-1.4.11-r102.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild,v
53 retrieving revision 1.3
54 retrieving revision 1.4
55 diff -u -r1.3 -r1.4
56 --- nagios-plugins-1.4.11-r102.ebuild 21 May 2008 18:51:51 -0000 1.3
57 +++ nagios-plugins-1.4.11-r102.ebuild 29 May 2008 12:57:42 -0000 1.4
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2008 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild,v 1.3 2008/05/21 18:51:51 dev-zero Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.11-r102.ebuild,v 1.4 2008/05/29 12:57:42 dertobi123 Exp $
63
64 WANT_AUTOCONF="latest"
65 WANT_AUTOMAKE="latest"
66 @@ -93,7 +93,7 @@
67 sed -i -e '30s/use lib utils.pm;/use utils;/' \
68 "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
69
70 - dodoc ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
71 + dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
72 ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
73
74 emake DESTDIR="${D}" install || die "make install failed"
75
76
77
78 1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.12-r100.ebuild
79
80 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.12-r100.ebuild?rev=1.1&view=markup
81 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.12-r100.ebuild?rev=1.1&content-type=text/plain
82
83 Index: nagios-plugins-1.4.12-r100.ebuild
84 ===================================================================
85 # Copyright 1999-2008 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.12-r100.ebuild,v 1.1 2008/05/29 12:57:42 dertobi123 Exp $
88
89 WANT_AUTOCONF="latest"
90 WANT_AUTOMAKE="latest"
91
92 inherit eutils autotools
93
94 DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly"
95 HOMEPAGE="http://www.nagios.org/"
96 SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz"
97
98 LICENSE="GPL-2"
99 SLOT="0"
100 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
101 IUSE="ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping
102 nagios-ssh nagios-game ups ipv6 radius"
103
104 DEPEND="ldap? ( >=net-nds/openldap-2.0.25 )
105 mysql? ( virtual/mysql )
106 postgres? ( >=virtual/postgresql-base-7.2 )
107 ssl? ( >=dev-libs/openssl-0.9.6g )
108 radius? ( >=net-dialup/radiusclient-0.3.2 )"
109
110 RESTRICT="test"
111
112 RDEPEND="${DEPEND}
113 >=dev-lang/perl-5.6.1-r7
114 samba? ( >=net-fs/samba-2.2.5-r1 )
115 snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1
116 >=net-analyzer/net-snmp-5.0.6
117 )
118 mysql? ( dev-perl/DBI
119 dev-perl/DBD-mysql )
120 nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 )
121 nagios-ntp? ( >=net-misc/ntp-4.1.1a )
122 nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 )
123 nagios-ssh? ( >=net-misc/openssh-3.5_p1 )
124 ups? ( >=sys-power/nut-1.4 )
125 !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) )"
126
127 pkg_setup() {
128 enewgroup nagios
129 enewuser nagios -1 /bin/bash /var/nagios/home nagios
130 }
131
132 src_unpack() {
133 unpack ${A}
134 cd "${S}"
135
136 if ! use radius; then
137 EPATCH_OPTS="-p1 -d ${S}" epatch \
138 "${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch
139 fi
140
141 epatch "${FILESDIR}"/${PN}-1.4.10-contrib.patch
142
143 AT_M4DIR="m4 gl/m4" eautoreconf
144 }
145
146 src_compile() {
147
148 local conf
149 if use ssl; then
150 conf="${conf} --with-openssl=/usr"
151 else
152 conf="${conf} --without-openssl"
153 fi
154
155 econf \
156 $(use_with mysql) \
157 $(use_with postgres pgsql) \
158 $(use_with ipv6) \
159 ${conf} \
160 --host=${CHOST} \
161 --prefix=/usr \
162 --libexecdir=/usr/$(get_libdir)/nagios/plugins \
163 --sysconfdir=/etc/nagios || die "econf failed"
164
165 # fix problem with additional -
166 sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed"
167
168 emake || die "emake failed"
169 }
170
171 src_install() {
172 mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg
173 chmod +x "${S}"/contrib/*.pl
174
175 sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed"
176 sed -i -e '30s/use lib utils.pm;/use utils;/' \
177 "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
178
179 dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
180 ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
181
182 emake DESTDIR="${D}" install || die "make install failed"
183
184 if use mysql || use postgres; then
185 dodir /usr/$(get_libdir)/nagios/plugins
186 exeinto /usr/$(get_libdir)/nagios/plugins
187 doexe "${S}"/contrib/check_nagios_db.pl
188 fi
189
190 mv "${S}"/contrib "${D}"/usr/$(get_libdir)/nagios/plugins/contrib
191
192 chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins \
193 || die "Failed chown of ${D}usr/$(get_libdir)/nagios/plugins"
194
195 chmod -R o-rwx "${D}"/usr/$(get_libdir)/nagios/plugins \
196 || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins"
197
198 chmod 04710 "${D}"/usr/$(get_libdir)/nagios/plugins/check_icmp \
199 || die "Failed chmod of ${D}usr/$(get_libdir)/nagios/plugins/check_icmp"
200
201 }
202
203 pkg_postinst() {
204 einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor."
205 einfo "Depending on what you want to monitor with nagios, some or all of these USE"
206 einfo "flags need to be set for nagios to function correctly."
207 echo
208 einfo "contrib plugins are installed into /usr/$(get_libdir)/nagios/plugins/contrib"
209 }
210
211
212
213 1.1 net-analyzer/nagios-plugins/nagios-plugins-1.4.12.ebuild
214
215 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.12.ebuild?rev=1.1&view=markup
216 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.12.ebuild?rev=1.1&content-type=text/plain
217
218 Index: nagios-plugins-1.4.12.ebuild
219 ===================================================================
220 # Copyright 1999-2008 Gentoo Foundation
221 # Distributed under the terms of the GNU General Public License v2
222 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-plugins/nagios-plugins-1.4.12.ebuild,v 1.1 2008/05/29 12:57:42 dertobi123 Exp $
223
224 WANT_AUTOCONF="latest"
225 WANT_AUTOMAKE="latest"
226
227 inherit eutils autotools
228
229 DESCRIPTION="Nagios $PV plugins - Pack of plugins to make Nagios work properly"
230 HOMEPAGE="http://www.nagios.org/"
231 SRC_URI="mirror://sourceforge/nagiosplug/${P}.tar.gz"
232
233 LICENSE="GPL-2"
234 SLOT="0"
235 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
236 IUSE="ssl samba mysql postgres ldap snmp nagios-dns nagios-ntp nagios-ping
237 nagios-ssh nagios-game ups ipv6 radius"
238
239 DEPEND="ldap? ( >=net-nds/openldap-2.0.25 )
240 mysql? ( virtual/mysql )
241 postgres? ( >=virtual/postgresql-base-7.2 )
242 ssl? ( >=dev-libs/openssl-0.9.6g )
243 radius? ( >=net-dialup/radiusclient-0.3.2 )"
244
245 RESTRICT="test"
246
247 RDEPEND="${DEPEND}
248 >=dev-lang/perl-5.6.1-r7
249 samba? ( >=net-fs/samba-2.2.5-r1 )
250 snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1
251 >=net-analyzer/net-snmp-5.0.6
252 )
253 mysql? ( dev-perl/DBI
254 dev-perl/DBD-mysql )
255 nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 )
256 nagios-ntp? ( >=net-misc/ntp-4.1.1a )
257 nagios-ping? ( >=net-analyzer/fping-2.4_beta2-r1 )
258 nagios-ssh? ( >=net-misc/openssh-3.5_p1 )
259 ups? ( >=sys-power/nut-1.4 )
260 !sparc? ( nagios-game? ( >=games-util/qstat-2.6 ) )"
261
262 pkg_setup() {
263 enewgroup nagios
264 enewuser nagios -1 /bin/bash /var/nagios/home nagios
265 }
266
267 src_unpack() {
268 unpack ${A}
269 cd "${S}"
270
271 if ! use radius; then
272 EPATCH_OPTS="-p1 -d ${S}" epatch \
273 "${FILESDIR}"/nagios-plugins-1.4.10-noradius.patch
274 fi
275
276 epatch "${FILESDIR}"/${PN}-1.4.10-contrib.patch
277
278 AT_M4DIR="m4 gl/m4" eautoreconf
279 }
280
281 src_compile() {
282
283 local conf
284 if use ssl; then
285 conf="${conf} --with-openssl=/usr"
286 else
287 conf="${conf} --without-openssl"
288 fi
289
290 econf \
291 $(use_with mysql) \
292 $(use_with postgres pgsql) \
293 $(use_with ipv6) \
294 ${conf} \
295 --host=${CHOST} \
296 --prefix=/usr/nagios \
297 --sysconfdir=/etc/nagios \
298 --infodir=/usr/share/info \
299 --mandir=/usr/share/man || die "econf failed"
300
301 # fix problem with additional -
302 sed -i -e 's:/bin/ps -axwo:/bin/ps axwo:g' config.h || die "sed failed"
303
304 emake || die "emake failed"
305 }
306
307 src_install() {
308 mv "${S}"/contrib/check_compaq_insight.pl "${S}"/contrib/check_compaq_insight.pl.msg
309 chmod +x "${S}"/contrib/*.pl
310
311 sed -i -e '1s;#!.*;#!/usr/bin/perl -w;' "${S}"/contrib/*.pl || die "sed failed"
312 sed -i -e '30s/use lib utils.pm;/use utils;/' \
313 "${S}"/plugins-scripts/check_file_age.pl || die "sed failed"
314
315 dodoc ACKNOWLEDGEMENTS AUTHORS BUGS CODING \
316 ChangeLog FAQ NEWS README REQUIREMENTS SUPPORT THANKS
317
318 emake DESTDIR="${D}" install || die "make install failed"
319
320 if use mysql || use postgres; then
321 dodir /usr/nagios/libexec
322 exeinto /usr/nagios/libexec
323 doexe "${S}"/contrib/check_nagios_db.pl
324 fi
325
326 dodir /usr/nagios/libexec/
327 mv "${S}"/contrib "${D}"/usr/nagios/libexec/contrib
328
329 chown root:nagios "${D}"/usr/nagios || die "Failed Chown of ${D}usr/nagios"
330 chown -R root:nagios "${D}"/usr/nagios/libexec || die "Failed Chown of ${D}usr/nagios/libexec"
331
332 chmod -R o-rwx "${D}"/usr/nagios/libexec || die "Failed Chmod of ${D}usr/nagios/libexec"
333
334 chmod 04710 "${D}"/usr/nagios/libexec/check_icmp || die "Failed Chmod of ${D}usr/nagios/libexec/check_icmp"
335 }
336
337 pkg_postinst() {
338 einfo "This ebuild has a number of USE flags which determines what nagios is able to monitor."
339 einfo "Depending on what you want to monitor with nagios, some or all of these USE"
340 einfo "flags need to be set for nagios to function correctly."
341 echo
342 einfo "contrib plugins are installed into /usr/nagios/libexec/contrib"
343 }
344
345
346
347 --
348 gentoo-commits@l.g.o mailing list