Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-core/
Date: Sun, 02 Dec 2018 16:02:46
Message-Id: 1543766493.148ccec5856bf101bcfc7789947c2d070e8c6107.mjo@gentoo
1 commit: 148ccec5856bf101bcfc7789947c2d070e8c6107
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 2 15:59:26 2018 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 2 16:01:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=148ccec5
7
8 net-analyzer/nagios-core: remove "unused" nagios-core-4.4.{0,1} ebuilds.
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 net-analyzer/nagios-core/Manifest | 2 -
14 net-analyzer/nagios-core/nagios-core-4.4.0.ebuild | 214 ---------------------
15 net-analyzer/nagios-core/nagios-core-4.4.1.ebuild | 218 ----------------------
16 3 files changed, 434 deletions(-)
17
18 diff --git a/net-analyzer/nagios-core/Manifest b/net-analyzer/nagios-core/Manifest
19 index bb184319683..073ae5bd3c8 100644
20 --- a/net-analyzer/nagios-core/Manifest
21 +++ b/net-analyzer/nagios-core/Manifest
22 @@ -1,6 +1,4 @@
23 DIST nagios-4.3.3.tar.gz 11101531 BLAKE2B 537d49ecf28b457fbc1e24eaaa9c5d9e8c4db59ed69c91a573c0cacb6cfb6fd2d52c31e87c0cef34b81a69247bb5b9513983d95e7eae3ea7f861742da485d2d4 SHA512 588292a95342cb2d95d7b58f70442b82b99a23dd9fdc1390e9ae0743626a047e5127d77b1d7e6a1d8edd6f34a425e581bcd42459b673a0ddea14125bde4b7d9e
24 DIST nagios-4.3.4.tar.gz 11101966 BLAKE2B 6cb8182f40a4f83875c94df040bb1c62ce078d4130e10fa8595ea0b14cf715fc2a237ffb34199da9c1528e4789f3ce8deae3d993b5b795ad712d48b1e5fdb820 SHA512 f4e92aa98151739442a225a245871d93b5560d89510bdacb1a615959b9687f7a92675f10fcba71078b104ca8f237b0155a9261d67ec66f80aec7f033b4b3e316
25 -DIST nagios-4.4.0.tar.gz 11295727 BLAKE2B f89e7934b13814ec8c0ae7a19f14eed8842c7b0044fb2812f1399f27a82e5a639b63cc53f04b58ae99aa87bf595b2e25642ad3eb134a041e39f744919bd46d2f SHA512 8c136463133cf26c756ccd39b158ed417297e30f8a0b12d063a4dba6a43f126b27bb5f7ea962c8cde9fb9c1fd8d3439d7cfeaab833045315a9800c993fa0676f
26 -DIST nagios-4.4.1.tar.gz 11296403 BLAKE2B fdbaec5f913d18d5591f44cd1e0622b9741d7415b591f24f1521f2897b8a1bdbff00e9378ef6b3a6a99ab8d639960abd3d734fd66b665ea88ea1de169b552ace SHA512 d84f22a8fd21a573b4162f232c3a6bb2ba0b7d3a470e5fd80183a1862d2ae666956cfc2dd4c7fe6319ee7ccedb9f8a6920ba39a6b499ed9ff5b8be60a9779fa9
27 DIST nagios-4.4.2.tar.gz 11301454 BLAKE2B 1b5ffa775bbf147e96d07edd36a387db271802d58cc1a1d1eb867645955aec0044e757785578a60c12549bd4e66e4c95ef06dd0f3f8be3599187d0ef0bcc8a4b SHA512 a6ddb2d8ca1c523d02659a2af0b9c67a3802893c946279bb15be53645dc64c997cd5562b77eab9dae03e756ec6622a9a641f7bd68269aba4ddd56ee21f50959e
28 DIST nagios-core-gentoo-icons-20141125.tar 40960 BLAKE2B 31c1953e1160c7c7b89606b72b1a80407e4c1b7a7938b40bd1c577cd0c309dd88ca6b775d692a9b846dbf67736537fa9c91e56aa15fdd447769608ca525bff09 SHA512 bf109879cddd6136b76baba55d0b60b2596e37431dcf5ce0905d34a9fa292ebf7e4bde82d9a084362c486e8fac344c76d88f9298b1b85541ed70ffd608493766
29
30 diff --git a/net-analyzer/nagios-core/nagios-core-4.4.0.ebuild b/net-analyzer/nagios-core/nagios-core-4.4.0.ebuild
31 deleted file mode 100644
32 index 4f2dbf117c3..00000000000
33 --- a/net-analyzer/nagios-core/nagios-core-4.4.0.ebuild
34 +++ /dev/null
35 @@ -1,214 +0,0 @@
36 -# Copyright 1999-2018 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -
41 -inherit toolchain-funcs user
42 -
43 -MY_P=${PN/-core}-${PV}
44 -DESCRIPTION="Nagios core - monitoring daemon, web GUI, and documentation"
45 -HOMEPAGE="https://www.nagios.org/"
46 -
47 -# The name of the directory into which our Gentoo icons will be
48 -# extracted, and also the basename of the archive containing it.
49 -GENTOO_ICONS="${PN}-gentoo-icons-20141125"
50 -SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz
51 - web? ( https://dev.gentoo.org/~mjo/distfiles/${GENTOO_ICONS}.tar )"
52 -
53 -LICENSE="GPL-2"
54 -SLOT="0"
55 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
56 -IUSE="apache2 classicui lighttpd perl +web vim-syntax"
57 -
58 -# In pkg_postinst(), we change the group of the Nagios configuration
59 -# directory to that of the web server user. It can't belong to both
60 -# apache/lighttpd groups at the same time, so we block this combination
61 -# for our own sanity.
62 -#
63 -# This could be made to work, but we would need a better way to allow
64 -# the web user read-only access to Nagios's configuration directory.
65 -#
66 -REQUIRED_USE="apache2? ( !lighttpd )"
67 -
68 -# sys-devel/libtool dependency is bug #401237.
69 -#
70 -# Note, we require one of the apache2 CGI modules:
71 -#
72 -# * mod_cgi
73 -# * mod_cgid
74 -# * mod_fcgid
75 -#
76 -# We just don't care /which/ one. And of course PHP supports both CGI
77 -# (USE=cgi) and FastCGI (USE=fpm). We're pretty lenient with the
78 -# dependencies, and expect the user not to do anything /too/
79 -# stupid. (For example, installing Apache with only FastCGI support, and
80 -# PHP with only CGI support.)
81 -#
82 -# Another annoyance is that the upstream Makefile uses app-arch/unzip to
83 -# extract a snapshot of AngularJS, but that's only needed when USE=web.
84 -#
85 -MOD_ALIAS=apache2_modules_alias
86 -DEPEND="sys-devel/libtool
87 - virtual/mailx
88 - perl? ( dev-lang/perl:= )
89 - web? (
90 - app-arch/unzip
91 - media-libs/gd[jpeg,png]
92 - lighttpd? ( www-servers/lighttpd[php] )
93 - apache2? (
94 - || (
95 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgi]
96 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgid]
97 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_fcgid] )
98 - || (
99 - dev-lang/php:*[apache2]
100 - dev-lang/php:*[cgi]
101 - dev-lang/php:*[fpm] )
102 - )
103 - )"
104 -RDEPEND="${DEPEND}
105 - vim-syntax? ( app-vim/nagios-syntax )"
106 -
107 -S="${WORKDIR}/${MY_P}"
108 -
109 -pkg_setup() {
110 - enewgroup nagios
111 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
112 -}
113 -
114 -src_configure() {
115 - local myconf
116 -
117 - if use perl; then
118 - myconf="${myconf} --enable-embedded-perl --with-perlcache"
119 - fi
120 -
121 - if use !apache2 && use !lighttpd ; then
122 - myconf="${myconf} --with-command-group=nagios"
123 - else
124 - if use apache2 ; then
125 - myconf="${myconf} --with-command-group=apache"
126 - myconf="${myconf} --with-httpd-conf=/etc/apache2/conf.d"
127 - elif use lighttpd ; then
128 - myconf="${myconf} --with-command-group=lighttpd"
129 - fi
130 - fi
131 -
132 - econf ${myconf} \
133 - --prefix=/usr \
134 - --bindir=/usr/sbin \
135 - --sbindir=/usr/$(get_libdir)/nagios/cgi-bin \
136 - --datadir=/usr/share/nagios/htdocs \
137 - --localstatedir=/var/nagios \
138 - --sysconfdir=/etc/nagios \
139 - --libexecdir=/usr/$(get_libdir)/nagios/plugins
140 -}
141 -
142 -src_compile() {
143 - emake CC=$(tc-getCC) nagios
144 -
145 - if use web; then
146 - # Only compile the CGIs/HTML when USE=web is set.
147 - emake CC=$(tc-getCC) DESTDIR="${D}" cgis html
148 - fi
149 -}
150 -
151 -src_install() {
152 - dodoc Changelog CONTRIBUTING.md README.md THANKS UPGRADING
153 -
154 - # There is no way to install the CGIs unstripped from the top-level
155 - # makefile, so descend into base/ here. The empty INSTALL_OPTS
156 - # ensures that root:root: owns the nagios executables.
157 - cd "${S}/base" || die
158 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
159 - cd "${S}" || die
160 -
161 - # Otherwise this gets installed as 770 and you get "access denied"
162 - # for some reason or other when starting nagios. The permissions
163 - # on nagiostats are just for consistency (these should both get
164 - # fixed upstream).
165 - fperms 775 /usr/sbin/nagios /usr/sbin/nagiostats
166 -
167 - # INSTALL_OPTS are needed for most of install-basic, but we don't
168 - # want them on the LIBEXECDIR, argh.
169 - emake DESTDIR="${D}" install-basic
170 - fowners root:root /usr/$(get_libdir)/nagios/plugins
171 -
172 - # Don't make the configuration owned by the nagios user, because
173 - # then he can edit nagios.cfg and trick nagios into running as root
174 - # and doing his bidding.
175 - emake INSTALL_OPTS="" DESTDIR="${D}" install-config
176 -
177 - # No INSTALL_OPTS used in install-commandmode, thankfully.
178 - emake DESTDIR="${D}" install-commandmode
179 -
180 - if use web; then
181 - # There is no way to install the CGIs unstripped from the
182 - # top-level makefile, so descend into cgi/ here. The empty
183 - # INSTALL_OPTS ensures that root:root: owns the CGI executables.
184 - cd "${S}/cgi" || die
185 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
186 - cd "${S}" || die
187 -
188 - # install-html installs the new exfoliation theme
189 - emake INSTALL_OPTS="" DESTDIR="${D}" install-html
190 -
191 - if use classicui; then
192 - # This overwrites the already-installed exfoliation theme
193 - emake INSTALL_OPTS="" DESTDIR="${D}" install-classicui
194 - fi
195 -
196 - # Install cute Gentoo icons (bug #388323), setting their
197 - # owner, group, and mode to match those of the rest of Nagios's
198 - # images.
199 - insinto /usr/share/nagios/htdocs/images/logos
200 - doins "${WORKDIR}/${GENTOO_ICONS}"/*.*
201 - fi
202 -
203 - newinitd startup/openrc-init nagios
204 -
205 - if use web ; then
206 - if use apache2 ; then
207 - # Install the Nagios configuration file for Apache.
208 - insinto "/etc/apache2/modules.d"
209 - doins "${FILESDIR}"/99_nagios4.conf
210 - elif use lighttpd ; then
211 - # Install the Nagios configuration file for Lighttpd.
212 - insinto /etc/lighttpd
213 - newins "${FILESDIR}/lighttpd_nagios4.conf" nagios.conf
214 - else
215 - ewarn "${CATEGORY}/${PF} only supports apache or lighttpd"
216 - ewarn "out of the box. Since you are not using one of them, you"
217 - ewarn "will have to configure your webserver yourself."
218 - fi
219 - fi
220 -}
221 -
222 -pkg_postinst() {
223 -
224 - if use web; then
225 - if use apache2 || use lighttpd ; then
226 - if use apache2; then
227 - elog "To enable the Nagios web front-end, please edit"
228 - elog "${ROOT}etc/conf.d/apache2 and add \"-D NAGIOS -D PHP\""
229 - elog "to APACHE2_OPTS. Then Nagios will be available at,"
230 - elog
231 - elif use lighttpd; then
232 - elog "To enable the Nagios web front-end, please add"
233 - elog "'include \"nagios.conf\"' to the lighttpd configuration"
234 - elog "file at ${ROOT}etc/lighttpd/lighttpd.conf. Then Nagios"
235 - elog "will be available at,"
236 - elog
237 - fi
238 -
239 - elog " http://localhost/nagios/"
240 - fi
241 - fi
242 -
243 - elog
244 - elog "If your kernel has /proc protection, nagios"
245 - elog "will not be happy as it relies on accessing the proc"
246 - elog "filesystem. You can fix this by adding nagios into"
247 - elog "the group wheel, but this is not recomended."
248 - elog
249 -}
250
251 diff --git a/net-analyzer/nagios-core/nagios-core-4.4.1.ebuild b/net-analyzer/nagios-core/nagios-core-4.4.1.ebuild
252 deleted file mode 100644
253 index b29021b26ea..00000000000
254 --- a/net-analyzer/nagios-core/nagios-core-4.4.1.ebuild
255 +++ /dev/null
256 @@ -1,218 +0,0 @@
257 -# Copyright 1999-2018 Gentoo Authors
258 -# Distributed under the terms of the GNU General Public License v2
259 -
260 -EAPI=6
261 -
262 -inherit toolchain-funcs user
263 -
264 -MY_P=${PN/-core}-${PV}
265 -DESCRIPTION="Nagios core - monitoring daemon, web GUI, and documentation"
266 -HOMEPAGE="https://www.nagios.org/"
267 -
268 -# The name of the directory into which our Gentoo icons will be
269 -# extracted, and also the basename of the archive containing it.
270 -GENTOO_ICONS="${PN}-gentoo-icons-20141125"
271 -SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz
272 - web? ( https://dev.gentoo.org/~mjo/distfiles/${GENTOO_ICONS}.tar )"
273 -
274 -LICENSE="GPL-2"
275 -SLOT="0"
276 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
277 -IUSE="apache2 classicui lighttpd perl +web vim-syntax"
278 -
279 -# In pkg_postinst(), we change the group of the Nagios configuration
280 -# directory to that of the web server user. It can't belong to both
281 -# apache/lighttpd groups at the same time, so we block this combination
282 -# for our own sanity.
283 -#
284 -# This could be made to work, but we would need a better way to allow
285 -# the web user read-only access to Nagios's configuration directory.
286 -#
287 -REQUIRED_USE="apache2? ( !lighttpd )"
288 -
289 -# sys-devel/libtool dependency is bug #401237.
290 -#
291 -# Note, we require one of the apache2 CGI modules:
292 -#
293 -# * mod_cgi
294 -# * mod_cgid
295 -# * mod_fcgid
296 -#
297 -# We just don't care /which/ one. And of course PHP supports both CGI
298 -# (USE=cgi) and FastCGI (USE=fpm). We're pretty lenient with the
299 -# dependencies, and expect the user not to do anything /too/
300 -# stupid. (For example, installing Apache with only FastCGI support, and
301 -# PHP with only CGI support.)
302 -#
303 -# Another annoyance is that the upstream Makefile uses app-arch/unzip to
304 -# extract a snapshot of AngularJS, but that's only needed when USE=web.
305 -#
306 -MOD_ALIAS=apache2_modules_alias
307 -DEPEND="sys-devel/libtool
308 - virtual/mailx
309 - perl? ( dev-lang/perl:= )
310 - web? (
311 - app-arch/unzip
312 - media-libs/gd[jpeg,png]
313 - lighttpd? ( www-servers/lighttpd[php] )
314 - apache2? (
315 - || (
316 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgi]
317 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgid]
318 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_fcgid] )
319 - || (
320 - dev-lang/php:*[apache2]
321 - dev-lang/php:*[cgi]
322 - dev-lang/php:*[fpm] )
323 - )
324 - )"
325 -RDEPEND="${DEPEND}
326 - vim-syntax? ( app-vim/nagios-syntax )"
327 -
328 -PATCHES=(
329 - "${FILESDIR}/nagios-4.4.2-pre.patch"
330 -)
331 -
332 -S="${WORKDIR}/${MY_P}"
333 -
334 -pkg_setup() {
335 - enewgroup nagios
336 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
337 -}
338 -
339 -src_configure() {
340 - local myconf
341 -
342 - if use perl; then
343 - myconf="${myconf} --enable-embedded-perl --with-perlcache"
344 - fi
345 -
346 - if use !apache2 && use !lighttpd ; then
347 - myconf="${myconf} --with-command-group=nagios"
348 - else
349 - if use apache2 ; then
350 - myconf="${myconf} --with-command-group=apache"
351 - myconf="${myconf} --with-httpd-conf=/etc/apache2/conf.d"
352 - elif use lighttpd ; then
353 - myconf="${myconf} --with-command-group=lighttpd"
354 - fi
355 - fi
356 -
357 - econf ${myconf} \
358 - --prefix=/usr \
359 - --bindir=/usr/sbin \
360 - --sbindir=/usr/$(get_libdir)/nagios/cgi-bin \
361 - --datadir=/usr/share/nagios/htdocs \
362 - --localstatedir=/var/nagios \
363 - --sysconfdir=/etc/nagios \
364 - --libexecdir=/usr/$(get_libdir)/nagios/plugins
365 -}
366 -
367 -src_compile() {
368 - emake CC=$(tc-getCC) nagios
369 -
370 - if use web; then
371 - # Only compile the CGIs/HTML when USE=web is set.
372 - emake CC=$(tc-getCC) DESTDIR="${D}" cgis html
373 - fi
374 -}
375 -
376 -src_install() {
377 - dodoc Changelog CONTRIBUTING.md README.md THANKS UPGRADING
378 -
379 - # There is no way to install the CGIs unstripped from the top-level
380 - # makefile, so descend into base/ here. The empty INSTALL_OPTS
381 - # ensures that root:root: owns the nagios executables.
382 - cd "${S}/base" || die
383 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
384 - cd "${S}" || die
385 -
386 - # Otherwise this gets installed as 770 and you get "access denied"
387 - # for some reason or other when starting nagios. The permissions
388 - # on nagiostats are just for consistency (these should both get
389 - # fixed upstream).
390 - fperms 775 /usr/sbin/nagios /usr/sbin/nagiostats
391 -
392 - # INSTALL_OPTS are needed for most of install-basic, but we don't
393 - # want them on the LIBEXECDIR, argh.
394 - emake DESTDIR="${D}" install-basic
395 - fowners root:root /usr/$(get_libdir)/nagios/plugins
396 -
397 - # Don't make the configuration owned by the nagios user, because
398 - # then he can edit nagios.cfg and trick nagios into running as root
399 - # and doing his bidding.
400 - emake INSTALL_OPTS="" DESTDIR="${D}" install-config
401 -
402 - # No INSTALL_OPTS used in install-commandmode, thankfully.
403 - emake DESTDIR="${D}" install-commandmode
404 -
405 - if use web; then
406 - # There is no way to install the CGIs unstripped from the
407 - # top-level makefile, so descend into cgi/ here. The empty
408 - # INSTALL_OPTS ensures that root:root: owns the CGI executables.
409 - cd "${S}/cgi" || die
410 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
411 - cd "${S}" || die
412 -
413 - # install-html installs the new exfoliation theme
414 - emake INSTALL_OPTS="" DESTDIR="${D}" install-html
415 -
416 - if use classicui; then
417 - # This overwrites the already-installed exfoliation theme
418 - emake INSTALL_OPTS="" DESTDIR="${D}" install-classicui
419 - fi
420 -
421 - # Install cute Gentoo icons (bug #388323), setting their
422 - # owner, group, and mode to match those of the rest of Nagios's
423 - # images.
424 - insinto /usr/share/nagios/htdocs/images/logos
425 - doins "${WORKDIR}/${GENTOO_ICONS}"/*.*
426 - fi
427 -
428 - newinitd startup/openrc-init nagios
429 -
430 - if use web ; then
431 - if use apache2 ; then
432 - # Install the Nagios configuration file for Apache.
433 - insinto "/etc/apache2/modules.d"
434 - doins "${FILESDIR}"/99_nagios4.conf
435 - elif use lighttpd ; then
436 - # Install the Nagios configuration file for Lighttpd.
437 - insinto /etc/lighttpd
438 - newins "${FILESDIR}/lighttpd_nagios4.conf" nagios.conf
439 - else
440 - ewarn "${CATEGORY}/${PF} only supports apache or lighttpd"
441 - ewarn "out of the box. Since you are not using one of them, you"
442 - ewarn "will have to configure your webserver yourself."
443 - fi
444 - fi
445 -}
446 -
447 -pkg_postinst() {
448 -
449 - if use web; then
450 - if use apache2 || use lighttpd ; then
451 - if use apache2; then
452 - elog "To enable the Nagios web front-end, please edit"
453 - elog "${ROOT}etc/conf.d/apache2 and add \"-D NAGIOS -D PHP\""
454 - elog "to APACHE2_OPTS. Then Nagios will be available at,"
455 - elog
456 - elif use lighttpd; then
457 - elog "To enable the Nagios web front-end, please add"
458 - elog "'include \"nagios.conf\"' to the lighttpd configuration"
459 - elog "file at ${ROOT}etc/lighttpd/lighttpd.conf. Then Nagios"
460 - elog "will be available at,"
461 - elog
462 - fi
463 -
464 - elog " http://localhost/nagios/"
465 - fi
466 - fi
467 -
468 - elog
469 - elog "If your kernel has /proc protection, nagios"
470 - elog "will not be happy as it relies on accessing the proc"
471 - elog "filesystem. You can fix this by adding nagios into"
472 - elog "the group wheel, but this is not recomended."
473 - elog
474 -}