1 |
commit: b6288f904b64ec7dac4eca9a4311d4f0a11f1d18 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 11 18:13:27 2016 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 11 18:14:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6288f90 |
7 |
|
8 |
net-analyzer/icinga-web: cleanup |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-analyzer/icinga-web/Manifest | 3 - |
13 |
.../icinga-web/icinga-web-1.10.0-r1.ebuild | 206 --------------------- |
14 |
net-analyzer/icinga-web/icinga-web-1.10.0.ebuild | 206 --------------------- |
15 |
net-analyzer/icinga-web/icinga-web-1.10.1.ebuild | 206 --------------------- |
16 |
net-analyzer/icinga-web/icinga-web-1.9.1-r1.ebuild | 203 -------------------- |
17 |
5 files changed, 824 deletions(-) |
18 |
|
19 |
diff --git a/net-analyzer/icinga-web/Manifest b/net-analyzer/icinga-web/Manifest |
20 |
index 935b9fd..3b690ec 100644 |
21 |
--- a/net-analyzer/icinga-web/Manifest |
22 |
+++ b/net-analyzer/icinga-web/Manifest |
23 |
@@ -1,5 +1,2 @@ |
24 |
-DIST icinga-web-1.10.0.tar.gz 14245635 SHA256 fe1b43448bcb6a9e8f565f079122e51283539eb6be214e7001c65653686b7f56 SHA512 90537ea710dd6408349b734b0901918db595d2d7a281e9245a63ba0150a4b7df4fabbb71755966361440ca6096391470d7399ddd5f4b245d1203000b89d8b368 WHIRLPOOL c72004edb2a76efa4ccbea6363fddfa4c6d30c8c368fa57ee0f865d27927bdc5aea691b42c4415b5fe75a12d946768296feffbeb101ff8945377d92da20059bc |
25 |
-DIST icinga-web-1.10.1.tar.gz 14247394 SHA256 b334c063cf4f53fcc1922d99161b5ea5c32c04749c0f9dfe091f376158273664 SHA512 e155c4c00fde20680ed3286fbf7af4db13dd566693ec677a61c719cf8a0b36862bc51741180aceba204e6f768000d8a6dc4548bfbf7165f28f8bbc81c79bc63c WHIRLPOOL d4cf2ea128c0e46bf07ce1ae677a4e718405b926250f4972790388d2b45cef5996e16ca5b83dcdd8f8c9a84831a76cb88b76d0839bdce87e222d6712463b6de9 |
26 |
DIST icinga-web-1.11.2.tar.gz 14133733 SHA256 726ffb261d3cd5a864b689f96837ff9cc138e9c5d97c19a2c82b110a802eb772 SHA512 ecfbc6534a87ae52b508b2ca663109bdc201fbfc143ce399fff0fdd4eec456524c5bb86afe0e29c58dc3dfeaccc959817e77af5b0257db6eced2f27592caf5b1 WHIRLPOOL bb1ad4ae5d921a0454afd9e11780d469f89b5414f6edf13db8c1292e72c5da8a0dc66991d45fac36607ead57934331414017fcc716b8eac351a56c43b8780cf5 |
27 |
DIST icinga-web-1.12.0.tar.gz 14517225 SHA256 3e802ae0cbcabb9555908bf91b9c40d9c07eb80a8acc70f0c9cbd426e3feb675 SHA512 07831c62479e2c83929bd86dc8d7e57558d8e3b3dac2952d64e5170dc508d836cfb2e7446019d2ec9bea03740fc1c55e5857d2fd88fe67ea2726375f77246898 WHIRLPOOL 85ca6ad8423b72dcf77de6243b29fc9c5fadb09f68b56ae57380637014deea60749ff7c942b43d4965ab23efb2d4d79b9cffb194ed6d21e5262373b856ae9b1a |
28 |
-DIST icinga-web-1.9.1.tar.gz 14635896 SHA256 aa5b1aa6962a727a6760f89ef19845a878b7e06ee723b8f1fd7821b6a6b578aa SHA512 42a3edddae5a287b87fd6d077ac303e7caa0b430af86e9046413e7d04d703cd3de7df881463eebb1e5216315056e06ce9f6dccbef93b6e55d1c3f5fe002447b9 WHIRLPOOL 8b5a6bf78794f722952566c82ae238640a716e61022fead31145bbc6fa40ca3bbf439aa593c5839b09873f7d43469cff28422ecd9b93e51cc7124859d1ae8257 |
29 |
|
30 |
diff --git a/net-analyzer/icinga-web/icinga-web-1.10.0-r1.ebuild b/net-analyzer/icinga-web/icinga-web-1.10.0-r1.ebuild |
31 |
deleted file mode 100644 |
32 |
index 99c69cc..00000000 |
33 |
--- a/net-analyzer/icinga-web/icinga-web-1.10.0-r1.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,206 +0,0 @@ |
36 |
-# Copyright 1999-2014 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
-# $Id$ |
39 |
- |
40 |
-EAPI="5" |
41 |
- |
42 |
-inherit depend.apache eutils user multilib |
43 |
- |
44 |
-DESCRIPTION="Icinga Web - new Web Interface" |
45 |
-HOMEPAGE="http://www.icinga.org/" |
46 |
-SRC_URI="mirror://sourceforge/icinga/${P}.tar.gz" |
47 |
-LICENSE="GPL-2" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="~x86 ~amd64" |
50 |
-IUSE="apache2 mysql pnp postgres" |
51 |
-DEPEND="dev-php/phing |
52 |
- dev-db/libdbi-drivers[mysql?,postgres?] |
53 |
- >=net-analyzer/icinga-1.10.0 |
54 |
- dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xslt,xml] |
55 |
- pnp? ( net-analyzer/pnp4nagios )" |
56 |
-RDEPEND="${DEPEND}" |
57 |
- |
58 |
-want_apache2 |
59 |
- |
60 |
-pkg_setup() { |
61 |
- if use apache2 ; then |
62 |
- depend.apache_pkg_setup |
63 |
- fi |
64 |
- enewgroup icinga |
65 |
- enewgroup nagios |
66 |
- enewuser icinga -1 -1 /var/lib/icinga "icinga,nagios" |
67 |
-} |
68 |
- |
69 |
-src_prepare() { |
70 |
- #removed checks for some php stuff since we have these things called use flags |
71 |
- sed -i 's/ACICINGA_CHECK_PHP_MODULE/\#ACICINGA_CHECK_PHP_MODULE/g' configure.ac |
72 |
- sed -i 's/make\ /make\ \-j1\ /g' lib/Makefile.in |
73 |
- autoreconf |
74 |
-} |
75 |
- |
76 |
-src_configure() { |
77 |
- local myconf |
78 |
- |
79 |
- myconf="--prefix=/usr/share/icinga/icinga-web |
80 |
- --bindir=/usr/sbin |
81 |
- --sbindir=/usr/$(get_libdir)/icinga/cgi-bin |
82 |
- --datarootdir=/usr/share/icinga/htdocs |
83 |
- --localstatedir=/var/lib/icinga |
84 |
- --sysconfdir=/etc/icinga |
85 |
- --libexecdir=/usr/$(get_libdir)/icinga/plugins |
86 |
- --with-bin-user=icinga |
87 |
- --with-bin-group=nagios |
88 |
- --with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd |
89 |
- --with-conf-dir=/etc/icinga-web |
90 |
- --with-log-dir=/var/log/icinga-web |
91 |
- --with-icinga-objects-dir=/etc/icinga/objects |
92 |
- --with-icinga-bin=/usr/sbin/icinga |
93 |
- --with-icinga-cfg=/etc/icinga/icinga.cfg" |
94 |
- |
95 |
- if use apache2 ; then |
96 |
- myconf+=" --with-web-user=apache |
97 |
- --with-web-group=apache |
98 |
- --with-web-apache-path=${APACHE_MODULES_CONFDIR}" |
99 |
- else |
100 |
- myconf+=" --with-web-user=root |
101 |
- --with-web-group=root" |
102 |
- fi |
103 |
- |
104 |
- if use postgres ; then |
105 |
- myconf+=" --with-db-type=pgsql |
106 |
- --with-db-port=5432 |
107 |
- --with-api-subtype=pgsql |
108 |
- --with-api-port=5432" |
109 |
- fi |
110 |
- |
111 |
- econf ${myconf} |
112 |
-} |
113 |
- |
114 |
-src_install() { |
115 |
- dodoc README |
116 |
- rm -f README |
117 |
- |
118 |
- emake -j1 DESTDIR="${D}" install |
119 |
- |
120 |
- emake DESTDIR="${D}" install-javascript |
121 |
- |
122 |
- if use apache2 ; then |
123 |
- dodir ${APACHE_MODULES_CONFDIR} |
124 |
- emake DESTDIR="${D}" install-apache-config |
125 |
- echo '<IfDefine ICINGA_WEB>' > "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
126 |
- cat "${WORKDIR}/${P}/etc/apache2/icinga-web.conf" >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
127 |
- rm "${D}/${APACHE_MODULES_CONFDIR}/icinga-web.conf" || die "rm failed" |
128 |
- echo '</IfDefine>' >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
129 |
- fi |
130 |
- |
131 |
- insinto /usr/share/icinga/icinga-web/contrib |
132 |
- doins -r etc/schema/* |
133 |
- |
134 |
- if use apache2 ; then |
135 |
- sed -i 's/%%USER%%/apache/g' etc/scheduler/icingaCron |
136 |
- else |
137 |
- sed -i 's/%%USER%%/root/g' etc/scheduler/icingaCron |
138 |
- fi |
139 |
- sed -i 's/%%PATH%%/\/usr\/share\/icinga\/icinga-web/g' etc/scheduler/icingaCron |
140 |
- |
141 |
- dodir /usr/share/icinga/icinga-web/cron/ |
142 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/crontab <<EOF |
143 |
-# Force the shell to bash |
144 |
-SHELL=/bin/bash |
145 |
-#mail to root |
146 |
-MAILTO=root |
147 |
- |
148 |
-#runs every minute |
149 |
-* * * * * /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
150 |
-EOF |
151 |
- |
152 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/fcrontab <<EOF |
153 |
-# Mail reports to root |
154 |
-!mailto(root) |
155 |
- |
156 |
-#runs every minute |
157 |
-@ 1 /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
158 |
-EOF |
159 |
- |
160 |
- if use apache2 ; then |
161 |
- diropts -o apache -g apache |
162 |
- else |
163 |
- diropts -o root -g root |
164 |
- fi |
165 |
- dodir /var/log/icinga-web |
166 |
- |
167 |
- if use apache2 ; then |
168 |
- fowners apache:apache /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
169 |
- else |
170 |
- fowners root:root /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
171 |
- fi |
172 |
- |
173 |
- if use pnp ; then |
174 |
- insinto /usr/share/icinga/icinga-web/app/modules/Cronks/data/xml/extensions/ |
175 |
- doins contrib/PNP_Integration/templateExtensions/pnp-host-extension.xml |
176 |
- doins contrib/PNP_Integration/templateExtensions/pnp-service-extension.xml |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-pkg_config() { |
181 |
- einfo "press enter to install the icinga-web crontab" |
182 |
- einfo "installation from /usr/share/icinga/icinga-web/cron/icingaCron" |
183 |
- einfo |
184 |
- read |
185 |
- |
186 |
- if has_version sys-process/fcron; then |
187 |
- fcrontab - -u root < /usr/share/icinga/icinga-web/cron/fcrontab |
188 |
- else |
189 |
- crontab - -u root < /usr/share/icinga/icinga-web/cron/crontab |
190 |
- fi |
191 |
-} |
192 |
- |
193 |
-pkg_postinst() { |
194 |
- einfo |
195 |
- einfo "If this is a new install, you must create a new database for it, e.g. icinga_web." |
196 |
- einfo "You can find the database scripts in /usr/share/icinga/icinga-web/contrib/." |
197 |
- einfo |
198 |
- einfo "Additionally, you need to setup a database user." |
199 |
- einfo "The user must have default data privileges like SELECT, UPDATE, INSERT, DELETE." |
200 |
- einfo |
201 |
- einfo "Example for a MySQL database:" |
202 |
- einfo " echo \"CREATE DATABASE icinga_web;\" | mysql" |
203 |
- einfo " echo \"GRANT SELECT,UPDATE,INSERT,DELETE ON icinga_web.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'xxxxxx';\" | mysql" |
204 |
- einfo " echo \"FLUSH PRIVILEGES;\" | mysql" |
205 |
- einfo |
206 |
- einfo " cat /usr/share/icinga/icinga-web/contrib/mysql.sql | mysql icinga_web" |
207 |
- einfo |
208 |
- |
209 |
- ewarn |
210 |
- ewarn "If you're upgrading from a previous release, you must upgrade your database schema." |
211 |
- ewarn "You can find upgrade scripts in /usr/share/icinga/icinga-web/contrib/updates/." |
212 |
- ewarn |
213 |
- ewarn "IMPORTANT: If you are upgrading from an older version and there are other versions in between," |
214 |
- ewarn " be advised that you need to apply those upgrade files with incremental steps!" |
215 |
- ewarn |
216 |
- ewarn "Example to upgrade a MySQL database:" |
217 |
- ewarn " cat /usr/share/icinga/icinga-web/contrib/updates/mysql_<oldversion>_to_<newversion>.sql | mysql icinga_web" |
218 |
- ewarn |
219 |
- ewarn "Don't forget to clear the config cache." |
220 |
- ewarn " /usr/share/icinga/icinga-web/bin/clearcache.sh" |
221 |
- ewarn |
222 |
- |
223 |
- einfo |
224 |
- einfo "Please note that the magic_quotes_gpc setting must be disabled (in both apache and cli php.ini)." |
225 |
- einfo |
226 |
- |
227 |
- if use apache2 ; then |
228 |
- einfo |
229 |
- einfo "apache config was installed into" |
230 |
- einfo "/etc/apache2/modules.d/99_icinga-web.conf" |
231 |
- einfo |
232 |
- einfo "The apache config value for \'ServerTokens\' must be set to at" |
233 |
- einfo "least \'Min\'." |
234 |
- einfo |
235 |
- else |
236 |
- einfo |
237 |
- einfo "If you are not using apache you may need to change some" |
238 |
- einfo "permissions, so that your web server can access files and logs" |
239 |
- einfo |
240 |
- fi |
241 |
-} |
242 |
|
243 |
diff --git a/net-analyzer/icinga-web/icinga-web-1.10.0.ebuild b/net-analyzer/icinga-web/icinga-web-1.10.0.ebuild |
244 |
deleted file mode 100644 |
245 |
index 95e895b..00000000 |
246 |
--- a/net-analyzer/icinga-web/icinga-web-1.10.0.ebuild |
247 |
+++ /dev/null |
248 |
@@ -1,206 +0,0 @@ |
249 |
-# Copyright 1999-2013 Gentoo Foundation |
250 |
-# Distributed under the terms of the GNU General Public License v2 |
251 |
-# $Id$ |
252 |
- |
253 |
-EAPI="5" |
254 |
- |
255 |
-inherit depend.apache eutils user multilib |
256 |
- |
257 |
-DESCRIPTION="Icinga Web - new Web Interface" |
258 |
-HOMEPAGE="http://www.icinga.org/" |
259 |
-SRC_URI="mirror://sourceforge/icinga/${P}.tar.gz" |
260 |
-LICENSE="GPL-2" |
261 |
-SLOT="0" |
262 |
-KEYWORDS="~x86 ~amd64" |
263 |
-IUSE="apache2 mysql pnp postgres" |
264 |
-DEPEND="dev-php/phing |
265 |
- dev-db/libdbi-drivers[mysql?,postgres?] |
266 |
- >=net-analyzer/icinga-1.10.0 |
267 |
- dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xslt,xml] |
268 |
- pnp? ( net-analyzer/pnp4nagios )" |
269 |
-RDEPEND="${DEPEND}" |
270 |
- |
271 |
-want_apache2 |
272 |
- |
273 |
-pkg_setup() { |
274 |
- if use apache2 ; then |
275 |
- depend.apache_pkg_setup |
276 |
- fi |
277 |
- enewgroup icinga |
278 |
- enewgroup nagios |
279 |
- enewuser icinga -1 -1 /var/lib/icinga "icinga,nagios" |
280 |
-} |
281 |
- |
282 |
-src_prepare() { |
283 |
- #removed checks for some php stuff since we have these things called use flags |
284 |
- sed -i 's/ACICINGA_CHECK_PHP_MODULE/\#ACICINGA_CHECK_PHP_MODULE/g' configure.ac |
285 |
- sed -i 's/make\ /make\ \-j1\ /g' lib/Makefile.in |
286 |
- autoreconf |
287 |
-} |
288 |
- |
289 |
-src_configure() { |
290 |
- local myconf |
291 |
- |
292 |
- myconf="--prefix=/usr/share/icinga/icinga-web |
293 |
- --bindir=/usr/sbin |
294 |
- --sbindir=/usr/$(get_libdir)/icinga/cgi-bin |
295 |
- --datarootdir=/usr/share/icinga/htdocs |
296 |
- --localstatedir=/var/lib/icinga |
297 |
- --sysconfdir=/etc/icinga |
298 |
- --libexecdir=/usr/$(get_libdir)/icinga/plugins |
299 |
- --with-bin-user=icinga |
300 |
- --with-bin-group=nagios |
301 |
- --with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd |
302 |
- --with-conf-dir=/etc/icinga-web |
303 |
- --with-log-dir=/var/log/icinga-web |
304 |
- --with-icinga-objects-dir=/etc/icinga/objects |
305 |
- --with-icinga-bin=/usr/sbin/icinga |
306 |
- --with-icinga-cfg=/etc/icinga/icinga.cfg" |
307 |
- |
308 |
- if use apache2 ; then |
309 |
- myconf+=" --with-web-user=apache |
310 |
- --with-web-group=apache |
311 |
- --with-web-apache-path=${APACHE_MODULES_CONFDIR}" |
312 |
- else |
313 |
- myconf+=" --with-web-user=root |
314 |
- --with-web-group=root" |
315 |
- fi |
316 |
- |
317 |
- if use postgres ; then |
318 |
- myconf+=" --with-db-type=pgsql |
319 |
- --with-db-port=5432 |
320 |
- --with-api-subtype=pgsql |
321 |
- --with-api-port=5432" |
322 |
- fi |
323 |
- |
324 |
- econf ${myconf} |
325 |
-} |
326 |
- |
327 |
-src_install() { |
328 |
- dodoc README |
329 |
- rm -f README |
330 |
- |
331 |
- emake -j5 DESTDIR="${D}" install |
332 |
- |
333 |
- emake DESTDIR="${D}" install-javascript |
334 |
- |
335 |
- if use apache2 ; then |
336 |
- dodir ${APACHE_MODULES_CONFDIR} |
337 |
- emake DESTDIR="${D}" install-apache-config |
338 |
- echo '<IfDefine ICINGA_WEB>' > "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
339 |
- cat "${WORKDIR}/${P}/etc/apache2/icinga-web.conf" >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
340 |
- rm "${D}/${APACHE_MODULES_CONFDIR}/icinga-web.conf" || die "rm failed" |
341 |
- echo '</IfDefine>' >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
342 |
- fi |
343 |
- |
344 |
- insinto /usr/share/icinga/icinga-web/contrib |
345 |
- doins -r etc/schema/* |
346 |
- |
347 |
- if use apache2 ; then |
348 |
- sed -i 's/%%USER%%/apache/g' etc/scheduler/icingaCron |
349 |
- else |
350 |
- sed -i 's/%%USER%%/root/g' etc/scheduler/icingaCron |
351 |
- fi |
352 |
- sed -i 's/%%PATH%%/\/usr\/share\/icinga\/icinga-web/g' etc/scheduler/icingaCron |
353 |
- |
354 |
- dodir /usr/share/icinga/icinga-web/cron/ |
355 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/crontab <<EOF |
356 |
-# Force the shell to bash |
357 |
-SHELL=/bin/bash |
358 |
-#mail to root |
359 |
-MAILTO=root |
360 |
- |
361 |
-#runs every minute |
362 |
-* * * * * /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
363 |
-EOF |
364 |
- |
365 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/fcrontab <<EOF |
366 |
-# Mail reports to root |
367 |
-!mailto(root) |
368 |
- |
369 |
-#runs every minute |
370 |
-@ 1 /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
371 |
-EOF |
372 |
- |
373 |
- if use apache2 ; then |
374 |
- diropts -o apache -g apache |
375 |
- else |
376 |
- diropts -o root -g root |
377 |
- fi |
378 |
- dodir /var/log/icinga-web |
379 |
- |
380 |
- if use apache2 ; then |
381 |
- fowners apache:apache /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
382 |
- else |
383 |
- fowners root:root /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
384 |
- fi |
385 |
- |
386 |
- if use pnp ; then |
387 |
- insinto /usr/share/icinga/icinga-web/app/modules/Cronks/data/xml/extensions/ |
388 |
- doins contrib/PNP_Integration/templateExtensions/pnp-host-extension.xml |
389 |
- doins contrib/PNP_Integration/templateExtensions/pnp-service-extension.xml |
390 |
- fi |
391 |
-} |
392 |
- |
393 |
-pkg_config() { |
394 |
- einfo "press enter to install the icinga-web crontab" |
395 |
- einfo "installation from /usr/share/icinga/icinga-web/cron/icingaCron" |
396 |
- einfo |
397 |
- read |
398 |
- |
399 |
- if has_version sys-process/fcron; then |
400 |
- fcrontab - -u root < /usr/share/icinga/icinga-web/cron/fcrontab |
401 |
- else |
402 |
- crontab - -u root < /usr/share/icinga/icinga-web/cron/crontab |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-pkg_postinst() { |
407 |
- einfo |
408 |
- einfo "If this is a new install, you must create a new database for it, e.g. icinga_web." |
409 |
- einfo "You can find the database scripts in /usr/share/icinga/icinga-web/contrib/." |
410 |
- einfo |
411 |
- einfo "Additionally, you need to setup a database user." |
412 |
- einfo "The user must have default data privileges like SELECT, UPDATE, INSERT, DELETE." |
413 |
- einfo |
414 |
- einfo "Example for a MySQL database:" |
415 |
- einfo " echo \"CREATE DATABASE icinga_web;\" | mysql" |
416 |
- einfo " echo \"GRANT SELECT,UPDATE,INSERT,DELETE ON icinga_web.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'xxxxxx';\" | mysql" |
417 |
- einfo " echo \"FLUSH PRIVILEGES;\" | mysql" |
418 |
- einfo |
419 |
- einfo " cat /usr/share/icinga/icinga-web/contrib/mysql.sql | mysql icinga_web" |
420 |
- einfo |
421 |
- |
422 |
- ewarn |
423 |
- ewarn "If you're upgrading from a previous release, you must upgrade your database schema." |
424 |
- ewarn "You can find upgrade scripts in /usr/share/icinga/icinga-web/contrib/updates/." |
425 |
- ewarn |
426 |
- ewarn "IMPORTANT: If you are upgrading from an older version and there are other versions in between," |
427 |
- ewarn " be advised that you need to apply those upgrade files with incremental steps!" |
428 |
- ewarn |
429 |
- ewarn "Example to upgrade a MySQL database:" |
430 |
- ewarn " cat /usr/share/icinga/icinga-web/contrib/updates/mysql_<oldversion>_to_<newversion>.sql | mysql icinga_web" |
431 |
- ewarn |
432 |
- ewarn "Don't forget to clear the config cache." |
433 |
- ewarn " /usr/share/icinga/icinga-web/bin/clearcache.sh" |
434 |
- ewarn |
435 |
- |
436 |
- einfo |
437 |
- einfo "Please note that the magic_quotes_gpc setting must be disabled (in both apache and cli php.ini)." |
438 |
- einfo |
439 |
- |
440 |
- if use apache2 ; then |
441 |
- einfo |
442 |
- einfo "apache config was installed into" |
443 |
- einfo "/etc/apache2/modules.d/99_icinga-web.conf" |
444 |
- einfo |
445 |
- einfo "The apache config value for \'ServerTokens\' must be set to at" |
446 |
- einfo "least \'Min\'." |
447 |
- einfo |
448 |
- else |
449 |
- einfo |
450 |
- einfo "If you are not using apache you may need to change some" |
451 |
- einfo "permissions, so that your web server can access files and logs" |
452 |
- einfo |
453 |
- fi |
454 |
-} |
455 |
|
456 |
diff --git a/net-analyzer/icinga-web/icinga-web-1.10.1.ebuild b/net-analyzer/icinga-web/icinga-web-1.10.1.ebuild |
457 |
deleted file mode 100644 |
458 |
index 9dc6090..00000000 |
459 |
--- a/net-analyzer/icinga-web/icinga-web-1.10.1.ebuild |
460 |
+++ /dev/null |
461 |
@@ -1,206 +0,0 @@ |
462 |
-# Copyright 1999-2014 Gentoo Foundation |
463 |
-# Distributed under the terms of the GNU General Public License v2 |
464 |
-# $Id$ |
465 |
- |
466 |
-EAPI="5" |
467 |
- |
468 |
-inherit depend.apache eutils user multilib |
469 |
- |
470 |
-DESCRIPTION="Icinga Web - new Web Interface" |
471 |
-HOMEPAGE="http://www.icinga.org/" |
472 |
-SRC_URI="https://github.com/icinga/${PN}/releases/download/v${PV}/${P}.tar.gz" |
473 |
-LICENSE="GPL-2" |
474 |
-SLOT="0" |
475 |
-KEYWORDS="~x86 ~amd64" |
476 |
-IUSE="apache2 mysql pnp postgres" |
477 |
-DEPEND="dev-php/phing |
478 |
- dev-db/libdbi-drivers[mysql?,postgres?] |
479 |
- >=net-analyzer/icinga-1.10.0 |
480 |
- dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xslt,xml] |
481 |
- pnp? ( net-analyzer/pnp4nagios )" |
482 |
-RDEPEND="${DEPEND}" |
483 |
- |
484 |
-want_apache2 |
485 |
- |
486 |
-pkg_setup() { |
487 |
- if use apache2 ; then |
488 |
- depend.apache_pkg_setup |
489 |
- fi |
490 |
- enewgroup icinga |
491 |
- enewgroup nagios |
492 |
- enewuser icinga -1 -1 /var/lib/icinga "icinga,nagios" |
493 |
-} |
494 |
- |
495 |
-src_prepare() { |
496 |
- #removed checks for some php stuff since we have these things called use flags |
497 |
- sed -i 's/ACICINGA_CHECK_PHP_MODULE/\#ACICINGA_CHECK_PHP_MODULE/g' configure.ac |
498 |
- sed -i 's/make\ /make\ \-j1\ /g' lib/Makefile.in |
499 |
- autoreconf |
500 |
-} |
501 |
- |
502 |
-src_configure() { |
503 |
- local myconf |
504 |
- |
505 |
- myconf="--prefix=/usr/share/icinga/icinga-web |
506 |
- --bindir=/usr/sbin |
507 |
- --sbindir=/usr/$(get_libdir)/icinga/cgi-bin |
508 |
- --datarootdir=/usr/share/icinga/htdocs |
509 |
- --localstatedir=/var/lib/icinga |
510 |
- --sysconfdir=/etc/icinga |
511 |
- --libexecdir=/usr/$(get_libdir)/icinga/plugins |
512 |
- --with-bin-user=icinga |
513 |
- --with-bin-group=nagios |
514 |
- --with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd |
515 |
- --with-conf-dir=/etc/icinga-web |
516 |
- --with-log-dir=/var/log/icinga-web |
517 |
- --with-icinga-objects-dir=/etc/icinga/objects |
518 |
- --with-icinga-bin=/usr/sbin/icinga |
519 |
- --with-icinga-cfg=/etc/icinga/icinga.cfg" |
520 |
- |
521 |
- if use apache2 ; then |
522 |
- myconf+=" --with-web-user=apache |
523 |
- --with-web-group=apache |
524 |
- --with-web-apache-path=${APACHE_MODULES_CONFDIR}" |
525 |
- else |
526 |
- myconf+=" --with-web-user=root |
527 |
- --with-web-group=root" |
528 |
- fi |
529 |
- |
530 |
- if use postgres ; then |
531 |
- myconf+=" --with-db-type=pgsql |
532 |
- --with-db-port=5432 |
533 |
- --with-api-subtype=pgsql |
534 |
- --with-api-port=5432" |
535 |
- fi |
536 |
- |
537 |
- econf ${myconf} |
538 |
-} |
539 |
- |
540 |
-src_install() { |
541 |
- dodoc README |
542 |
- rm -f README |
543 |
- |
544 |
- emake -j1 DESTDIR="${D}" install |
545 |
- |
546 |
- emake DESTDIR="${D}" install-javascript |
547 |
- |
548 |
- if use apache2 ; then |
549 |
- dodir ${APACHE_MODULES_CONFDIR} |
550 |
- emake DESTDIR="${D}" install-apache-config |
551 |
- echo '<IfDefine ICINGA_WEB>' > "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
552 |
- cat "${WORKDIR}/${P}/etc/apache2/icinga-web.conf" >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
553 |
- rm "${D}/${APACHE_MODULES_CONFDIR}/icinga-web.conf" || die "rm failed" |
554 |
- echo '</IfDefine>' >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
555 |
- fi |
556 |
- |
557 |
- insinto /usr/share/icinga/icinga-web/contrib |
558 |
- doins -r etc/schema/* |
559 |
- |
560 |
- if use apache2 ; then |
561 |
- sed -i 's/%%USER%%/apache/g' etc/scheduler/icingaCron |
562 |
- else |
563 |
- sed -i 's/%%USER%%/root/g' etc/scheduler/icingaCron |
564 |
- fi |
565 |
- sed -i 's/%%PATH%%/\/usr\/share\/icinga\/icinga-web/g' etc/scheduler/icingaCron |
566 |
- |
567 |
- dodir /usr/share/icinga/icinga-web/cron/ |
568 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/crontab <<EOF |
569 |
-# Force the shell to bash |
570 |
-SHELL=/bin/bash |
571 |
-#mail to root |
572 |
-MAILTO=root |
573 |
- |
574 |
-#runs every minute |
575 |
-* * * * * /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
576 |
-EOF |
577 |
- |
578 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/fcrontab <<EOF |
579 |
-# Mail reports to root |
580 |
-!mailto(root) |
581 |
- |
582 |
-#runs every minute |
583 |
-@ 1 /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
584 |
-EOF |
585 |
- |
586 |
- if use apache2 ; then |
587 |
- diropts -o apache -g apache |
588 |
- else |
589 |
- diropts -o root -g root |
590 |
- fi |
591 |
- dodir /var/log/icinga-web |
592 |
- |
593 |
- if use apache2 ; then |
594 |
- fowners apache:apache /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
595 |
- else |
596 |
- fowners root:root /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
597 |
- fi |
598 |
- |
599 |
- if use pnp ; then |
600 |
- insinto /usr/share/icinga/icinga-web/app/modules/Cronks/data/xml/extensions/ |
601 |
- doins contrib/PNP_Integration/templateExtensions/pnp-host-extension.xml |
602 |
- doins contrib/PNP_Integration/templateExtensions/pnp-service-extension.xml |
603 |
- fi |
604 |
-} |
605 |
- |
606 |
-pkg_config() { |
607 |
- einfo "press enter to install the icinga-web crontab" |
608 |
- einfo "installation from /usr/share/icinga/icinga-web/cron/icingaCron" |
609 |
- einfo |
610 |
- read |
611 |
- |
612 |
- if has_version sys-process/fcron; then |
613 |
- fcrontab - -u root < /usr/share/icinga/icinga-web/cron/fcrontab |
614 |
- else |
615 |
- crontab - -u root < /usr/share/icinga/icinga-web/cron/crontab |
616 |
- fi |
617 |
-} |
618 |
- |
619 |
-pkg_postinst() { |
620 |
- einfo |
621 |
- einfo "If this is a new install, you must create a new database for it, e.g. icinga_web." |
622 |
- einfo "You can find the database scripts in /usr/share/icinga/icinga-web/contrib/." |
623 |
- einfo |
624 |
- einfo "Additionally, you need to setup a database user." |
625 |
- einfo "The user must have default data privileges like SELECT, UPDATE, INSERT, DELETE." |
626 |
- einfo |
627 |
- einfo "Example for a MySQL database:" |
628 |
- einfo " echo \"CREATE DATABASE icinga_web;\" | mysql" |
629 |
- einfo " echo \"GRANT SELECT,UPDATE,INSERT,DELETE ON icinga_web.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'xxxxxx';\" | mysql" |
630 |
- einfo " echo \"FLUSH PRIVILEGES;\" | mysql" |
631 |
- einfo |
632 |
- einfo " cat /usr/share/icinga/icinga-web/contrib/mysql.sql | mysql icinga_web" |
633 |
- einfo |
634 |
- |
635 |
- ewarn |
636 |
- ewarn "If you're upgrading from a previous release, you must upgrade your database schema." |
637 |
- ewarn "You can find upgrade scripts in /usr/share/icinga/icinga-web/contrib/updates/." |
638 |
- ewarn |
639 |
- ewarn "IMPORTANT: If you are upgrading from an older version and there are other versions in between," |
640 |
- ewarn " be advised that you need to apply those upgrade files with incremental steps!" |
641 |
- ewarn |
642 |
- ewarn "Example to upgrade a MySQL database:" |
643 |
- ewarn " cat /usr/share/icinga/icinga-web/contrib/updates/mysql_<oldversion>_to_<newversion>.sql | mysql icinga_web" |
644 |
- ewarn |
645 |
- ewarn "Don't forget to clear the config cache." |
646 |
- ewarn " /usr/share/icinga/icinga-web/bin/clearcache.sh" |
647 |
- ewarn |
648 |
- |
649 |
- einfo |
650 |
- einfo "Please note that the magic_quotes_gpc setting must be disabled (in both apache and cli php.ini)." |
651 |
- einfo |
652 |
- |
653 |
- if use apache2 ; then |
654 |
- einfo |
655 |
- einfo "apache config was installed into" |
656 |
- einfo "/etc/apache2/modules.d/99_icinga-web.conf" |
657 |
- einfo |
658 |
- einfo "The apache config value for \'ServerTokens\' must be set to at" |
659 |
- einfo "least \'Min\'." |
660 |
- einfo |
661 |
- else |
662 |
- einfo |
663 |
- einfo "If you are not using apache you may need to change some" |
664 |
- einfo "permissions, so that your web server can access files and logs" |
665 |
- einfo |
666 |
- fi |
667 |
-} |
668 |
|
669 |
diff --git a/net-analyzer/icinga-web/icinga-web-1.9.1-r1.ebuild b/net-analyzer/icinga-web/icinga-web-1.9.1-r1.ebuild |
670 |
deleted file mode 100644 |
671 |
index 1279d32..00000000 |
672 |
--- a/net-analyzer/icinga-web/icinga-web-1.9.1-r1.ebuild |
673 |
+++ /dev/null |
674 |
@@ -1,203 +0,0 @@ |
675 |
-# Copyright 1999-2013 Gentoo Foundation |
676 |
-# Distributed under the terms of the GNU General Public License v2 |
677 |
-# $Id$ |
678 |
- |
679 |
-EAPI="5" |
680 |
- |
681 |
-inherit depend.apache eutils user multilib |
682 |
- |
683 |
-DESCRIPTION="Icinga Web - new Web Interface" |
684 |
-HOMEPAGE="http://www.icinga.org/" |
685 |
-SRC_URI="mirror://sourceforge/icinga/${P}.tar.gz" |
686 |
-LICENSE="GPL-2" |
687 |
-SLOT="0" |
688 |
-KEYWORDS="~x86 ~amd64" |
689 |
-IUSE="apache2 mysql pnp postgres" |
690 |
-DEPEND="dev-php/phing |
691 |
- dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xslt,xml] |
692 |
- pnp? ( net-analyzer/pnp4nagios )" |
693 |
-RDEPEND="${DEPEND}" |
694 |
- |
695 |
-want_apache2 |
696 |
- |
697 |
-pkg_setup() { |
698 |
- if use apache2 ; then |
699 |
- depend.apache_pkg_setup |
700 |
- fi |
701 |
- enewgroup icinga |
702 |
- enewgroup nagios |
703 |
- enewuser icinga -1 -1 /var/lib/icinga "icinga,nagios" |
704 |
-} |
705 |
- |
706 |
-src_prepare() { |
707 |
- #removed checks for some php stuff since we have these things called use flags |
708 |
- sed -i 's/ACICINGA_CHECK_PHP_MODULE/\#ACICINGA_CHECK_PHP_MODULE/g' configure.ac |
709 |
- sed -i 's/make\ /make\ \-j1\ /g' lib/Makefile.in |
710 |
- autoreconf |
711 |
-} |
712 |
- |
713 |
-src_configure() { |
714 |
- local myconf |
715 |
- |
716 |
- myconf="--prefix=/usr/share/icinga/icinga-web |
717 |
- --bindir=/usr/sbin |
718 |
- --sbindir=/usr/$(get_libdir)/icinga/cgi-bin |
719 |
- --datarootdir=/usr/share/icinga/htdocs |
720 |
- --localstatedir=/var/lib/icinga |
721 |
- --sysconfdir=/etc/icinga |
722 |
- --libexecdir=/usr/$(get_libdir)/icinga/plugins |
723 |
- --with-bin-user=icinga |
724 |
- --with-bin-group=nagios |
725 |
- --with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd |
726 |
- --with-conf-dir=/etc/icinga-web |
727 |
- --with-log-dir=/var/log/icinga-web |
728 |
- --with-icinga-objects-dir=/etc/icinga/objects |
729 |
- --with-icinga-bin=/usr/sbin/icinga |
730 |
- --with-icinga-cfg=/etc/icinga/icinga.cfg" |
731 |
- |
732 |
- if use apache2 ; then |
733 |
- myconf+=" --with-web-user=apache |
734 |
- --with-web-group=apache |
735 |
- --with-web-apache-path=${APACHE_MODULES_CONFDIR}" |
736 |
- else |
737 |
- myconf+=" --with-web-user=root |
738 |
- --with-web-group=root" |
739 |
- fi |
740 |
- |
741 |
- if use postgres ; then |
742 |
- myconf+=" --with-db-type=pgsql |
743 |
- --with-db-port=5432 |
744 |
- --with-api-subtype=pgsql |
745 |
- --with-api-port=5432" |
746 |
- fi |
747 |
- |
748 |
- econf ${myconf} |
749 |
-} |
750 |
- |
751 |
-src_install() { |
752 |
- dodoc README |
753 |
- rm -f README |
754 |
- |
755 |
- emake DESTDIR="${D}" install |
756 |
- |
757 |
- emake DESTDIR="${D}" install-javascript |
758 |
- |
759 |
- if use apache2 ; then |
760 |
- dodir ${APACHE_MODULES_CONFDIR} |
761 |
- emake DESTDIR="${D}" install-apache-config |
762 |
- echo '<IfDefine ICINGA_WEB>' > "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
763 |
- cat "${D}/${APACHE_MODULES_CONFDIR}/icinga-web.conf" >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
764 |
- echo '</IfDefine>' >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf" |
765 |
- fi |
766 |
- |
767 |
- insinto /usr/share/icinga/icinga-web/contrib |
768 |
- doins -r etc/schema/* |
769 |
- |
770 |
- if use apache2 ; then |
771 |
- sed -i 's/%%USER%%/apache/g' etc/scheduler/icingaCron |
772 |
- else |
773 |
- sed -i 's/%%USER%%/root/g' etc/scheduler/icingaCron |
774 |
- fi |
775 |
- sed -i 's/%%PATH%%/\/usr\/share\/icinga\/icinga-web/g' etc/scheduler/icingaCron |
776 |
- |
777 |
- dodir /usr/share/icinga/icinga-web/cron/ |
778 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/crontab <<EOF |
779 |
-# Force the shell to bash |
780 |
-SHELL=/bin/bash |
781 |
-#mail to root |
782 |
-MAILTO=root |
783 |
- |
784 |
-#runs every minute |
785 |
-* * * * * /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
786 |
-EOF |
787 |
- |
788 |
- cat - >> "${D}"/usr/share/icinga/icinga-web/cron/fcrontab <<EOF |
789 |
-# Mail reports to root |
790 |
-!mailto(root) |
791 |
- |
792 |
-#runs every minute |
793 |
-@ 1 /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log |
794 |
-EOF |
795 |
- |
796 |
- if use apache2 ; then |
797 |
- diropts -o apache -g apache |
798 |
- else |
799 |
- diropts -o root -g root |
800 |
- fi |
801 |
- dodir /var/log/icinga-web |
802 |
- |
803 |
- if use apache2 ; then |
804 |
- fowners apache:apache /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
805 |
- else |
806 |
- fowners root:root /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat |
807 |
- fi |
808 |
- |
809 |
- if use pnp ; then |
810 |
- insinto /usr/share/icinga/icinga-web/app/modules/Cronks/data/xml/extensions/ |
811 |
- doins contrib/PNP_Integration/templateExtensions/pnp-host-extension.xml |
812 |
- doins contrib/PNP_Integration/templateExtensions/pnp-service-extension.xml |
813 |
- fi |
814 |
-} |
815 |
- |
816 |
-pkg_config() { |
817 |
- einfo "press enter to install the icinga-web crontab" |
818 |
- einfo "installation from /usr/share/icinga/icinga-web/cron/icingaCron" |
819 |
- einfo |
820 |
- read |
821 |
- |
822 |
- if has_version sys-process/fcron; then |
823 |
- fcrontab - -u root < /usr/share/icinga/icinga-web/cron/fcrontab |
824 |
- else |
825 |
- crontab - -u root < /usr/share/icinga/icinga-web/cron/crontab |
826 |
- fi |
827 |
-} |
828 |
- |
829 |
-pkg_postinst() { |
830 |
- einfo |
831 |
- einfo "If this is a new install, you must create a new database for it, e.g. icinga_web." |
832 |
- einfo "You can find the database scripts in /usr/share/icinga/icinga-web/contrib/." |
833 |
- einfo |
834 |
- einfo "Additionally, you need to setup a database user." |
835 |
- einfo "The user must have default data privileges like SELECT, UPDATE, INSERT, DELETE." |
836 |
- einfo |
837 |
- einfo "Example for a MySQL database:" |
838 |
- einfo " echo \"CREATE DATABASE icinga_web;\" | mysql" |
839 |
- einfo " echo \"GRANT SELECT,UPDATE,INSERT,DELETE ON icinga_web.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'xxxxxx';\" | mysql" |
840 |
- einfo " echo \"FLUSH PRIVILEGES;\" | mysql" |
841 |
- einfo |
842 |
- einfo " cat /usr/share/icinga/icinga-web/contrib/mysql.sql | mysql icinga_web" |
843 |
- einfo |
844 |
- |
845 |
- ewarn |
846 |
- ewarn "If you're upgrading from a previous release, you must upgrade your database schema." |
847 |
- ewarn "You can find upgrade scripts in /usr/share/icinga/icinga-web/contrib/updates/." |
848 |
- ewarn |
849 |
- ewarn "IMPORTANT: If you are upgrading from an older version and there are other versions in between," |
850 |
- ewarn " be advised that you need to apply those upgrade files with incremental steps!" |
851 |
- ewarn |
852 |
- ewarn "Example to upgrade a MySQL database:" |
853 |
- ewarn " cat /usr/share/icinga/icinga-web/contrib/updates/mysql_<oldversion>_to_<newversion>.sql | mysql icinga_web" |
854 |
- ewarn |
855 |
- ewarn "Don't forget to clear the config cache." |
856 |
- ewarn " /usr/share/icinga/icinga-web/bin/clearcache.sh" |
857 |
- ewarn |
858 |
- |
859 |
- einfo |
860 |
- einfo "Please note that the magic_quotes_gpc setting must be disabled (in both apache and cli php.ini)." |
861 |
- einfo |
862 |
- |
863 |
- if use apache2 ; then |
864 |
- einfo |
865 |
- einfo "apache config was installed into" |
866 |
- einfo "/etc/apache2/modules.d//99_icinga-web.conf" |
867 |
- einfo |
868 |
- einfo "The apache config value for \'ServerTokens\' must be set to at" |
869 |
- einfo "least \'Min\'." |
870 |
- einfo |
871 |
- else |
872 |
- einfo |
873 |
- einfo "If you are not using apache you may need to change some" |
874 |
- einfo "permissions, so that your web server can access files and logs" |
875 |
- einfo |
876 |
- fi |
877 |
-} |