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