1 |
flameeyes 12/08/23 23:07:06 |
2 |
|
3 |
Added: nrpe-2.13-r3.ebuild ChangeLog metadata.xml |
4 |
nrpe-2.13-r2.ebuild nrpe-2.12-r102.ebuild |
5 |
Log: |
6 |
Move from net-analyzer/nagios-nrpe to net-analyzer/nrpe, 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/nrpe/nrpe-2.13-r3.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r3.ebuild?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r3.ebuild?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: nrpe-2.13-r3.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/nrpe/nrpe-2.13-r3.ebuild,v 1.1 2012/08/23 23:07:05 flameeyes Exp $ |
21 |
|
22 |
EAPI=4 |
23 |
|
24 |
inherit eutils toolchain-funcs multilib user autotools |
25 |
|
26 |
DESCRIPTION="Nagios Remote Plugin Executor" |
27 |
HOMEPAGE="http://www.nagios.org/" |
28 |
SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" |
29 |
|
30 |
LICENSE="GPL-2" |
31 |
SLOT="0" |
32 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
33 |
IUSE="command-args ssl tcpd" |
34 |
|
35 |
DEPEND=">=net-analyzer/nagios-plugins-1.3.0 |
36 |
ssl? ( dev-libs/openssl ) |
37 |
tcpd? ( sys-apps/tcp-wrappers )" |
38 |
RDEPEND="${DEPEND}" |
39 |
|
40 |
S="${WORKDIR}/nrpe-${PV}" |
41 |
|
42 |
pkg_setup() { |
43 |
enewgroup nagios |
44 |
enewuser nagios -1 /bin/bash /dev/null nagios |
45 |
|
46 |
elog "If you plan to use \"nrpe_check_control\" then you may want to specify" |
47 |
elog "different command and services files. You can override the defaults" |
48 |
elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" environment variables." |
49 |
elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}" |
50 |
elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}" |
51 |
} |
52 |
|
53 |
src_prepare() { |
54 |
# Add support for large output, |
55 |
# http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html |
56 |
epatch "${FILESDIR}/nagios-nrpe-2.13-multiline.patch" |
57 |
|
58 |
# TCP wrappers conditional, bug 326367 |
59 |
epatch "${FILESDIR}/nagios-nrpe-2.13-tcpd.patch" |
60 |
# Make command-args really conditional, bug 397603 |
61 |
epatch "${FILESDIR}/nagios-nrpe-2.13-command-args.patch" |
62 |
|
63 |
sed -i -e '/define \(COMMAND\|SERVICES\)_FILE/d' contrib/nrpe_check_control.c || die |
64 |
|
65 |
sed -i -e \ |
66 |
"s#pid_file=/var/run/nrpe.pid#pid_file=/var/run/nrpe/nrpe.pid#" \ |
67 |
sample-config//nrpe.cfg.in || die "sed failed" |
68 |
|
69 |
eautoreconf |
70 |
} |
71 |
|
72 |
src_configure() { |
73 |
econf \ |
74 |
--libexecdir=/usr/$(get_libdir)/nagios/plugins \ |
75 |
--localstatedir=/var/nagios \ |
76 |
--sysconfdir=/etc/nagios \ |
77 |
--with-nrpe-user=nagios \ |
78 |
--with-nrpe-group=nagios \ |
79 |
$(use_enable ssl) \ |
80 |
$(use_enable tcpd tcp-wrapper) \ |
81 |
$(use_enable command-args) |
82 |
} |
83 |
|
84 |
src_compile() { |
85 |
emake all |
86 |
|
87 |
# Add nifty nrpe check tool |
88 |
$(tc-getCC) ${CPPFLAGS} ${CFLAGS} \ |
89 |
-DCOMMAND_FILE=\"${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}\" \ |
90 |
-DSERVICES_FILE=\"${NAGIOS_SERVICES_FILE:-/etc/services.cfg}\" \ |
91 |
${LDFLAGS} -o nrpe_check_control contrib/nrpe_check_control.c || die |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
insinto /etc/nagios |
96 |
newins sample-config/nrpe.cfg nrpe.cfg |
97 |
fowners root:nagios /etc/nagios/nrpe.cfg |
98 |
fperms 0640 /etc/nagios/nrpe.cfg |
99 |
|
100 |
exeinto /usr/libexec |
101 |
doexe src/nrpe |
102 |
|
103 |
newinitd "${FILESDIR}"/nrpe.init nrpe |
104 |
|
105 |
dodoc LEGAL Changelog README SECURITY \ |
106 |
contrib/README.nrpe_check_control \ |
107 |
$(usex ssl README.SSL) |
108 |
|
109 |
insinto /etc/xinetd.d/ |
110 |
doins "${FILESDIR}/nrpe.xinetd.2" |
111 |
|
112 |
exeinto /usr/$(get_libdir)/nagios/plugins |
113 |
doexe src/check_nrpe nrpe_check_control |
114 |
} |
115 |
|
116 |
pkg_postinst() { |
117 |
elog "If you are using the nrpe daemon, remember to edit" |
118 |
elog "the config file /etc/nagios/nrpe.cfg" |
119 |
|
120 |
if use command-args ; then |
121 |
ewarn "" |
122 |
ewarn "You have enabled command-args for NRPE. This enables" |
123 |
ewarn "the ability for clients to supply arguments to commands" |
124 |
ewarn "which should be run. " |
125 |
ewarn "THIS IS CONSIDERED A SECURITY RISK!" |
126 |
ewarn "Please read /usr/share/doc/${PF}/SECURITY.bz2 for more info" |
127 |
fi |
128 |
} |
129 |
|
130 |
|
131 |
|
132 |
1.1 net-analyzer/nrpe/ChangeLog |
133 |
|
134 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/ChangeLog?rev=1.1&view=markup |
135 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/ChangeLog?rev=1.1&content-type=text/plain |
136 |
|
137 |
Index: ChangeLog |
138 |
=================================================================== |
139 |
# ChangeLog for net-analyzer/nagios-nrpe |
140 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
141 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/ChangeLog,v 1.1 2012/08/23 23:07:05 flameeyes Exp $ |
142 |
|
143 |
*nagios-nrpe-2.13-r3 (23 Aug 2012) |
144 |
|
145 |
23 Aug 2012; Diego E. Pettenò <flameeyes@g.o> +files/nrpe.init, |
146 |
+files/nrpe.xinetd.2, +nagios-nrpe-2.13-r3.ebuild, -files/multiline.patch, |
147 |
-nagios-nrpe-2.12-r103.ebuild, nagios-nrpe-2.13-r2.ebuild: |
148 |
Remove old; revision bump to cleanup install, improve init script, always |
149 |
install xinetd file as other packages do. Prepare for pkgmove. |
150 |
|
151 |
19 Aug 2012; Diego E. Pettenò <flameeyes@g.o> metadata.xml: |
152 |
Re-assign to sysadmin herd. |
153 |
|
154 |
15 Jul 2012; Raúl Porcel <armin76@g.o> nagios-nrpe-2.13-r2.ebuild: |
155 |
alpha/sparc stable wrt #397603 |
156 |
|
157 |
14 Jun 2012; Michael Weber <xmw@g.o> nagios-nrpe-2.13-r2.ebuild: |
158 |
ppc stable (bug 397603) |
159 |
|
160 |
14 Jun 2012; Jeff Horelick <jdhore@g.o> nagios-nrpe-2.13-r2.ebuild: |
161 |
marked x86 per bug 397603 |
162 |
|
163 |
13 Jun 2012; Jeroen Roovers <jer@g.o> nagios-nrpe-2.13-r2.ebuild: |
164 |
Stable for HPPA (bug #397603). |
165 |
|
166 |
12 Jun 2012; Agostino Sarubbo <ago@g.o> nagios-nrpe-2.13-r2.ebuild: |
167 |
Stable for amd64, wrt bug #397603 |
168 |
|
169 |
*nagios-nrpe-2.13-r2 (11 Jun 2012) |
170 |
|
171 |
11 Jun 2012; Christian Ruppert <idl0r@g.o> |
172 |
-nagios-nrpe-2.13-r1.ebuild, +nagios-nrpe-2.13-r2.ebuild: |
173 |
Typo |
174 |
|
175 |
*nagios-nrpe-2.13-r1 (10 Jun 2012) |
176 |
|
177 |
10 Jun 2012; Christian Ruppert <idl0r@g.o> -nagios-nrpe-2.13.ebuild, |
178 |
+nagios-nrpe-2.13-r1.ebuild, +files/nagios-nrpe-2.13-command-args.patch: |
179 |
Fix command-args option, bug 397603. |
180 |
|
181 |
07 Jun 2012; Christian Ruppert <idl0r@g.o> metadata.xml, |
182 |
nagios-nrpe-2.12-r102.ebuild, nagios-nrpe-2.12-r103.ebuild: |
183 |
Fix some repoman complains |
184 |
|
185 |
*nagios-nrpe-2.13 (07 Jun 2012) |
186 |
|
187 |
07 Jun 2012; Christian Ruppert <idl0r@g.o> +nagios-nrpe-2.13.ebuild, |
188 |
+files/nagios-nrpe-2.13-multiline.patch, +files/nagios-nrpe-2.13-tcpd.patch, |
189 |
+files/nrpe.xinetd, +files/nrpe-nagios3-r1: |
190 |
Version bump, fixes bug 410891, 289733, 326367, 367257, 398175, 410171 and |
191 |
418297. Thanks to all reporters/contributors. |
192 |
|
193 |
29 Apr 2012; Tobias Klausmann <klausman@g.o> files/nrpe-nagios3: |
194 |
Fix init script to not trigger warnings on newer versions of OpenRC |
195 |
|
196 |
04 Apr 2012; Jeroen Roovers <jer@g.o> -files/nrpe: |
197 |
Unused. |
198 |
|
199 |
09 Feb 2012; Pacho Ramos <pacho@g.o> metadata.xml: |
200 |
Drop maintainer due retirement, bug #85926 |
201 |
|
202 |
08 Jul 2011; Samuli Suominen <ssuominen@g.o> |
203 |
nagios-nrpe-2.12-r102.ebuild, nagios-nrpe-2.12-r103.ebuild: |
204 |
Convert from "useq" to "use". |
205 |
|
206 |
04 Nov 2010; Tobias Scherbaum <dertobi123@g.o> |
207 |
+nagios-nrpe-2.12-r103.ebuild, -nagios-nrpe-2.12-r104.ebuild: |
208 |
Revert revbump, restore -r103 (#289722) |
209 |
|
210 |
*nagios-nrpe-2.12-r104 (31 Oct 2010) |
211 |
|
212 |
31 Oct 2010; Tobias Scherbaum <dertobi123@g.o> |
213 |
-nagios-nrpe-2.12.ebuild, -nagios-nrpe-2.12-r1.ebuild, |
214 |
-nagios-nrpe-2.12-r103.ebuild, +nagios-nrpe-2.12-r104.ebuild: |
215 |
Remove command-args use flag, as it pretty much does nothing anyways ... |
216 |
(#289722) |
217 |
|
218 |
*nagios-nrpe-2.12-r103 (31 Dec 2009) |
219 |
|
220 |
31 Dec 2009; Tobias Scherbaum <dertobi123@g.o> |
221 |
+nagios-nrpe-2.12-r103.ebuild, +files/multiline.patch: |
222 |
Revbump, add support for large, multiline output (#264467). Also do |
223 |
respect LDFALGS when building nrpe_check_control. |
224 |
|
225 |
18 Mar 2009; Brent Baude <ranger@g.o> nagios-nrpe-2.12-r102.ebuild: |
226 |
Marking nagios-nrpe-2.12-r102 ppc stable for bug 256177 |
227 |
|
228 |
07 Mar 2009; Markus Meier <maekke@g.o> |
229 |
nagios-nrpe-2.12-r102.ebuild: |
230 |
amd64/x86 stable, bug #256177 |
231 |
|
232 |
04 Mar 2009; Ferris McCormick <fmccor@g.o> |
233 |
nagios-nrpe-2.12-r102.ebuild: |
234 |
Sparc stable, part of Bug #256177. |
235 |
|
236 |
06 Feb 2009; Jeroen Roovers <jer@g.o> nagios-nrpe-2.12-r102.ebuild: |
237 |
Stable for HPPA (bug #256177). |
238 |
|
239 |
01 Feb 2009; Tobias Klausmann <klausman@g.o> |
240 |
nagios-nrpe-2.12-r102.ebuild: |
241 |
Stable on alpha, bug #256177 |
242 |
|
243 |
26 Jan 2009; Brent Baude <ranger@g.o> nagios-nrpe-2.12-r102.ebuild: |
244 |
Marking nagios-nrpe-2.12-r102 ppc64 stable for bug 256177 |
245 |
|
246 |
04 Aug 2008; Jeroen Roovers <jer@g.o> metadata.xml: |
247 |
Describe local USE flags for GLEP 56. |
248 |
|
249 |
*nagios-nrpe-2.12-r102 (04 Aug 2008) |
250 |
*nagios-nrpe-2.12-r1 (04 Aug 2008) |
251 |
|
252 |
04 Aug 2008; Tobias Scherbaum <dertobi123@g.o> |
253 |
+nagios-nrpe-2.12-r1.ebuild, -nagios-nrpe-2.12-r101.ebuild, |
254 |
+nagios-nrpe-2.12-r102.ebuild: |
255 |
Create pidfile in /var/run/nrpe (#233859) |
256 |
|
257 |
02 Jul 2008; Jeroen Roovers <jer@g.o> nagios-nrpe-2.12.ebuild: |
258 |
Stable for HPPA (LuckyLuke). |
259 |
|
260 |
27 Jun 2008; Tobias Scherbaum <dertobi123@g.o> |
261 |
-nagios-nrpe-2.10.ebuild: |
262 |
Clean old versions |
263 |
|
264 |
27 Jun 2008; Tobias Scherbaum <dertobi123@g.o> |
265 |
nagios-nrpe-2.12.ebuild: |
266 |
AMD64 stable, #224019 |
267 |
|
268 |
05 Jun 2008; Friedrich Oslage <bluebird@g.o> |
269 |
nagios-nrpe-2.12.ebuild: |
270 |
stable on sparc, bug 224019 |
271 |
|
272 |
04 Jun 2008; Markus Rothe <corsair@g.o> nagios-nrpe-2.12.ebuild: |
273 |
Stable on ppc64; bug #224019 |
274 |
|
275 |
01 Jun 2008; Christian Faulhammer <opfer@g.o> |
276 |
nagios-nrpe-2.12.ebuild: |
277 |
stable x86, bug 224019 |
278 |
|
279 |
31 May 2008; Tobias Scherbaum <dertobi123@g.o> |
280 |
nagios-nrpe-2.12.ebuild, nagios-nrpe-2.12-r101.ebuild: |
281 |
Add ~hppa, #224019 |
282 |
|
283 |
*nagios-nrpe-2.12-r101 (27 Apr 2008) |
284 |
|
285 |
27 Apr 2008; Tobias Scherbaum <dertobi123@g.o> |
286 |
+nagios-nrpe-2.12-r101.ebuild: |
287 |
bump for nagios-3 |
288 |
|
289 |
14 Mar 2008; Caleb Tennis <caleb@g.o> nagios-nrpe-2.10.ebuild: |
290 |
amd64 stable, per bug #205335 |
291 |
|
292 |
*nagios-nrpe-2.12 (14 Mar 2008) |
293 |
|
294 |
14 Mar 2008; Tobias Scherbaum <dertobi123@g.o> -files/nrpe-2.5.1, |
295 |
-nagios-nrpe-2.5.1.ebuild, +nagios-nrpe-2.12.ebuild: |
296 |
Version bump as per #213317, thanks to Krzysztof Olędzki |
297 |
|
298 |
05 Feb 2008; Markus Rothe <corsair@g.o> nagios-nrpe-2.10.ebuild: |
299 |
Stable on ppc64 |
300 |
|
301 |
21 Jan 2008; Raúl Porcel <armin76@g.o> nagios-nrpe-2.10.ebuild: |
302 |
sparc stable wrt #205335 |
303 |
|
304 |
12 Jan 2008; Dawid Węgliński <cla@g.o> nagios-nrpe-2.10.ebuild: |
305 |
Stable on x86 (bug #205335) |
306 |
|
307 |
*nagios-nrpe-2.10 (04 Dec 2007) |
308 |
|
309 |
04 Dec 2007; Tobias Scherbaum <dertobi123@g.o> |
310 |
-nagios-nrpe-2.8.1.ebuild, +nagios-nrpe-2.10.ebuild: |
311 |
Version bump, bug #199338 |
312 |
|
313 |
02 Jul 2007; Piotr Jaroszyński <peper@g.o> |
314 |
nagios-nrpe-2.5.1.ebuild, nagios-nrpe-2.8.1.ebuild: |
315 |
(QA) RESTRICT clean up. |
316 |
|
317 |
*nagios-nrpe-2.8.1 (10 Jun 2007) |
318 |
|
319 |
10 Jun 2007; Tobias Scherbaum <dertobi123@g.o> -files/nrpe-1.8, |
320 |
-files/nrpe-1.8.cfg, -files/nrpe-2.3, -files/nrpe-2.5.2, |
321 |
-nagios-nrpe-1.8-r1.ebuild, -nagios-nrpe-2.3.ebuild, |
322 |
-nagios-nrpe-2.5.2.ebuild, -nagios-nrpe-2.5.2-r1.ebuild, |
323 |
-nagios-nrpe-2.7.1-r2.ebuild, +nagios-nrpe-2.8.1.ebuild: |
324 |
Version bump, clean out old versions. |
325 |
|
326 |
*nagios-nrpe-2.7.1-r2 (06 Jun 2007) |
327 |
|
328 |
06 Jun 2007; Markus Ullmann <jokey@g.o> |
329 |
-nagios-nrpe-2.7.1-r1.ebuild, +nagios-nrpe-2.7.1-r2.ebuild: |
330 |
Fix revdep-rebuild bug #146667 |
331 |
|
332 |
28 Apr 2007; Sven Wegener <swegener@g.o> nagios-nrpe-1.8-r1.ebuild, |
333 |
nagios-nrpe-2.3.ebuild, nagios-nrpe-2.5.2.ebuild: |
334 |
Fix *initd, *confd and *envd calls (#173884, #174266) |
335 |
|
336 |
28 Apr 2007; Torsten Veller <tove@g.o> nagios-nrpe-2.5.1.ebuild, |
337 |
nagios-nrpe-2.5.2-r1.ebuild, nagios-nrpe-2.7.1-r1.ebuild: |
338 |
Use newinitd |
339 |
|
340 |
13 Mar 2007; Martin Jackson <mjolnir@g.o> +files/nrpe, |
341 |
-nagios-nrpe-2.7.1.ebuild, +nagios-nrpe-2.7.1-r1.ebuild: |
342 |
Install nrpe init.d script to fix #170547 |
343 |
|
344 |
*nagios-nrpe-2.7.1-r1 (12 Mar 2007) |
345 |
|
346 |
12 Mar 2007; <> nagios-nrpe-2.7.1-r1.ebuild files/digest-nagios-nrpe-2.7.1-r1 |
347 |
# INSERT ENTRY HERE |
348 |
|
349 |
*nagios-nrpe-2.7.1 (12 Mar 2007) |
350 |
|
351 |
12 Mar 2007; Martin Jackson <mjolnir@g.o> |
352 |
+nagios-nrpe-2.7.1.ebuild: |
353 |
Version bump to 2.7.1 |
354 |
|
355 |
20 Feb 2007; Markus Ullmann <jokey@g.o> ChangeLog: |
356 |
Redigest for Manifest2 |
357 |
|
358 |
21 Oct 2006; Thomas Cort <tcort@g.o> nagios-nrpe-2.5.2-r1.ebuild: |
359 |
Added ~alpha keyword wrt Bug #110130. |
360 |
|
361 |
*nagios-nrpe-2.5.2-r1 (18 Sep 2006) |
362 |
|
363 |
18 Sep 2006; Benjamin Smee <strerror@g.o> |
364 |
+nagios-nrpe-2.5.2-r1.ebuild: |
365 |
fix for revdep-rebuild issues bug #146667 |
366 |
|
367 |
17 Aug 2006; Gustavo Zacarias <gustavoz@g.o> |
368 |
nagios-nrpe-2.5.1.ebuild: |
369 |
Stable on sparc |
370 |
|
371 |
06 Jul 2006; Markus Rothe <corsair@g.o> nagios-nrpe-2.5.1.ebuild: |
372 |
Stable on ppc64 |
373 |
|
374 |
04 Jul 2006; Lance Albertson <ramereth@g.o> +files/nrpe-2.5.2: |
375 |
* Add init script (forgot it before!) |
376 |
|
377 |
*nagios-nrpe-2.5.2 (04 Jul 2006) |
378 |
|
379 |
04 Jul 2006; Lance Albertson <ramereth@g.o> -files/nrpe-2.0, |
380 |
-files/nrpe-2.0.cfg, -nagios-nrpe-2.0.ebuild, -nagios-nrpe-2.0-r1.ebuild, |
381 |
nagios-nrpe-2.5.1.ebuild, +nagios-nrpe-2.5.2.ebuild: |
382 |
* Version bump |
383 |
* Marked 2.5.1 stable on x86 |
384 |
* Removed old ebuilds/files |
385 |
|
386 |
07 May 2006; Markus Rothe <corsair@g.o> nagios-nrpe-2.3.ebuild: |
387 |
Stable on ppc64 |
388 |
|
389 |
05 May 2006; Gustavo Zacarias <gustavoz@g.o> |
390 |
nagios-nrpe-2.3.ebuild: |
391 |
Stable on sparc wrt security #132159 |
392 |
|
393 |
*nagios-nrpe-2.5.1 (27 Apr 2006) |
394 |
|
395 |
27 Apr 2006; Lance Albertson <ramereth@g.o> +files/nrpe-2.5.1, |
396 |
nagios-nrpe-2.3.ebuild, +nagios-nrpe-2.5.1.ebuild: |
397 |
* Version bump |
398 |
* Added reload to init script (2.5.1 added this feature) |
399 |
* Stable on x86 (2.3) |
400 |
|
401 |
07 Feb 2006; Simon Stelling <blubb@g.o> nagios-nrpe-2.0-r1.ebuild: |
402 |
stable on amd64 |
403 |
|
404 |
*nagios-nrpe-2.3 (04 Feb 2006) |
405 |
|
406 |
04 Feb 2006; Lance Albertson <ramereth@g.o> +files/nrpe-2.3, |
407 |
metadata.xml, +nagios-nrpe-2.3.ebuild: |
408 |
* Version bump |
409 |
|
410 |
20 Nov 2005; Lance Albertson <ramereth@g.o> |
411 |
nagios-nrpe-2.0-r1.ebuild: |
412 |
* Clean up how the binaries are installed in the ebuild |
413 |
|
414 |
07 Oct 2005; Gustavo Zacarias <gustavoz@g.o> |
415 |
nagios-nrpe-2.0-r1.ebuild: |
416 |
Stable on sparc |
417 |
|
418 |
09 Sep 2005; Lance Albertson <ramereth@g.o> |
419 |
nagios-nrpe-2.0-r1.ebuild: |
420 |
* Marked stable on x86 |
421 |
|
422 |
*nagios-nrpe-2.0-r1 (10 Jul 2005) |
423 |
|
424 |
10 Jul 2005; Lance Albertson <ramereth@g.o> |
425 |
+nagios-nrpe-2.0-r1.ebuild: |
426 |
* Added configure option for command-args |
427 |
* Added nrpe_check_control from contrib |
428 |
|
429 |
03 May 2005; Eldad Zack <eldad@g.o> nagios-nrpe-1.8-r1.ebuild, |
430 |
nagios-nrpe-2.0.ebuild: |
431 |
Changed perms for check_nrpe and nrpe to 0750. |
432 |
|
433 |
13 Apr 2005; Eldad Zack <eldad@g.o> nagios-nrpe-1.8-r1.ebuild, |
434 |
nagios-nrpe-2.0.ebuild: |
435 |
tighter perms for /etc/nagios/nrpe.cfg. Thanks to Romang <zataz@×××××.net>. |
436 |
Bug #88937. |
437 |
|
438 |
20 Mar 2005; Eldad Zack <eldad@g.o> nagios-nrpe-2.0.ebuild: |
439 |
Generate the dh.h header file for better security. |
440 |
|
441 |
11 Dec 2004; Benjamin Schindler <config@g.o> |
442 |
nagios-nrpe-2.0.ebuild: |
443 |
Stable on amd64 |
444 |
|
445 |
30 Nov 2004; Sven Wegener <swegener@g.o> nagios-nrpe-2.0.ebuild: |
446 |
Fixed invalid atoms in *DEPEND. |
447 |
|
448 |
25 Oct 2004; Eldad Zack <eldad@g.o> nagios-nrpe-2.0.ebuild: |
449 |
Now featuring SSL useflag, as suggested by Christian Theune <ct@××××××.com>. |
450 |
Closes #68704. |
451 |
|
452 |
24 Oct 2004; Jason Wever <weeve@g.o> nagios-nrpe-2.0.ebuild: |
453 |
Stable on sparc. |
454 |
|
455 |
18 Mar 2004; Philip Walls <malverian@g.o> nagios-nrpe-2.0.ebuild |
456 |
Stable on x86 and amd64 |
457 |
|
458 |
*nagios-nrpe-2.0 (10 Mar 2004) |
459 |
10 Mar 2004; Philip Walls <malverian@g.o> nagios-nrpe-2.0.ebuild |
460 |
Version bump. Removed old nrpe init script and nrpe.cfg. Added metadata |
461 |
|
462 |
*nagios-nrpe-1.8-r1 (17 Jun 2003) |
463 |
06 Dec 2003; Heinrich Wendel <lanius@g.o> nagios-nrpe-1.8-r1.ebuild: |
464 |
bug 34355 |
465 |
|
466 |
17 Jun 2003; Dean Bailey <alron@g.o> nagios-nrpe-1.8-r1 : |
467 |
Fix for bugs #17885 and #19539, updated sample conf also. |
468 |
|
469 |
28 Feb 2003; Dean Bailey <alron@g.o> nagios-nrpe-1.8 : |
470 |
Moved to x86 stable |
471 |
|
472 |
*nagios-nrpe-1.8 |
473 |
09 Feb 2003; Dean Bailey <alron@g.o> nagios-nrpe-1.8 : |
474 |
Version bump |
475 |
|
476 |
15 Jan 2003; Dean Bailey <alron@g.o> nagios-nrpe-1.7 : |
477 |
Changed ~x86 to x86 and added ~sparc and ~ppc keywords |
478 |
|
479 |
*nagios-nrpe-1.7 (13 Jan 2003) |
480 |
13 Jan 2003; Dean Bailey <alron@g.o> nagios-nrpe-1.7 : |
481 |
Updated to version 1.7. |
482 |
|
483 |
*nagios-nrpe-1.5 (1 Nov 2002) |
484 |
1 Nov 2002; Dean Bailey <alron@g.o> nagios-nrpe-1.5 : |
485 |
Initial import. Ebuild submitted by Dean Bailey <alron@g.o>. |
486 |
|
487 |
|
488 |
|
489 |
1.1 net-analyzer/nrpe/metadata.xml |
490 |
|
491 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/metadata.xml?rev=1.1&view=markup |
492 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/metadata.xml?rev=1.1&content-type=text/plain |
493 |
|
494 |
Index: metadata.xml |
495 |
=================================================================== |
496 |
<?xml version="1.0" encoding="UTF-8"?> |
497 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
498 |
<pkgmetadata> |
499 |
<herd>sysadmin</herd> |
500 |
<longdescription> |
501 |
A daemon for allowing Nagios to connect directly to servers and |
502 |
execute commands defined in a centralized configuration file. |
503 |
</longdescription> |
504 |
<use> |
505 |
<flag name='command-args'>allow clients to specify command arguments</flag> |
506 |
</use> |
507 |
</pkgmetadata> |
508 |
|
509 |
|
510 |
|
511 |
1.1 net-analyzer/nrpe/nrpe-2.13-r2.ebuild |
512 |
|
513 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r2.ebuild?rev=1.1&view=markup |
514 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r2.ebuild?rev=1.1&content-type=text/plain |
515 |
|
516 |
Index: nrpe-2.13-r2.ebuild |
517 |
=================================================================== |
518 |
# Copyright 1999-2012 Gentoo Foundation |
519 |
# Distributed under the terms of the GNU General Public License v2 |
520 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r2.ebuild,v 1.1 2012/08/23 23:07:05 flameeyes Exp $ |
521 |
|
522 |
EAPI=4 |
523 |
|
524 |
inherit eutils toolchain-funcs multilib user autotools |
525 |
|
526 |
DESCRIPTION="Nagios Remote Plugin Executor" |
527 |
HOMEPAGE="http://www.nagios.org/" |
528 |
SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" |
529 |
|
530 |
LICENSE="GPL-2" |
531 |
SLOT="0" |
532 |
KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86" |
533 |
IUSE="command-args ssl tcpd xinetd" |
534 |
|
535 |
DEPEND=">=net-analyzer/nagios-plugins-1.3.0 |
536 |
ssl? ( dev-libs/openssl ) |
537 |
tcpd? ( sys-apps/tcp-wrappers )" |
538 |
RDEPEND="${DEPEND}" |
539 |
|
540 |
S="${WORKDIR}/nrpe-${PV}" |
541 |
|
542 |
RESTRICT="mirror" |
543 |
|
544 |
pkg_setup() { |
545 |
enewgroup nagios |
546 |
enewuser nagios -1 /bin/bash /dev/null nagios |
547 |
|
548 |
elog "If you plan to use \"nrpe_check_control\" then you may want to specify" |
549 |
elog "different command and services files. You can override the defaults" |
550 |
elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" environment variables." |
551 |
elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}" |
552 |
elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}" |
553 |
} |
554 |
|
555 |
src_prepare() { |
556 |
# Add support for large output, |
557 |
# http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html |
558 |
epatch "${FILESDIR}/nagios-nrpe-2.13-multiline.patch" |
559 |
|
560 |
# TCP wrappers conditional, bug 326367 |
561 |
epatch "${FILESDIR}/nagios-nrpe-2.13-tcpd.patch" |
562 |
# Make command-args really conditional, bug 397603 |
563 |
epatch "${FILESDIR}/nagios-nrpe-2.13-command-args.patch" |
564 |
|
565 |
sed -i -e "s:/usr/local/nagios/var/rw/nagios.cmd:${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}:" contrib/nrpe_check_control.c || die |
566 |
sed -i -e "s:/usr/local/nagios/etc/services.cfg:${NAGIOS_SERVICES_FILE:-/etc/services.cfg}:" contrib/nrpe_check_control.c || die |
567 |
|
568 |
sed -i -e \ |
569 |
"s#pid_file=/var/run/nrpe.pid#pid_file=/var/run/nrpe/nrpe.pid#" \ |
570 |
sample-config//nrpe.cfg.in || die "sed failed" |
571 |
|
572 |
eautoreconf |
573 |
} |
574 |
|
575 |
src_configure() { |
576 |
econf \ |
577 |
--host=${CHOST} \ |
578 |
--prefix=/usr \ |
579 |
--libexecdir=/usr/$(get_libdir)/nagios/plugins \ |
580 |
--localstatedir=/var/nagios \ |
581 |
--sysconfdir=/etc/nagios \ |
582 |
--with-nrpe-user=nagios \ |
583 |
--with-nrpe-group=nagios \ |
584 |
$(use_enable ssl) \ |
585 |
$(use_enable tcpd tcp-wrapper) \ |
586 |
$(use_enable command-args) |
587 |
} |
588 |
|
589 |
src_compile() { |
590 |
emake all |
591 |
|
592 |
# Add nifty nrpe check tool |
593 |
cd contrib |
594 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o nrpe_check_control nrpe_check_control.c || die |
595 |
} |
596 |
|
597 |
src_install() { |
598 |
insinto /etc/nagios |
599 |
newins sample-config/nrpe.cfg nrpe.cfg |
600 |
fowners root:nagios /etc/nagios/nrpe.cfg |
601 |
fperms 0640 /etc/nagios/nrpe.cfg |
602 |
|
603 |
exeopts -m 0750 -o nagios -g nagios |
604 |
exeinto /usr/bin |
605 |
doexe src/nrpe |
606 |
|
607 |
exeopts -m 0750 -o nagios -g nagios |
608 |
exeinto /usr/$(get_libdir)/nagios/plugins |
609 |
doexe src/check_nrpe contrib/nrpe_check_control |
610 |
|
611 |
exeopts -m 0755 |
612 |
newinitd "${FILESDIR}"/nrpe-nagios3-r1 nrpe |
613 |
|
614 |
dodoc LEGAL Changelog README SECURITY \ |
615 |
contrib/README.nrpe_check_control |
616 |
|
617 |
use ssl && dodoc README.SSL |
618 |
|
619 |
if use xinetd; then |
620 |
insinto /etc/xinetd.d/ |
621 |
doins "${FILESDIR}/nrpe.xinetd" |
622 |
fi |
623 |
} |
624 |
|
625 |
pkg_postinst() { |
626 |
einfo |
627 |
einfo "If you are using the nrpe daemon, remember to edit" |
628 |
einfo "the config file /etc/nagios/nrpe.cfg" |
629 |
einfo |
630 |
|
631 |
if use command-args ; then |
632 |
ewarn "You have enabled command-args for NRPE. This enables" |
633 |
ewarn "the ability for clients to supply arguments to commands" |
634 |
ewarn "which should be run. " |
635 |
ewarn "THIS IS CONSIDERED A SECURITY RISK!" |
636 |
ewarn "Please read /usr/share/doc/${PF}/SECURITY.bz2 for more info" |
637 |
fi |
638 |
} |
639 |
|
640 |
|
641 |
|
642 |
1.1 net-analyzer/nrpe/nrpe-2.12-r102.ebuild |
643 |
|
644 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.12-r102.ebuild?rev=1.1&view=markup |
645 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.12-r102.ebuild?rev=1.1&content-type=text/plain |
646 |
|
647 |
Index: nrpe-2.12-r102.ebuild |
648 |
=================================================================== |
649 |
# Copyright 1999-2012 Gentoo Foundation |
650 |
# Distributed under the terms of the GNU General Public License v2 |
651 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/nrpe-2.12-r102.ebuild,v 1.1 2012/08/23 23:07:05 flameeyes Exp $ |
652 |
|
653 |
inherit eutils toolchain-funcs user multilib |
654 |
|
655 |
DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" |
656 |
HOMEPAGE="http://www.nagios.org/" |
657 |
SRC_URI="mirror://sourceforge/nagios/nrpe-${PV}.tar.gz" |
658 |
|
659 |
RESTRICT="mirror" |
660 |
LICENSE="GPL-2" |
661 |
SLOT="0" |
662 |
|
663 |
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" |
664 |
|
665 |
IUSE="ssl command-args" |
666 |
DEPEND=">=net-analyzer/nagios-plugins-1.3.0 |
667 |
ssl? ( dev-libs/openssl )" |
668 |
RDEPEND="${DEPEND}" |
669 |
S="${WORKDIR}/nrpe-${PV}" |
670 |
|
671 |
pkg_setup() { |
672 |
enewgroup nagios |
673 |
enewuser nagios -1 /bin/bash /dev/null nagios |
674 |
} |
675 |
|
676 |
src_compile() { |
677 |
local myconf |
678 |
|
679 |
myconf="${myconf} $(use_enable ssl) \ |
680 |
$(use_enable command-args)" |
681 |
|
682 |
# Generate the dh.h header file for better security (2005 Mar 20 eldad) |
683 |
if use ssl ; then |
684 |
openssl dhparam -C 512 | sed -n '1,/BEGIN DH PARAMETERS/p' | grep -v "BEGIN DH PARAMETERS" > "${S}"/src/dh.h |
685 |
fi |
686 |
|
687 |
econf ${myconf} \ |
688 |
--host=${CHOST} \ |
689 |
--prefix=/usr \ |
690 |
--libexecdir=/usr/$(get_libdir)/nagios/plugins \ |
691 |
--localstatedir=/var/nagios \ |
692 |
--sysconfdir=/etc/nagios \ |
693 |
--with-nrpe-user=nagios \ |
694 |
--with-nrpe-grp=nagios || die "econf failed" |
695 |
emake all || die "make failed" |
696 |
# Add nifty nrpe check tool |
697 |
cd contrib |
698 |
$(tc-getCC) ${CFLAGS} -o nrpe_check_control nrpe_check_control.c |
699 |
} |
700 |
|
701 |
src_install() { |
702 |
dodoc LEGAL Changelog README SECURITY README.SSL \ |
703 |
contrib/README.nrpe_check_control |
704 |
|
705 |
insinto /etc/nagios |
706 |
newins "${S}"/sample-config/nrpe.cfg nrpe.cfg |
707 |
fowners root:nagios /etc/nagios/nrpe.cfg |
708 |
fperms 0640 /etc/nagios/nrpe.cfg |
709 |
|
710 |
exeopts -m0750 -o nagios -g nagios |
711 |
exeinto /usr/bin |
712 |
doexe src/nrpe |
713 |
|
714 |
exeopts -m0750 -o nagios -g nagios |
715 |
exeinto /usr/$(get_libdir)/nagios/plugins |
716 |
doexe src/check_nrpe contrib/nrpe_check_control |
717 |
|
718 |
newinitd "${FILESDIR}"/nrpe-nagios3 nrpe |
719 |
|
720 |
# Create pidfile in /var/run/nrpe, bug #233859 |
721 |
keepdir /var/run/nrpe |
722 |
fowners nagios:nagios /var/run/nrpe |
723 |
sed -i -e \ |
724 |
"s#pid_file=/var/run/nrpe.pid#pid_file=/var/run/nrpe/nrpe.pid#" \ |
725 |
"${D}"/etc/nagios/nrpe.cfg || die "sed failed" |
726 |
} |
727 |
|
728 |
pkg_postinst() { |
729 |
einfo |
730 |
einfo "If you are using the nrpe daemon, remember to edit" |
731 |
einfo "the config file /etc/nagios/nrpe.cfg" |
732 |
einfo |
733 |
|
734 |
if use command-args ; then |
735 |
ewarn "You have enabled command-args for NRPE. This enables" |
736 |
ewarn "the ability for clients to supply arguments to commands" |
737 |
ewarn "which should be run. " |
738 |
ewarn "THIS IS CONSIDERED A SECURITY RISK!" |
739 |
ewarn "Please read /usr/share/doc/${PF}/SECURITY.bz2 for more info" |
740 |
fi |
741 |
} |