Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nsca: nsca-2.7.2-r102.ebuild ChangeLog metadata.xml nsca-2.7.2-r103.ebuild nsca-2.7.2-r100.ebuild
Date: Thu, 23 Aug 2012 21:27:33
Message-Id: 20120823212709.2AD48204CC@flycatcher.gentoo.org
1 flameeyes 12/08/23 21:27:09
2
3 Added: nsca-2.7.2-r102.ebuild ChangeLog metadata.xml
4 nsca-2.7.2-r103.ebuild nsca-2.7.2-r100.ebuild
5 Log:
6 Move from net-analyzer/nagios-nsca to net-analyzer/nsca, as the package work with Icinga just fine.
7
8 (Portage version: 2.2.0_alpha121/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.1 net-analyzer/nsca/nsca-2.7.2-r102.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r102.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r102.ebuild?rev=1.1&content-type=text/plain
15
16 Index: nsca-2.7.2-r102.ebuild
17 ===================================================================
18 # Copyright 1999-2012 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r102.ebuild,v 1.1 2012/08/23 21:27:08 flameeyes Exp $
21
22 EAPI=4
23
24 inherit multilib user
25
26 DESCRIPTION="Nagios NSCA - Nagios Service Check Acceptor"
27 HOMEPAGE="http://www.nagios.org/"
28 SRC_URI="mirror://sourceforge/nagios/nsca-${PV}.tar.gz"
29
30 LICENSE="GPL-2"
31 SLOT="0"
32 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
33 IUSE="tcpd +crypt"
34
35 DEPEND="crypt? ( >=dev-libs/libmcrypt-2.5.1-r4 )
36 tcpd? ( sys-apps/tcp-wrappers )"
37
38 RDEPEND="${DEPEND}
39 sys-apps/openrc"
40
41 S="${WORKDIR}/nsca-${PV}"
42
43 pkg_setup() {
44 enewgroup nagios
45 enewuser nagios -1 /bin/bash /var/nagios/home nagios
46 }
47
48 src_configure() {
49 use tcpd || export ac_cv_lib_wrap_main=no
50 use crypt || export ac_cv_path_LIBMCRYPT_CONFIG=/bin/false
51
52 econf
53 --localstatedir=/var/nagios \
54 --sysconfdir=/etc/nagios \
55 --with-nsca-user=nagios \
56 --with-nsca-grp=nagios
57 }
58
59 src_install() {
60 dodoc LEGAL Changelog README SECURITY
61
62 insinto /etc/nagios
63 doins "${S}"/sample-config/nsca.cfg
64 doins "${S}"/sample-config/send_nsca.cfg
65
66 dobin src/send_nsca
67
68 exeinto /usr/libexec
69 doexe src/nsca
70
71 newinitd "${FILESDIR}"/nsca.init nsca
72 }
73
74 pkg_postinst() {
75 elog "If you are using the nsca daemon, remember to edit"
76 elog "the config file /etc/nagios/nsca.cfg"
77 elog ""
78 elog "If you intend to use nsca with Icinga, make sure you"
79 elog "change the value of command_file in nsca.cfg."
80 }
81
82
83
84 1.1 net-analyzer/nsca/ChangeLog
85
86 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/ChangeLog?rev=1.1&view=markup
87 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/ChangeLog?rev=1.1&content-type=text/plain
88
89 Index: ChangeLog
90 ===================================================================
91 # ChangeLog for net-analyzer/nagios-nsca
92 # Copyright 2002-2012 Gentoo Foundation; Distributed under the GPL v2
93 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/ChangeLog,v 1.1 2012/08/23 21:27:08 flameeyes Exp $
94
95 *nagios-nsca-2.7.2-r103 (23 Aug 2012)
96
97 23 Aug 2012; Diego E. Pettenò <flameeyes@g.o> +files/nsca.conf,
98 +nagios-nsca-2.7.2-r103.ebuild, files/nsca.init, metadata.xml:
99 Revision bump: add a minimal USE flag to only build send_nsca instead of the
100 daemon; add a dependency on either nagios or icinga for the non-minimal
101 install; install a configuration file with icinga defaults (user/group and
102 paths); allow changing the configuration file for the init script (install
103 conf.d file for that) and depend properly on icinga/nagios.
104
105 *nagios-nsca-2.7.2-r102 (21 Aug 2012)
106
107 21 Aug 2012; Diego E. Pettenò <flameeyes@g.o>
108 +nagios-nsca-2.7.2-r102.ebuild, -nagios-nsca-2.7.2-r101.ebuild,
109 files/nsca.init, metadata.xml:
110 Revision bump: inherit user eclass for creating the nagios user and group;
111 don't drop to nagios:nagios through s-s-d, leave it to the daemon to do that,
112 otherwise we don't get a pid_file; make sure that nsca is queued after icinga
113 or nagios when starting the init script; add a crypt USE flag to depend on
114 libmcrypt so that you can disable it.
115
116 19 Aug 2012; Diego E. Pettenò <flameeyes@g.o> metadata.xml:
117 Re-assign to sysadmin herd.
118
119 *nagios-nsca-2.7.2-r101 (18 Aug 2012)
120
121 18 Aug 2012; Diego E. Pettenò <flameeyes@g.o> +files/nsca.init,
122 +nagios-nsca-2.7.2-r101.ebuild, -files/nsca, -files/nsca.cfg,
123 -files/send_nsca.cfg, -nagios-nsca-2.7.2.ebuild:
124 Remove old; revbump and cleanup ebuild: use EAPI 4, use econf, set up the
125 nagios user correctly, instead of depending on nagios-plugins for that; make
126 tcpd dependency non-automagic; fix install path of send_ncsa; don't chown
127 files that are world-executable; init script is cleaned up, uses the new
128 runscript syntax and is safe to run on LXC hosts as well.
129
130 09 Feb 2012; Pacho Ramos <pacho@g.o> metadata.xml:
131 Drop maintainer due retirement, bug #85926
132
133 18 Mar 2009; Brent Baude <ranger@g.o>
134 nagios-nsca-2.7.2-r100.ebuild:
135 Marking nagios-nsca-2.7.2-r100 ppc stable for bug 256177
136
137 07 Mar 2009; Markus Meier <maekke@g.o>
138 nagios-nsca-2.7.2-r100.ebuild:
139 amd64/x86 stable, bug #256177
140
141 07 Mar 2009; Markus Meier <maekke@g.o>
142 nagios-nsca-2.7.2-r100.ebuild:
143 correct fowners of the nsca binary
144
145 04 Mar 2009; Ferris McCormick <fmccor@g.o>
146 nagios-nsca-2.7.2-r100.ebuild:
147 Sparc stable, part of Bug #256177.
148
149 01 Feb 2009; Tobias Klausmann <klausman@g.o>
150 nagios-nsca-2.7.2-r100.ebuild:
151 Stable on alpha, bug #256177
152
153 26 Jan 2009; Brent Baude <ranger@g.o>
154 nagios-nsca-2.7.2-r100.ebuild:
155 Marking nagios-nsca-2.7.2-r100 ppc64 stable for bug 256177
156
157 *nagios-nsca-2.7.2-r100 (27 Apr 2008)
158
159 27 Apr 2008; Tobias Scherbaum <dertobi123@g.o> +files/nsca-nagios3,
160 -nagios-nsca-2.6.ebuild, +nagios-nsca-2.7.2-r100.ebuild:
161 bump for nagios-3
162
163 14 Mar 2008; Caleb Tennis <caleb@g.o> nagios-nsca-2.7.2.ebuild:
164 amd64 stable, per bug #205335
165
166 05 Feb 2008; Markus Rothe <corsair@g.o> nagios-nsca-2.7.2.ebuild:
167 Stable on ppc64
168
169 21 Jan 2008; Raúl Porcel <armin76@g.o> nagios-nsca-2.7.2.ebuild:
170 sparc stable wrt #205335
171
172 12 Jan 2008; Dawid Węgliński <cla@g.o> nagios-nsca-2.7.2.ebuild:
173 Stable on x86 (bug #205335)
174
175 *nagios-nsca-2.7.2 (17 Aug 2007)
176
177 17 Aug 2007; Tobias Scherbaum <dertobi123@g.o> -files/nsca-2.3,
178 -files/nsca-2.6, files/nsca, -nagios-nsca-2.4.ebuild,
179 -nagios-nsca-2.5.ebuild, nagios-nsca-2.6.ebuild,
180 -nagios-nsca-2.7.1.ebuild, +nagios-nsca-2.7.2.ebuild:
181 Version bump, Cleanup
182
183 28 Apr 2007; Sven Wegener <swegener@g.o> nagios-nsca-2.4.ebuild,
184 nagios-nsca-2.5.ebuild:
185 Fix *initd, *confd and *envd calls (#173884, #174266)
186
187 28 Apr 2007; Torsten Veller <tove@g.o> nagios-nsca-2.6.ebuild,
188 nagios-nsca-2.7.1.ebuild:
189 Use newinitd
190
191 *nagios-nsca-2.7.1 (12 Mar 2007)
192
193 12 Mar 2007; Martin Jackson <mjolnir@g.o>
194 +nagios-nsca-2.7.1.ebuild:
195 Version bump to 2.7.1 for #169434
196
197 21 Oct 2006; Thomas Cort <tcort@g.o> nagios-nsca-2.6.ebuild:
198 Added ~alpha keyword wrt Bug #110130.
199
200 17 Aug 2006; Gustavo Zacarias <gustavoz@g.o>
201 nagios-nsca-2.6.ebuild:
202 Stable on sparc
203
204 06 Jul 2006; Markus Rothe <corsair@g.o> nagios-nsca-2.6.ebuild:
205 Stable on ppc64
206
207 04 Jul 2006; Lance Albertson <ramereth@g.o> nagios-nsca-2.6.ebuild:
208 * Marked 2.6 stable
209
210 07 May 2006; Markus Rothe <corsair@g.o> nagios-nsca-2.5.ebuild:
211 Stable on ppc64
212
213 05 May 2006; Gustavo Zacarias <gustavoz@g.o>
214 nagios-nsca-2.5.ebuild:
215 Stable on sparc wrt security #132159
216
217 *nagios-nsca-2.6 (27 Apr 2006)
218
219 27 Apr 2006; Lance Albertson <ramereth@g.o> +files/nsca-2.6,
220 nagios-nsca-2.5.ebuild, +nagios-nsca-2.6.ebuild:
221 * Version bump
222 * Added reload to init script (2.6)
223 * Stable on x86 (2.5)
224
225 *nagios-nsca-2.5 (04 Feb 2006)
226
227 04 Feb 2006; Lance Albertson <ramereth@g.o> metadata.xml,
228 +nagios-nsca-2.5.ebuild:
229 * Version bump
230
231 17 Dec 2005; Markus Rothe <corsair@g.o> nagios-nsca-2.4.ebuild:
232 Added ~ppc64
233
234 24 Oct 2004; Jason Wever <weeve@g.o> nagios-nsca-2.4.ebuild:
235 Stable on sparc.
236
237 13 Jul 2004; Eldad Zack <eldad@g.o> +metadata.xml,
238 nagios-nsca-2.4.ebuild:
239 Added metadata
240
241 19 Mar 2004; Michael Sterrett <mr_bones_@g.o> nagios-nsca-2.4.ebuild:
242 fix depend (bug #45110); tidy
243
244 15 Dec 2003; Martin Holzer <mholzer@g.o> nagios-nsca-2.4.ebuild:
245 x86 stable.
246
247 *nagios-nsca-2.4 (26 Nov 2003)
248
249 26 Nov 2003; Martin Holzer <mholzer@g.o> nagios-nsca-2.4.ebuild:
250 Version bumped.
251
252 26 Nov 2003; Martin Holzer <mholzer@g.o> nagios-nsca-2.3-r1.ebuild:
253 Added RESTRICT="nomirror"
254
255 *nagios-nsca-2.3-r1
256 17 Jun 2003; Dean Bailey <alron@g.o> nagios-nsca-2.3-r1 :
257 Bug fix for bug #22498
258
259 28 Feb 2003; Dean Bailey <alron@g.o> nagios-nsca-2.3 :
260 Moved to x86 stable.
261
262 *nagios-nsca-2.3 (09 Feb 2003)
263 09 Feb 2003; Dean Bailey <alron@g.o> nagios-nsca-2.3 :
264 Version bump
265
266 15 Jan 2003; Dean Bailey <alron@g.o> nagios-nsca-2.2 :
267 Changed ~x86 to x86 and added sparc and ppc keywords
268
269 *nagios-nsca-2.2 (13 Jan 2003)
270 13 Jan 2002; Dean Bailey <alron@g.o> nagios-nsca-2.2 :
271 Updated to version 2.2
272
273 *nagios-nsca-2.1 (1 Nov 2002)
274 1 Nov 2002; Dean Bailey <alron@g.o> nagios-nsca-2.1 :
275 Initial import. Ebuild submitted by Dean Bailey <alron@g.o>.
276
277
278
279 1.1 net-analyzer/nsca/metadata.xml
280
281 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/metadata.xml?rev=1.1&view=markup
282 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/metadata.xml?rev=1.1&content-type=text/plain
283
284 Index: metadata.xml
285 ===================================================================
286 <?xml version="1.0" encoding="UTF-8"?>
287 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
288 <pkgmetadata>
289 <herd>sysadmin</herd>
290 <longdescription lang="en">
291 This program is designed to accept passive service check results
292 from clients that use the send_nsca utility (which is included in
293 this package) and pass them along to the Nagios process by using
294 the external command interface. The program can either be run as a
295 standalone daemon or as a service under inetd. If you have
296 libmcrypt installed on your systems, you can choose from multiple
297 crypto algorithms (DES, 3DES, CAST, xTEA, Twofish, LOKI97,
298 RJINDAEL, SERPENT, GOST, SAFER/SAFER+, etc.) for encrypting the
299 traffic between the client and the server. Encryption is
300 important in this addon, as it prevents unauthorized users from
301 sending bogus check results to Nagios. Read the included SECURITY
302 document for more information.
303
304 This package provides the send_nsca utility running on the client.
305 </longdescription>
306 <use>
307 <flag name='crypt'>
308 Build support for crypted communication with nsca, through
309 <pkg>dev-libs/mcrypt</pkg>. It's recommended not to disable this
310 flag unless all the communication will be handled in an
311 absolutely safe environment.
312 </flag>
313 <flag name='minimal'>
314 Only build and install the send_nsca command and not the
315 daemon. This allows a very minimal install with no overhead when
316 setting up a node.
317 </flag>
318 </use>
319 </pkgmetadata>
320
321
322
323
324 1.1 net-analyzer/nsca/nsca-2.7.2-r103.ebuild
325
326 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r103.ebuild?rev=1.1&view=markup
327 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r103.ebuild?rev=1.1&content-type=text/plain
328
329 Index: nsca-2.7.2-r103.ebuild
330 ===================================================================
331 # Copyright 1999-2012 Gentoo Foundation
332 # Distributed under the terms of the GNU General Public License v2
333 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r103.ebuild,v 1.1 2012/08/23 21:27:08 flameeyes Exp $
334
335 EAPI=4
336
337 inherit multilib user eutils
338
339 DESCRIPTION="Nagios NSCA - Nagios Service Check Acceptor"
340 HOMEPAGE="http://www.nagios.org/"
341 SRC_URI="mirror://sourceforge/nagios/nsca-${PV}.tar.gz"
342
343 LICENSE="GPL-2"
344 SLOT="0"
345 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
346 IUSE="tcpd +crypt minimal"
347
348 DEPEND="crypt? ( >=dev-libs/libmcrypt-2.5.1-r4 )
349 !minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )"
350
351 RDEPEND="${DEPEND}
352 !minimal? ( || ( net-analyzer/icinga net-analyzer/nagios ) )
353 sys-apps/openrc"
354
355 S="${WORKDIR}/nsca-${PV}"
356
357 pkg_setup() {
358 if ! use minimal; then
359 enewgroup nagios
360 enewgroup icinga
361 enewuser nagios -1 /bin/bash /var/nagios/home nagios
362 enewuser icinga -1 -1 /var/lib/icinga "icinga,nagios"
363 fi
364 }
365
366 src_configure() {
367 use tcpd || export ac_cv_lib_wrap_main=no
368 use crypt || export ac_cv_path_LIBMCRYPT_CONFIG=/bin/false
369
370 econf \
371 --localstatedir=/var/nagios \
372 --sysconfdir=/etc/nagios \
373 --with-nsca-user=nagios \
374 --with-nsca-grp=nagios
375 }
376
377 src_compile() {
378 emake -C src send_nsca $(usex !minimal nsca)
379
380 # prepare the alternative configuration file
381 sed \
382 -e '/ncsa_\(user\|group\)/s:nagios:icinga:' \
383 -e '/ncsa_chroot/s:=.*:=/var/lib/icinga/rw:' \
384 -e '/\(command\|alternate_dump\)_file/s:/var/nagios:/var/lib/icinga:' \
385 "${S}"/sample-config/nsca.cfg > "${T}"/nsca.icinga.cfg
386 }
387
388 src_install() {
389 dodoc LEGAL Changelog README SECURITY
390
391 dobin src/send_nsca
392
393 insinto /etc/nagios
394 doins "${S}"/sample-config/send_nsca.cfg
395
396 if ! use minimal; then
397 exeinto /usr/libexec
398 doexe src/nsca
399
400 newinitd "${FILESDIR}"/nsca.init nsca
401 newconfd "${FILESDIR}"/nsca.conf nsca
402
403 insinto /etc/nagios
404 doins "${S}"/sample-config/nsca.cfg
405
406 insinto /etc/icinga
407 newins "${T}"/nsca.icinga.cfg nsca.cfg
408 fi
409 }
410
411 pkg_postinst() {
412 if ! use minimal; then
413 elog "If you are using the nsca daemon, remember to edit"
414 elog "the config file /etc/nagios/nsca.cfg"
415 elog ""
416 elog "If you intend to use nsca with Icinga, change the"
417 elog "configuration file path in /etc/conf.d/nsca so that"
418 elog "it will default to the correct paths and users."
419 fi
420 }
421
422
423
424 1.1 net-analyzer/nsca/nsca-2.7.2-r100.ebuild
425
426 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r100.ebuild?rev=1.1&view=markup
427 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r100.ebuild?rev=1.1&content-type=text/plain
428
429 Index: nsca-2.7.2-r100.ebuild
430 ===================================================================
431 # Copyright 1999-2009 Gentoo Foundation
432 # Distributed under the terms of the GNU General Public License v2
433 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsca/nsca-2.7.2-r100.ebuild,v 1.1 2012/08/23 21:27:08 flameeyes Exp $
434
435 inherit multilib
436
437 DESCRIPTION="Nagios NSCA - Nagios Service Check Acceptor"
438 HOMEPAGE="http://www.nagios.org/"
439 SRC_URI="mirror://sourceforge/nagios/nsca-${PV}.tar.gz"
440
441 LICENSE="GPL-2"
442 SLOT="0"
443 KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
444 IUSE=""
445
446 DEPEND=">=net-analyzer/nagios-plugins-1.3.1
447 >=dev-libs/libmcrypt-2.5.1-r4"
448 S="${WORKDIR}/nsca-${PV}"
449
450 src_compile() {
451 ./configure \
452 --host=${CHOST} \
453 --prefix=/usr \
454 --localstatedir=/var/nagios \
455 --sysconfdir=/etc/nagios \
456 --with-nsca-user=nagios \
457 --with-nsca-grp=nagios \
458 --infodir=/usr/share/info \
459 --mandir=/usr/share/man || die "./configure failed"
460 emake all || die "emake failed"
461 }
462
463 src_install() {
464 dodoc LEGAL Changelog README SECURITY
465 insinto /etc/nagios
466 doins "${S}"/sample-config/nsca.cfg
467 doins "${S}"/sample-config/send_nsca.cfg
468
469 exeinto /usr/bin
470 doexe src/nsca
471 fowners nagios:nagios /usr/bin/nsca
472
473 exeinto /usr/$(get_libdir)/nagios/plugins
474 doexe src/send_nsca
475 fowners nagios:nagios /usr/$(get_libdir)/nagios/plugins/send_nsca
476 newinitd "${FILESDIR}"/nsca-nagios3 nsca
477 }
478 pkg_postinst() {
479 einfo
480 einfo "If you are using the nsca daemon, remember to edit"
481 einfo "the config file /etc/nagios/nsca.cfg"
482 einfo
483 }