1 |
flameeyes 12/08/24 04:54:30 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: nrpe-2.13-r4.ebuild |
5 |
Removed: nrpe-2.13-r3.ebuild |
6 |
Log: |
7 |
Fix xinetd install; remove reload function from init script when using tcpd, due to bug #289730; add minimal USE flag to not install the daemon at all. |
8 |
|
9 |
(Portage version: 2.2.0_alpha121/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.2 net-analyzer/nrpe/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/metadata.xml?rev=1.2&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/metadata.xml?rev=1.2&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/metadata.xml?r1=1.1&r2=1.2 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/metadata.xml,v |
21 |
retrieving revision 1.1 |
22 |
retrieving revision 1.2 |
23 |
diff -u -r1.1 -r1.2 |
24 |
--- metadata.xml 23 Aug 2012 23:07:05 -0000 1.1 |
25 |
+++ metadata.xml 24 Aug 2012 04:54:29 -0000 1.2 |
26 |
@@ -7,6 +7,14 @@ |
27 |
execute commands defined in a centralized configuration file. |
28 |
</longdescription> |
29 |
<use> |
30 |
- <flag name='command-args'>allow clients to specify command arguments</flag> |
31 |
+ <flag name='command-args'> |
32 |
+ Build support for specifying the command-line arguments from the |
33 |
+ Nagios/Icinga master. Make sure you understand the implications |
34 |
+ of this flag as it can be a security risk. |
35 |
+ </flag> |
36 |
+ |
37 |
+ <flag name='minimal'> |
38 |
+ Only build the check plugins for Nagios/Icinga, and not the daemon. |
39 |
+ </flag> |
40 |
</use> |
41 |
</pkgmetadata> |
42 |
|
43 |
|
44 |
|
45 |
1.2 net-analyzer/nrpe/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/ChangeLog?rev=1.2&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/ChangeLog?rev=1.2&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/ChangeLog?r1=1.1&r2=1.2 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/ChangeLog,v |
54 |
retrieving revision 1.1 |
55 |
retrieving revision 1.2 |
56 |
diff -u -r1.1 -r1.2 |
57 |
--- ChangeLog 23 Aug 2012 23:07:05 -0000 1.1 |
58 |
+++ ChangeLog 24 Aug 2012 04:54:29 -0000 1.2 |
59 |
@@ -1,6 +1,13 @@ |
60 |
-# ChangeLog for net-analyzer/nagios-nrpe |
61 |
+# ChangeLog for net-analyzer/nrpe |
62 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/ChangeLog,v 1.1 2012/08/23 23:07:05 flameeyes Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/ChangeLog,v 1.2 2012/08/24 04:54:29 flameeyes Exp $ |
65 |
+ |
66 |
+*nrpe-2.13-r4 (24 Aug 2012) |
67 |
+ |
68 |
+ 24 Aug 2012; Diego E. Pettenò <flameeyes@g.o> +nrpe-2.13-r4.ebuild, |
69 |
+ -nrpe-2.13-r3.ebuild, metadata.xml: |
70 |
+ Fix xinetd install; remove reload function from init script when using tcpd, |
71 |
+ due to bug #289730; add minimal USE flag to not install the daemon at all. |
72 |
|
73 |
*nagios-nrpe-2.13-r3 (23 Aug 2012) |
74 |
|
75 |
|
76 |
|
77 |
|
78 |
1.1 net-analyzer/nrpe/nrpe-2.13-r4.ebuild |
79 |
|
80 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r4.ebuild?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r4.ebuild?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: nrpe-2.13-r4.ebuild |
84 |
=================================================================== |
85 |
# Copyright 1999-2012 Gentoo Foundation |
86 |
# Distributed under the terms of the GNU General Public License v2 |
87 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nrpe/nrpe-2.13-r4.ebuild,v 1.1 2012/08/24 04:54:29 flameeyes Exp $ |
88 |
|
89 |
EAPI=4 |
90 |
|
91 |
inherit eutils toolchain-funcs multilib user autotools |
92 |
|
93 |
DESCRIPTION="Nagios Remote Plugin Executor" |
94 |
HOMEPAGE="http://www.nagios.org/" |
95 |
SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz" |
96 |
|
97 |
LICENSE="GPL-2" |
98 |
SLOT="0" |
99 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
100 |
IUSE="command-args ssl tcpd minimal" |
101 |
|
102 |
DEPEND="ssl? ( dev-libs/openssl ) |
103 |
!minimal? ( tcpd? ( sys-apps/tcp-wrappers ) )" |
104 |
RDEPEND="${DEPEND} |
105 |
!minimal? ( >=net-analyzer/nagios-plugins-1.3.0 )" |
106 |
|
107 |
pkg_setup() { |
108 |
enewgroup nagios |
109 |
enewuser nagios -1 /bin/bash /dev/null nagios |
110 |
|
111 |
elog "If you plan to use \"nrpe_check_control\" then you may want to specify" |
112 |
elog "different command and services files. You can override the defaults" |
113 |
elog "through the \"NAGIOS_COMMAND_FILE\" and \"NAGIOS_SERVICES_FILE\" environment variables." |
114 |
elog "NAGIOS_COMMAND_FILE=${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}" |
115 |
elog "NAGIOS_SERVICES_FILE=${NAGIOS_SERVICES_FILE:-/etc/services.cfg}" |
116 |
} |
117 |
|
118 |
src_prepare() { |
119 |
# Add support for large output, |
120 |
# http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html |
121 |
epatch "${FILESDIR}/nagios-nrpe-2.13-multiline.patch" |
122 |
|
123 |
# TCP wrappers conditional, bug 326367 |
124 |
epatch "${FILESDIR}/nagios-nrpe-2.13-tcpd.patch" |
125 |
# Make command-args really conditional, bug 397603 |
126 |
epatch "${FILESDIR}/nagios-nrpe-2.13-command-args.patch" |
127 |
|
128 |
sed -i -e '/define \(COMMAND\|SERVICES\)_FILE/d' contrib/nrpe_check_control.c || die |
129 |
|
130 |
eautoreconf |
131 |
} |
132 |
|
133 |
src_configure() { |
134 |
local myconf |
135 |
if use minimal; then |
136 |
myconf="--disable-tcp-wrapper --disable-command-args" |
137 |
else |
138 |
myconf="$(use_enable tcpd tcp-wrapper) $(use_enable command-args)" |
139 |
fi |
140 |
|
141 |
econf \ |
142 |
--libexecdir=/usr/$(get_libdir)/nagios/plugins \ |
143 |
--localstatedir=/var/nagios \ |
144 |
--sysconfdir=/etc/nagios \ |
145 |
--with-nrpe-user=nagios \ |
146 |
--with-nrpe-group=nagios \ |
147 |
$(use_enable ssl) \ |
148 |
${myconf} |
149 |
} |
150 |
|
151 |
src_compile() { |
152 |
emake -C src check_nrpe $(usex !minimal nrpe) |
153 |
|
154 |
# Add nifty nrpe check tool |
155 |
$(tc-getCC) ${CPPFLAGS} ${CFLAGS} \ |
156 |
-DCOMMAND_FILE=\"${NAGIOS_COMMAND_FILE:-/var/rw/nagios.cmd}\" \ |
157 |
-DSERVICES_FILE=\"${NAGIOS_SERVICES_FILE:-/etc/services.cfg}\" \ |
158 |
${LDFLAGS} -o nrpe_check_control contrib/nrpe_check_control.c || die |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
dodoc LEGAL Changelog README SECURITY \ |
163 |
contrib/README.nrpe_check_control \ |
164 |
$(usex ssl README.SSL) |
165 |
|
166 |
exeinto /usr/$(get_libdir)/nagios/plugins |
167 |
doexe src/check_nrpe nrpe_check_control |
168 |
|
169 |
use minimal && return 0 |
170 |
|
171 |
## NON-MINIMAL INSTALL FOLLOWS ## |
172 |
|
173 |
insinto /etc/nagios |
174 |
newins sample-config/nrpe.cfg nrpe.cfg |
175 |
fowners root:nagios /etc/nagios/nrpe.cfg |
176 |
fperms 0640 /etc/nagios/nrpe.cfg |
177 |
|
178 |
exeinto /usr/libexec |
179 |
doexe src/nrpe |
180 |
|
181 |
newinitd "${FILESDIR}"/nrpe.init nrpe |
182 |
|
183 |
insinto /etc/xinetd.d/ |
184 |
newins "${FILESDIR}/nrpe.xinetd.2" nrpe |
185 |
|
186 |
if use tcpd; then |
187 |
sed -i -e '/^reload()/, /^}/ d' -e '/extra_started_commands/s:reload::' \ |
188 |
"${D}"/etc/init.d/nrpe |
189 |
fi |
190 |
} |
191 |
|
192 |
pkg_postinst() { |
193 |
elog "If you are using the nrpe daemon, remember to edit" |
194 |
elog "the config file /etc/nagios/nrpe.cfg" |
195 |
|
196 |
if use command-args ; then |
197 |
ewarn "" |
198 |
ewarn "You have enabled command-args for NRPE. This enables" |
199 |
ewarn "the ability for clients to supply arguments to commands" |
200 |
ewarn "which should be run. " |
201 |
ewarn "THIS IS CONSIDERED A SECURITY RISK!" |
202 |
ewarn "Please read /usr/share/doc/${PF}/SECURITY.bz2 for more info" |
203 |
fi |
204 |
} |