1 |
commit: 8faba1a22afd98961fb437ca7f627d39993b9ff4 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 01:04:44 2022 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 01:04:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8faba1a2 |
7 |
|
8 |
net-analyzer/nagios-core: drop 4.4.6-r3 |
9 |
|
10 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/nagios-core/Manifest | 1 - |
13 |
.../nagios-core/nagios-core-4.4.6-r3.ebuild | 266 --------------------- |
14 |
2 files changed, 267 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/nagios-core/Manifest b/net-analyzer/nagios-core/Manifest |
17 |
index a5805796b0b5..1e1a39a1a09f 100644 |
18 |
--- a/net-analyzer/nagios-core/Manifest |
19 |
+++ b/net-analyzer/nagios-core/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
-DIST nagios-4.4.6.tar.gz 11333414 BLAKE2B b64d34c9267349582cb43500b7b90f7948152b5fd9b28ecb0a376d0255ec9774e693beba9205512294b07dddc4702f37d0f45b3c3fcc6abbf8e8b4d9236d0ace SHA512 6ceb582816ec741439963bde1fe8d85fa3bc4ed3c2238fb818db0c4f4224a4333d153040c11a7f4d783e919c11f9ff45907bdc478504e4155f64a4c575f80550 |
22 |
DIST nagios-4.4.7.tar.gz 11340759 BLAKE2B 4316e6cfc7f576d0fe5ba075aba2931dc850c97fe84b124eceeefaa6c01563c0639c8cecf751e086d5a6f9c0a1079f7e9bd013f961956d7d59536dea4516cf86 SHA512 92adc74e687bcbbd742075c8c7222d42c90795a4eb7582e3f1f492349db8200c61f390bf3c4cab4b023c5c111353a43f5dd687b0ee5ab6a8775444e06d42517b |
23 |
DIST nagios-core-gentoo-icons-20141125.tar 40960 BLAKE2B 31c1953e1160c7c7b89606b72b1a80407e4c1b7a7938b40bd1c577cd0c309dd88ca6b775d692a9b846dbf67736537fa9c91e56aa15fdd447769608ca525bff09 SHA512 bf109879cddd6136b76baba55d0b60b2596e37431dcf5ce0905d34a9fa292ebf7e4bde82d9a084362c486e8fac344c76d88f9298b1b85541ed70ffd608493766 |
24 |
|
25 |
diff --git a/net-analyzer/nagios-core/nagios-core-4.4.6-r3.ebuild b/net-analyzer/nagios-core/nagios-core-4.4.6-r3.ebuild |
26 |
deleted file mode 100644 |
27 |
index 9483f0dda9d3..000000000000 |
28 |
--- a/net-analyzer/nagios-core/nagios-core-4.4.6-r3.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,266 +0,0 @@ |
31 |
-# Copyright 1999-2022 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=8 |
35 |
- |
36 |
-inherit systemd toolchain-funcs |
37 |
- |
38 |
-MY_P="${PN/-core}-${PV}" |
39 |
-DESCRIPTION="Nagios core - monitoring daemon, web GUI, and documentation" |
40 |
-HOMEPAGE="https://www.nagios.org/" |
41 |
- |
42 |
-# The name of the directory into which our Gentoo icons will be |
43 |
-# extracted, and also the basename of the archive containing it. |
44 |
-GENTOO_ICONS="${PN}-gentoo-icons-20141125" |
45 |
-SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz |
46 |
- web? ( https://dev.gentoo.org/~mjo/distfiles/${GENTOO_ICONS}.tar )" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ppc ppc64 sparc x86" |
51 |
-IUSE="apache2 classicui lighttpd +web vim-syntax" |
52 |
- |
53 |
-# In pkg_postinst(), we change the group of the Nagios configuration |
54 |
-# directory to that of the web server user. It can't belong to both |
55 |
-# apache/lighttpd groups at the same time, so we block this combination |
56 |
-# for our own sanity. |
57 |
-# |
58 |
-# This could be made to work, but we would need a better way to allow |
59 |
-# the web user read-only access to Nagios's configuration directory. |
60 |
-# |
61 |
-REQUIRED_USE="apache2? ( !lighttpd )" |
62 |
- |
63 |
-# |
64 |
-# Note, we require one of the apache2 CGI modules: |
65 |
-# |
66 |
-# * mod_cgi (USE=apache2_modules_cgi) |
67 |
-# * mod_cgid (USE=apache2_modules_cgid) |
68 |
-# * mod_fcgid (www-apache/mod_fcgid) |
69 |
-# |
70 |
-# We just don't care /which/ one. And of course PHP supports both CGI |
71 |
-# (USE=cgi) and FastCGI (USE=fpm). We're pretty lenient with the |
72 |
-# dependencies, and expect the user not to do anything /too/ |
73 |
-# stupid. (For example, installing Apache with only FastCGI support, and |
74 |
-# PHP with only CGI support.) |
75 |
-# |
76 |
-# Another annoyance is that the upstream Makefile uses app-arch/unzip to |
77 |
-# extract a snapshot of AngularJS, but that's only needed when USE=web. |
78 |
-# |
79 |
-MOD_ALIAS=apache2_modules_alias |
80 |
- |
81 |
-# The dependencies checked by the configure script. All of these are |
82 |
-# also runtime dependencies; that's why ./configure checks for them. |
83 |
-CONFIGURE_DEPEND="acct-group/nagios |
84 |
- acct-user/nagios |
85 |
- virtual/mailx |
86 |
- dev-lang/perl:=" |
87 |
- |
88 |
-# In addition to the things that the ./configure script checks for, |
89 |
-# we also need to be able to unzip stuff on the build host. |
90 |
-# |
91 |
-# We need the apache/lighttpd groups in src_install() for the things |
92 |
-# installed as the --with-command-group argument, so they go here too. |
93 |
-# The groups are also needed at runtime, but that is ensured by apache |
94 |
-# and lighttpd themselves being in RDEPEND. |
95 |
-BDEPEND="${CONFIGURE_DEPEND} |
96 |
- apache2? ( acct-group/apache ) |
97 |
- lighttpd? ( acct-group/lighttpd ) |
98 |
- web? ( app-arch/unzip )" |
99 |
- |
100 |
-# This is linked into /usr/bin/nagios{,tats} |
101 |
-DEPEND="dev-libs/libltdl:0" |
102 |
- |
103 |
-RDEPEND="${CONFIGURE_DEPEND} |
104 |
- ${DEPEND} |
105 |
- web? ( |
106 |
- media-libs/gd[jpeg,png] |
107 |
- lighttpd? ( www-servers/lighttpd[php] ) |
108 |
- apache2? ( |
109 |
- || ( |
110 |
- www-servers/apache[${MOD_ALIAS},apache2_modules_cgi] |
111 |
- www-servers/apache[${MOD_ALIAS},apache2_modules_cgid] |
112 |
- ( www-servers/apache[${MOD_ALIAS}] www-apache/mod_fcgid ) ) |
113 |
- || ( |
114 |
- dev-lang/php:*[apache2] |
115 |
- dev-lang/php:*[cgi] |
116 |
- dev-lang/php:*[fpm] ) |
117 |
- ) |
118 |
- ) |
119 |
- vim-syntax? ( app-vim/nagios-syntax )" |
120 |
- |
121 |
-S="${WORKDIR}/${MY_P}" |
122 |
- |
123 |
-src_configure() { |
124 |
- local myconf |
125 |
- |
126 |
- if use !apache2 && use !lighttpd ; then |
127 |
- myconf="${myconf} --with-command-group=nagios" |
128 |
- else |
129 |
- if use apache2 ; then |
130 |
- myconf="${myconf} --with-command-group=apache" |
131 |
- myconf="${myconf} --with-httpd-conf=/etc/apache2/conf.d" |
132 |
- elif use lighttpd ; then |
133 |
- myconf="${myconf} --with-command-group=lighttpd" |
134 |
- fi |
135 |
- fi |
136 |
- |
137 |
- # We pass "unknown" as the init type because we don't want it to |
138 |
- # guess. Later on, we'll manually install both OpenRC and systemd |
139 |
- # services. |
140 |
- econf ${myconf} \ |
141 |
- --prefix="${EPREFIX}/usr" \ |
142 |
- --bindir="${EPREFIX}/usr/sbin" \ |
143 |
- --localstatedir="${EPREFIX}/var/lib/nagios" \ |
144 |
- --sysconfdir="${EPREFIX}/etc/nagios" \ |
145 |
- --libexecdir="${EPREFIX}/usr/$(get_libdir)/nagios/plugins" \ |
146 |
- --with-cgibindir="${EPREFIX}/usr/$(get_libdir)/nagios/cgi-bin" \ |
147 |
- --with-webdir="${EPREFIX}/usr/share/nagios/htdocs" \ |
148 |
- --with-init-type="unknown" |
149 |
- |
150 |
- # The paths in the web server configuration files need to match |
151 |
- # those passed to econf above. |
152 |
- cp "${FILESDIR}/99_nagios4-r1.conf" \ |
153 |
- "${FILESDIR}/lighttpd_nagios4-r1.conf" \ |
154 |
- "${T}/" || die "failed to create copies of web server conf files" |
155 |
- |
156 |
- sed -e "s|@CGIBINDIR@|${EPREFIX}/usr/$(get_libdir)/nagios/cgi-bin|g" \ |
157 |
- -e "s|@WEBDIR@|${EPREFIX}/usr/share/nagios/htdocs|" \ |
158 |
- -i "${T}/99_nagios4-r1.conf" \ |
159 |
- -i "${T}/lighttpd_nagios4-r1.conf" \ |
160 |
- || die "failed to substitute paths into web server conf files" |
161 |
- |
162 |
-} |
163 |
- |
164 |
-src_compile() { |
165 |
- emake CC="$(tc-getCC)" nagios |
166 |
- |
167 |
- if use web; then |
168 |
- # Only compile the CGIs/HTML when USE=web is set. |
169 |
- emake CC="$(tc-getCC)" cgis html |
170 |
- fi |
171 |
-} |
172 |
- |
173 |
-src_install() { |
174 |
- dodoc Changelog CONTRIBUTING.md README.md THANKS UPGRADING |
175 |
- |
176 |
- # There is no way to install the CGIs unstripped from the top-level |
177 |
- # makefile, so descend into base/ here. The empty INSTALL_OPTS |
178 |
- # ensures that root:root: owns the nagios executables. |
179 |
- cd "${S}/base" || die |
180 |
- emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped |
181 |
- cd "${S}" || die |
182 |
- |
183 |
- # Otherwise this gets installed as 770 and you get "access denied" |
184 |
- # for some reason or other when starting nagios. The permissions |
185 |
- # on nagiostats are just for consistency (these should both get |
186 |
- # fixed upstream). |
187 |
- fperms 775 /usr/sbin/nagios /usr/sbin/nagiostats |
188 |
- |
189 |
- # INSTALL_OPTS are needed for most of install-basic, but we don't |
190 |
- # want them on the LIBEXECDIR, argh. |
191 |
- emake DESTDIR="${D}" install-basic |
192 |
- fowners root:root /usr/$(get_libdir)/nagios/plugins |
193 |
- |
194 |
- # Don't make the configuration owned by the nagios user, because |
195 |
- # then he can edit nagios.cfg and trick nagios into running as root |
196 |
- # and doing his bidding. |
197 |
- emake INSTALL_OPTS="" DESTDIR="${D}" install-config |
198 |
- |
199 |
- # No INSTALL_OPTS used in install-commandmode, thankfully. |
200 |
- emake DESTDIR="${D}" install-commandmode |
201 |
- |
202 |
- # The build system installs these directories, but portage assumes |
203 |
- # that the build system doesn't know what it's doing so we have to |
204 |
- # keepdir them, too. I guess you'll have to manually re-check the |
205 |
- # upstream build system forever to see if this is still necessary. |
206 |
- keepdir /var/lib/nagios{,/archives,/rw,/spool,/spool/checkresults} |
207 |
- |
208 |
- if use web; then |
209 |
- # There is no way to install the CGIs unstripped from the |
210 |
- # top-level makefile, so descend into cgi/ here. The empty |
211 |
- # INSTALL_OPTS ensures that root:root: owns the CGI executables. |
212 |
- cd "${S}/cgi" || die |
213 |
- emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped |
214 |
- cd "${S}" || die |
215 |
- |
216 |
- # install-html installs the new exfoliation theme |
217 |
- emake INSTALL_OPTS="" DESTDIR="${D}" install-html |
218 |
- |
219 |
- if use classicui; then |
220 |
- # This overwrites the already-installed exfoliation theme |
221 |
- emake INSTALL_OPTS="" DESTDIR="${D}" install-classicui |
222 |
- fi |
223 |
- |
224 |
- # Install cute Gentoo icons (bug #388323), setting their |
225 |
- # owner, group, and mode to match those of the rest of Nagios's |
226 |
- # images. |
227 |
- insinto /usr/share/nagios/htdocs/images/logos |
228 |
- doins "${WORKDIR}/${GENTOO_ICONS}"/*.* |
229 |
- fi |
230 |
- |
231 |
- # The ./configure script for nagios detects the init system on the |
232 |
- # build host, which is wrong for all sorts of reasons. We've gone |
233 |
- # to great lengths above to avoid running "install-init" -- even |
234 |
- # indirectly -- and so now we must install whatever service files |
235 |
- # we need by hand. |
236 |
- newinitd startup/openrc-init nagios |
237 |
- systemd_newunit startup/default-service nagios.service |
238 |
- |
239 |
- if use web ; then |
240 |
- if use apache2 ; then |
241 |
- # Install the Nagios configuration file for Apache. |
242 |
- insinto "/etc/apache2/modules.d" |
243 |
- newins "${T}/99_nagios4-r1.conf" "99_nagios4.conf" |
244 |
- elif use lighttpd ; then |
245 |
- # Install the Nagios configuration file for Lighttpd. |
246 |
- insinto /etc/lighttpd |
247 |
- newins "${T}/lighttpd_nagios4-r1.conf" nagios.conf |
248 |
- else |
249 |
- ewarn "${CATEGORY}/${PF} only supports apache or lighttpd" |
250 |
- ewarn "out of the box. Since you are not using one of them, you" |
251 |
- ewarn "will have to configure your webserver yourself." |
252 |
- fi |
253 |
- fi |
254 |
-} |
255 |
- |
256 |
-pkg_postinst() { |
257 |
- |
258 |
- if use web; then |
259 |
- if use apache2 || use lighttpd ; then |
260 |
- if use apache2; then |
261 |
- elog "To enable the Nagios web front-end, please edit" |
262 |
- elog "${ROOT}/etc/conf.d/apache2 and add \"-D NAGIOS -D PHP\"" |
263 |
- elog "to APACHE2_OPTS. Then Nagios will be available at," |
264 |
- elog |
265 |
- elif use lighttpd; then |
266 |
- elog "To enable the Nagios web front-end, please add" |
267 |
- elog "'include \"nagios.conf\"' to the lighttpd configuration" |
268 |
- elog "file at ${ROOT}/etc/lighttpd/lighttpd.conf. Then Nagios" |
269 |
- elog "will be available at," |
270 |
- elog |
271 |
- fi |
272 |
- |
273 |
- elog " http://localhost/nagios/" |
274 |
- fi |
275 |
- fi |
276 |
- |
277 |
- elog |
278 |
- elog "If your kernel has /proc protection, nagios" |
279 |
- elog "will not be happy as it relies on accessing the proc" |
280 |
- elog "filesystem. You can fix this by adding nagios into" |
281 |
- elog "the group wheel, but this is not recomended." |
282 |
- elog |
283 |
- |
284 |
- if [ -n "${REPLACING_VERSIONS}" ]; then |
285 |
- ewarn "The local state directory for nagios has changed in v4.4.5," |
286 |
- ewarn "from ${EROOT}/var/nagios to ${EROOT}/var/lib/nagios. If you" |
287 |
- ewarn "wish to migrate your state to the new location, first stop" |
288 |
- ewarn "nagios and then run" |
289 |
- ewarn "" |
290 |
- ewarn " diff --recursive --brief ${EROOT}/var/nagios ${EROOT}/var/lib/nagios" |
291 |
- ewarn "" |
292 |
- ewarn "to identify any files that should be moved to the new" |
293 |
- ewarn "location. They can simply be moved with \"mv\" before" |
294 |
- ewarn "restarting nagios." |
295 |
- fi |
296 |
-} |