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: Sat, 02 Mar 2019 04:38:07
Message-Id: 1551500923.68c7b2e3af337c3e2d2db0b09b08c89c5d291614.mjo@gentoo
1 commit: 68c7b2e3af337c3e2d2db0b09b08c89c5d291614
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 2 04:28:43 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 2 04:28:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68c7b2e3
7
8 net-analyzer/nagios-core: remove "unused" nagios-core-4.4.2.ebuild.
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 | 1 -
14 net-analyzer/nagios-core/nagios-core-4.4.2.ebuild | 218 ----------------------
15 2 files changed, 219 deletions(-)
16
17 diff --git a/net-analyzer/nagios-core/Manifest b/net-analyzer/nagios-core/Manifest
18 index 7e5e635dd9f..0b685560927 100644
19 --- a/net-analyzer/nagios-core/Manifest
20 +++ b/net-analyzer/nagios-core/Manifest
21 @@ -1,4 +1,3 @@
22 DIST nagios-4.3.4.tar.gz 11101966 BLAKE2B 6cb8182f40a4f83875c94df040bb1c62ce078d4130e10fa8595ea0b14cf715fc2a237ffb34199da9c1528e4789f3ce8deae3d993b5b795ad712d48b1e5fdb820 SHA512 f4e92aa98151739442a225a245871d93b5560d89510bdacb1a615959b9687f7a92675f10fcba71078b104ca8f237b0155a9261d67ec66f80aec7f033b4b3e316
23 -DIST nagios-4.4.2.tar.gz 11301454 BLAKE2B 1b5ffa775bbf147e96d07edd36a387db271802d58cc1a1d1eb867645955aec0044e757785578a60c12549bd4e66e4c95ef06dd0f3f8be3599187d0ef0bcc8a4b SHA512 a6ddb2d8ca1c523d02659a2af0b9c67a3802893c946279bb15be53645dc64c997cd5562b77eab9dae03e756ec6622a9a641f7bd68269aba4ddd56ee21f50959e
24 DIST nagios-4.4.3.tar.gz 11302228 BLAKE2B d22ab64268832897dfa67d805a5d74656f7aa96ce1427c7326b632060d8c1ea0fbd07564f3c7a978bb5e2c0cba0c06290e7b0d579017fe73b900eb290c7853ae SHA512 07c91a796d634ffda73305edb54e01e46cb4fc9dc996c937e657c18f8067d7e2d31421b058a04b7395ef739962445ea149c486caaac94b7d422b4032bdaa07d4
25 DIST nagios-core-gentoo-icons-20141125.tar 40960 BLAKE2B 31c1953e1160c7c7b89606b72b1a80407e4c1b7a7938b40bd1c577cd0c309dd88ca6b775d692a9b846dbf67736537fa9c91e56aa15fdd447769608ca525bff09 SHA512 bf109879cddd6136b76baba55d0b60b2596e37431dcf5ce0905d34a9fa292ebf7e4bde82d9a084362c486e8fac344c76d88f9298b1b85541ed70ffd608493766
26
27 diff --git a/net-analyzer/nagios-core/nagios-core-4.4.2.ebuild b/net-analyzer/nagios-core/nagios-core-4.4.2.ebuild
28 deleted file mode 100644
29 index bfd8898d488..00000000000
30 --- a/net-analyzer/nagios-core/nagios-core-4.4.2.ebuild
31 +++ /dev/null
32 @@ -1,218 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -inherit toolchain-funcs user
39 -
40 -MY_P=${PN/-core}-${PV}
41 -DESCRIPTION="Nagios core - monitoring daemon, web GUI, and documentation"
42 -HOMEPAGE="https://www.nagios.org/"
43 -
44 -# The name of the directory into which our Gentoo icons will be
45 -# extracted, and also the basename of the archive containing it.
46 -GENTOO_ICONS="${PN}-gentoo-icons-20141125"
47 -SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz
48 - web? ( https://dev.gentoo.org/~mjo/distfiles/${GENTOO_ICONS}.tar )"
49 -
50 -LICENSE="GPL-2"
51 -SLOT="0"
52 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
53 -IUSE="apache2 classicui lighttpd perl +web vim-syntax"
54 -
55 -# In pkg_postinst(), we change the group of the Nagios configuration
56 -# directory to that of the web server user. It can't belong to both
57 -# apache/lighttpd groups at the same time, so we block this combination
58 -# for our own sanity.
59 -#
60 -# This could be made to work, but we would need a better way to allow
61 -# the web user read-only access to Nagios's configuration directory.
62 -#
63 -REQUIRED_USE="apache2? ( !lighttpd )"
64 -
65 -# sys-devel/libtool dependency is bug #401237.
66 -#
67 -# Note, we require one of the apache2 CGI modules:
68 -#
69 -# * mod_cgi
70 -# * mod_cgid
71 -# * mod_fcgid
72 -#
73 -# We just don't care /which/ one. And of course PHP supports both CGI
74 -# (USE=cgi) and FastCGI (USE=fpm). We're pretty lenient with the
75 -# dependencies, and expect the user not to do anything /too/
76 -# stupid. (For example, installing Apache with only FastCGI support, and
77 -# PHP with only CGI support.)
78 -#
79 -# Another annoyance is that the upstream Makefile uses app-arch/unzip to
80 -# extract a snapshot of AngularJS, but that's only needed when USE=web.
81 -#
82 -MOD_ALIAS=apache2_modules_alias
83 -DEPEND="sys-devel/libtool
84 - virtual/mailx
85 - perl? ( dev-lang/perl:= )
86 - web? (
87 - app-arch/unzip
88 - media-libs/gd[jpeg,png]
89 - lighttpd? ( www-servers/lighttpd[php] )
90 - apache2? (
91 - || (
92 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgi]
93 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgid]
94 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_fcgid] )
95 - || (
96 - dev-lang/php:*[apache2]
97 - dev-lang/php:*[cgi]
98 - dev-lang/php:*[fpm] )
99 - )
100 - )"
101 -RDEPEND="${DEPEND}
102 - vim-syntax? ( app-vim/nagios-syntax )"
103 -
104 -PATCHES=(
105 - "${FILESDIR}/nagios-4.4.3-pre.patch"
106 -)
107 -
108 -S="${WORKDIR}/${MY_P}"
109 -
110 -pkg_setup() {
111 - enewgroup nagios
112 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
113 -}
114 -
115 -src_configure() {
116 - local myconf
117 -
118 - if use perl; then
119 - myconf="${myconf} --enable-embedded-perl --with-perlcache"
120 - fi
121 -
122 - if use !apache2 && use !lighttpd ; then
123 - myconf="${myconf} --with-command-group=nagios"
124 - else
125 - if use apache2 ; then
126 - myconf="${myconf} --with-command-group=apache"
127 - myconf="${myconf} --with-httpd-conf=/etc/apache2/conf.d"
128 - elif use lighttpd ; then
129 - myconf="${myconf} --with-command-group=lighttpd"
130 - fi
131 - fi
132 -
133 - econf ${myconf} \
134 - --prefix=/usr \
135 - --bindir=/usr/sbin \
136 - --sbindir=/usr/$(get_libdir)/nagios/cgi-bin \
137 - --datadir=/usr/share/nagios/htdocs \
138 - --localstatedir=/var/nagios \
139 - --sysconfdir=/etc/nagios \
140 - --libexecdir=/usr/$(get_libdir)/nagios/plugins
141 -}
142 -
143 -src_compile() {
144 - emake CC=$(tc-getCC) nagios
145 -
146 - if use web; then
147 - # Only compile the CGIs/HTML when USE=web is set.
148 - emake CC=$(tc-getCC) DESTDIR="${D}" cgis html
149 - fi
150 -}
151 -
152 -src_install() {
153 - dodoc Changelog CONTRIBUTING.md README.md THANKS UPGRADING
154 -
155 - # There is no way to install the CGIs unstripped from the top-level
156 - # makefile, so descend into base/ here. The empty INSTALL_OPTS
157 - # ensures that root:root: owns the nagios executables.
158 - cd "${S}/base" || die
159 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
160 - cd "${S}" || die
161 -
162 - # Otherwise this gets installed as 770 and you get "access denied"
163 - # for some reason or other when starting nagios. The permissions
164 - # on nagiostats are just for consistency (these should both get
165 - # fixed upstream).
166 - fperms 775 /usr/sbin/nagios /usr/sbin/nagiostats
167 -
168 - # INSTALL_OPTS are needed for most of install-basic, but we don't
169 - # want them on the LIBEXECDIR, argh.
170 - emake DESTDIR="${D}" install-basic
171 - fowners root:root /usr/$(get_libdir)/nagios/plugins
172 -
173 - # Don't make the configuration owned by the nagios user, because
174 - # then he can edit nagios.cfg and trick nagios into running as root
175 - # and doing his bidding.
176 - emake INSTALL_OPTS="" DESTDIR="${D}" install-config
177 -
178 - # No INSTALL_OPTS used in install-commandmode, thankfully.
179 - emake DESTDIR="${D}" install-commandmode
180 -
181 - if use web; then
182 - # There is no way to install the CGIs unstripped from the
183 - # top-level makefile, so descend into cgi/ here. The empty
184 - # INSTALL_OPTS ensures that root:root: owns the CGI executables.
185 - cd "${S}/cgi" || die
186 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
187 - cd "${S}" || die
188 -
189 - # install-html installs the new exfoliation theme
190 - emake INSTALL_OPTS="" DESTDIR="${D}" install-html
191 -
192 - if use classicui; then
193 - # This overwrites the already-installed exfoliation theme
194 - emake INSTALL_OPTS="" DESTDIR="${D}" install-classicui
195 - fi
196 -
197 - # Install cute Gentoo icons (bug #388323), setting their
198 - # owner, group, and mode to match those of the rest of Nagios's
199 - # images.
200 - insinto /usr/share/nagios/htdocs/images/logos
201 - doins "${WORKDIR}/${GENTOO_ICONS}"/*.*
202 - fi
203 -
204 - newinitd startup/openrc-init nagios
205 -
206 - if use web ; then
207 - if use apache2 ; then
208 - # Install the Nagios configuration file for Apache.
209 - insinto "/etc/apache2/modules.d"
210 - doins "${FILESDIR}"/99_nagios4.conf
211 - elif use lighttpd ; then
212 - # Install the Nagios configuration file for Lighttpd.
213 - insinto /etc/lighttpd
214 - newins "${FILESDIR}/lighttpd_nagios4.conf" nagios.conf
215 - else
216 - ewarn "${CATEGORY}/${PF} only supports apache or lighttpd"
217 - ewarn "out of the box. Since you are not using one of them, you"
218 - ewarn "will have to configure your webserver yourself."
219 - fi
220 - fi
221 -}
222 -
223 -pkg_postinst() {
224 -
225 - if use web; then
226 - if use apache2 || use lighttpd ; then
227 - if use apache2; then
228 - elog "To enable the Nagios web front-end, please edit"
229 - elog "${ROOT}etc/conf.d/apache2 and add \"-D NAGIOS -D PHP\""
230 - elog "to APACHE2_OPTS. Then Nagios will be available at,"
231 - elog
232 - elif use lighttpd; then
233 - elog "To enable the Nagios web front-end, please add"
234 - elog "'include \"nagios.conf\"' to the lighttpd configuration"
235 - elog "file at ${ROOT}etc/lighttpd/lighttpd.conf. Then Nagios"
236 - elog "will be available at,"
237 - elog
238 - fi
239 -
240 - elog " http://localhost/nagios/"
241 - fi
242 - fi
243 -
244 - elog
245 - elog "If your kernel has /proc protection, nagios"
246 - elog "will not be happy as it relies on accessing the proc"
247 - elog "filesystem. You can fix this by adding nagios into"
248 - elog "the group wheel, but this is not recomended."
249 - elog
250 -}