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: Thu, 15 Aug 2019 00:05:58
Message-Id: 1565827493.cb519cc1df86a3a369778cc4d73adf5da6a593a8.mjo@gentoo
1 commit: cb519cc1df86a3a369778cc4d73adf5da6a593a8
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 23:49:21 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 15 00:04:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb519cc1
7
8 net-analyzer/nagios-core: remove old nagios-core-4.4.3-r1.ebuild.
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
12
13 net-analyzer/nagios-core/Manifest | 1 -
14 .../nagios-core/nagios-core-4.4.3-r1.ebuild | 213 ---------------------
15 2 files changed, 214 deletions(-)
16
17 diff --git a/net-analyzer/nagios-core/Manifest b/net-analyzer/nagios-core/Manifest
18 index a794553e346..2595d9143c6 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.3.tar.gz 11302228 BLAKE2B d22ab64268832897dfa67d805a5d74656f7aa96ce1427c7326b632060d8c1ea0fbd07564f3c7a978bb5e2c0cba0c06290e7b0d579017fe73b900eb290c7853ae SHA512 07c91a796d634ffda73305edb54e01e46cb4fc9dc996c937e657c18f8067d7e2d31421b058a04b7395ef739962445ea149c486caaac94b7d422b4032bdaa07d4
24 DIST nagios-4.4.4.tar.gz 11303598 BLAKE2B e4015ca5c0383b0540f2eaf3d608343df850c6045a4539c1f1ab8c19dc95e9223816efe71034b37f6995cb623dc6b83c92e22a677fe687a34d2215b1a2758c90 SHA512 c8f2b83bad744d67be4ba8356d9eea0be3efbf42d9a215d64815cdf7d944eba798348ce0faea6cebe64f1c99e0edbf12540d83ca42f8b4b563cbcc60139afdb0
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.3-r1.ebuild b/net-analyzer/nagios-core/nagios-core-4.4.3-r1.ebuild
28 deleted file mode 100644
29 index 74ddb853c43..00000000000
30 --- a/net-analyzer/nagios-core/nagios-core-4.4.3-r1.ebuild
31 +++ /dev/null
32 @@ -1,213 +0,0 @@
33 -# Copyright 1999-2019 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 -#
66 -# Note, we require one of the apache2 CGI modules:
67 -#
68 -# * mod_cgi
69 -# * mod_cgid
70 -# * mod_fcgid
71 -#
72 -# We just don't care /which/ one. And of course PHP supports both CGI
73 -# (USE=cgi) and FastCGI (USE=fpm). We're pretty lenient with the
74 -# dependencies, and expect the user not to do anything /too/
75 -# stupid. (For example, installing Apache with only FastCGI support, and
76 -# PHP with only CGI support.)
77 -#
78 -# Another annoyance is that the upstream Makefile uses app-arch/unzip to
79 -# extract a snapshot of AngularJS, but that's only needed when USE=web.
80 -#
81 -MOD_ALIAS=apache2_modules_alias
82 -DEPEND="dev-libs/libltdl:0
83 - virtual/mailx
84 - perl? ( dev-lang/perl:= )
85 - web? (
86 - app-arch/unzip
87 - media-libs/gd[jpeg,png]
88 - lighttpd? ( www-servers/lighttpd[php] )
89 - apache2? (
90 - || (
91 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgi]
92 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgid]
93 - >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_fcgid] )
94 - || (
95 - dev-lang/php:*[apache2]
96 - dev-lang/php:*[cgi]
97 - dev-lang/php:*[fpm] )
98 - )
99 - )"
100 -RDEPEND="${DEPEND}
101 - vim-syntax? ( app-vim/nagios-syntax )"
102 -
103 -S="${WORKDIR}/${MY_P}"
104 -
105 -pkg_setup() {
106 - enewgroup nagios
107 - enewuser nagios -1 /bin/bash /var/nagios/home nagios
108 -}
109 -
110 -src_configure() {
111 - local myconf
112 -
113 - if use perl; then
114 - myconf="${myconf} --enable-embedded-perl --with-perlcache"
115 - fi
116 -
117 - if use !apache2 && use !lighttpd ; then
118 - myconf="${myconf} --with-command-group=nagios"
119 - else
120 - if use apache2 ; then
121 - myconf="${myconf} --with-command-group=apache"
122 - myconf="${myconf} --with-httpd-conf=/etc/apache2/conf.d"
123 - elif use lighttpd ; then
124 - myconf="${myconf} --with-command-group=lighttpd"
125 - fi
126 - fi
127 -
128 - econf ${myconf} \
129 - --prefix=/usr \
130 - --bindir=/usr/sbin \
131 - --localstatedir=/var/nagios \
132 - --sysconfdir=/etc/nagios \
133 - --libexecdir=/usr/$(get_libdir)/nagios/plugins \
134 - --with-cgibindir=/usr/$(get_libdir)/nagios/cgi-bin \
135 - --with-webdir=/usr/share/nagios/htdocs
136 -}
137 -
138 -src_compile() {
139 - emake CC=$(tc-getCC) nagios
140 -
141 - if use web; then
142 - # Only compile the CGIs/HTML when USE=web is set.
143 - emake CC=$(tc-getCC) DESTDIR="${D}" cgis html
144 - fi
145 -}
146 -
147 -src_install() {
148 - dodoc Changelog CONTRIBUTING.md README.md THANKS UPGRADING
149 -
150 - # There is no way to install the CGIs unstripped from the top-level
151 - # makefile, so descend into base/ here. The empty INSTALL_OPTS
152 - # ensures that root:root: owns the nagios executables.
153 - cd "${S}/base" || die
154 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
155 - cd "${S}" || die
156 -
157 - # Otherwise this gets installed as 770 and you get "access denied"
158 - # for some reason or other when starting nagios. The permissions
159 - # on nagiostats are just for consistency (these should both get
160 - # fixed upstream).
161 - fperms 775 /usr/sbin/nagios /usr/sbin/nagiostats
162 -
163 - # INSTALL_OPTS are needed for most of install-basic, but we don't
164 - # want them on the LIBEXECDIR, argh.
165 - emake DESTDIR="${D}" install-basic
166 - fowners root:root /usr/$(get_libdir)/nagios/plugins
167 -
168 - # Don't make the configuration owned by the nagios user, because
169 - # then he can edit nagios.cfg and trick nagios into running as root
170 - # and doing his bidding.
171 - emake INSTALL_OPTS="" DESTDIR="${D}" install-config
172 -
173 - # No INSTALL_OPTS used in install-commandmode, thankfully.
174 - emake DESTDIR="${D}" install-commandmode
175 -
176 - if use web; then
177 - # There is no way to install the CGIs unstripped from the
178 - # top-level makefile, so descend into cgi/ here. The empty
179 - # INSTALL_OPTS ensures that root:root: owns the CGI executables.
180 - cd "${S}/cgi" || die
181 - emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
182 - cd "${S}" || die
183 -
184 - # install-html installs the new exfoliation theme
185 - emake INSTALL_OPTS="" DESTDIR="${D}" install-html
186 -
187 - if use classicui; then
188 - # This overwrites the already-installed exfoliation theme
189 - emake INSTALL_OPTS="" DESTDIR="${D}" install-classicui
190 - fi
191 -
192 - # Install cute Gentoo icons (bug #388323), setting their
193 - # owner, group, and mode to match those of the rest of Nagios's
194 - # images.
195 - insinto /usr/share/nagios/htdocs/images/logos
196 - doins "${WORKDIR}/${GENTOO_ICONS}"/*.*
197 - fi
198 -
199 - newinitd startup/openrc-init nagios
200 -
201 - if use web ; then
202 - if use apache2 ; then
203 - # Install the Nagios configuration file for Apache.
204 - insinto "/etc/apache2/modules.d"
205 - doins "${FILESDIR}"/99_nagios4.conf
206 - elif use lighttpd ; then
207 - # Install the Nagios configuration file for Lighttpd.
208 - insinto /etc/lighttpd
209 - newins "${FILESDIR}/lighttpd_nagios4.conf" nagios.conf
210 - else
211 - ewarn "${CATEGORY}/${PF} only supports apache or lighttpd"
212 - ewarn "out of the box. Since you are not using one of them, you"
213 - ewarn "will have to configure your webserver yourself."
214 - fi
215 - fi
216 -}
217 -
218 -pkg_postinst() {
219 -
220 - if use web; then
221 - if use apache2 || use lighttpd ; then
222 - if use apache2; then
223 - elog "To enable the Nagios web front-end, please edit"
224 - elog "${ROOT}etc/conf.d/apache2 and add \"-D NAGIOS -D PHP\""
225 - elog "to APACHE2_OPTS. Then Nagios will be available at,"
226 - elog
227 - elif use lighttpd; then
228 - elog "To enable the Nagios web front-end, please add"
229 - elog "'include \"nagios.conf\"' to the lighttpd configuration"
230 - elog "file at ${ROOT}etc/lighttpd/lighttpd.conf. Then Nagios"
231 - elog "will be available at,"
232 - elog
233 - fi
234 -
235 - elog " http://localhost/nagios/"
236 - fi
237 - fi
238 -
239 - elog
240 - elog "If your kernel has /proc protection, nagios"
241 - elog "will not be happy as it relies on accessing the proc"
242 - elog "filesystem. You can fix this by adding nagios into"
243 - elog "the group wheel, but this is not recomended."
244 - elog
245 -}