summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Thode <prometheanfire@gentoo.org>2013-05-09 22:14:42 +0000
committerMatt Thode <prometheanfire@gentoo.org>2013-05-09 22:14:42 +0000
commitd4efe645a6efcb5f323d7ac3330d3e8ea42d52a3 (patch)
treea39628459b10c550def1662764c8c7409d1121ce /net-analyzer/icinga-web
parentmask lyx[subversion] (diff)
downloadhistorical-d4efe645a6efcb5f323d7ac3330d3e8ea42d52a3.tar.gz
historical-d4efe645a6efcb5f323d7ac3330d3e8ea42d52a3.tar.bz2
historical-d4efe645a6efcb5f323d7ac3330d3e8ea42d52a3.zip
icinga-web up to 1.9.0 now
Package-Manager: portage-2.1.11.55/cvs/Linux x86_64 Manifest-Sign-Key: 0x2471EB3E40AC5AC3
Diffstat (limited to 'net-analyzer/icinga-web')
-rw-r--r--net-analyzer/icinga-web/ChangeLog8
-rw-r--r--net-analyzer/icinga-web/Manifest30
-rw-r--r--net-analyzer/icinga-web/icinga-web-1.9.0.ebuild202
3 files changed, 225 insertions, 15 deletions
diff --git a/net-analyzer/icinga-web/ChangeLog b/net-analyzer/icinga-web/ChangeLog
index 7bbb36eb168e..05421b177676 100644
--- a/net-analyzer/icinga-web/ChangeLog
+++ b/net-analyzer/icinga-web/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/icinga-web
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga-web/ChangeLog,v 1.9 2013/04/01 19:07:29 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga-web/ChangeLog,v 1.10 2013/05/09 22:14:36 prometheanfire Exp $
+
+*icinga-web-1.9.0 (09 May 2013)
+
+ 09 May 2013; Matthew Thode <prometheanfire@gentoo.org>
+ +icinga-web-1.9.0.ebuild:
+ icinga-web up to 1.9.0 now
*icinga-web-1.8.3 (01 Apr 2013)
diff --git a/net-analyzer/icinga-web/Manifest b/net-analyzer/icinga-web/Manifest
index 85e334260250..18977fe957a1 100644
--- a/net-analyzer/icinga-web/Manifest
+++ b/net-analyzer/icinga-web/Manifest
@@ -5,26 +5,28 @@ DIST icinga-web-1.7.2.tar.gz 14556866 SHA256 7d4fe59dd0e721419ae74dab3d24a694e89
DIST icinga-web-1.8.1.tar.gz 14607800 SHA256 3f23e94ad0c837d221220cfb0b10852f8a9301049a939fc42067a4227059640e SHA512 36039895218176f6da17217865c26d0cc3eb3de879af4564b3fefb69d3a7d68633cdcfbda039bb13f4c282590a738d7a39e2aa0cfd7b89404275459ae5008222 WHIRLPOOL ea3b490e71eae02642500e805506800ddc4f6291363ff93be8943d444987cabd6d77c915d7e2002bb686f2f33b25756a5c02259677ec22caa207542c34074856
DIST icinga-web-1.8.2.tar.gz 14614501 SHA256 92bec05960fc0882c1d81073ec5f9f98d2c9e45889c4f9f75fd5ea80f1eedfc0 SHA512 84e49fa07153c066b6c786afccaae0bf2ff74b81de54112b144a2037888c2f9cfb6d5795642da10d744e1ae4585172fb5222fcaebf3921de9510a09f3a9dd9f2 WHIRLPOOL 2c4ff3d8ba2430aefa9a8646f6cbc9d8b2d28be5016cd19a02a0bb3c16c814083b1c9a6527b0ef1bedcd417811ce33824d0a80e2f019f344d7dc0a7298f457cd
DIST icinga-web-1.8.3.tar.gz 14614191 SHA256 24aeed695e455e5cbb79315383aa2ad17899fa3d21c14aa17cdb35a48a1b1b1b SHA512 0623500536014ade462c1c451c9abc4985cae78d75b9063919ee10ecfbac1709f73a5ab900756b165ca10483294df03acdaeb40cc7f3ecfa76a77675eeb03a28 WHIRLPOOL d522e1000104cb199273a1acc92e1190e87ef63dc9fc7ce11cc79e7d2f0386ab3f1fc7ea09a2c186b1c94b1bab1888bd325c3cc1bb08734afb5653c983d8c261
+DIST icinga-web-1.9.0.tar.gz 14642077 SHA256 b55288bb8e5d360cb41582753334739a0ea47eda1453a73ff3d5b4c84b32f062 SHA512 1e41577b64f627addc6043eaa45d6cc5bdadb881f40e3b8b4a87ba07ce7be1bc0c28ff8ecea60ffba37547fdd9866d5b60aa1dfc0ec4b6d24b5a999cf8866a31 WHIRLPOOL 1fb6811b35450fda35a8e8aaa528e10fd09f92b5f604de57c76dd6bdca10049e2c0b70c8bcb6a884a75124239d3be1c34ff7c69ed17834a9bd61960829c7a26a
EBUILD icinga-web-1.7.2.ebuild 6098 SHA256 f9c2c28d6c45cc4f741c39bb3276398a25aa4245132d0e8df2ec3f2454481935 SHA512 bc33769d5e2d473fc98b21453d2db96f648d9194058d5de46444aaac6335aa8e4de329bb15c8c1ccf4d559eecac6fdbbf8f1b48f145a0303e86dd143aac415bc WHIRLPOOL 471eaec330ae1919b482d2de6ba165782aa4bd735b3c8ab4577bc0576384fda6632a1b3dade7177c11b67526744edd3849103ae34fb94edcbff38d808e71bd2d
EBUILD icinga-web-1.8.1.ebuild 6306 SHA256 49dce4815699a297bf770359f7a9d70a6c834324e4f37456dbec4b1d72b1c0ae SHA512 318208e1a04f71515c0d96695715c2e0fab3c5cede140f6d2bff1a948c9faf53095720e6d7a75ed8e500f2815403835ac9b0f8cddb4bc4666c63d65cc7ffb175 WHIRLPOOL 34559bbe153563ff215a464d42ac30bd5f0e1a3b2e9f2e934f8c910dc75acc551e250cb97cdbdf050c7b3acbbc5f0ee233ff930d96777519103c7ba32651df35
EBUILD icinga-web-1.8.2.ebuild 6306 SHA256 2093f699c9a367caf1ea8dcba2bb42561a8a72141070dc690122855ae922e6d0 SHA512 4ff2483a70ec4fd74061949620653cde224c7cdbf780b5152508ec48032624edc0b21b046934665f0b90e4150faeaae0d538897b659a4e2ecbdc4e5d989d903b WHIRLPOOL 8c83e2a2e84ea7942e9e3fe286f57ccc3ac24e0c02d85f906ac1409e441958481ed04e2d9314a5bfb3a714172137b87bea4ed2bc91a09070ece6de55de9475d9
EBUILD icinga-web-1.8.3.ebuild 6306 SHA256 ebbc6c51674cecf759cf83521516e709e83b815d2ba551f443f7f7065c4e3c6a SHA512 9b69365360de2bd4baa3d18861fb6089016c2c9adccfada64b05a035c07bfca13e593d8ca2ec22023e1f4d8b10ab07410eee5866c28be37d3fda5fabbc168151 WHIRLPOOL 6fc392db60a7f973d4ba41b3e12e4ace70dc7db53c1f75c90490b8b38927950617b0f4a266baf1e7608821816e472d35d69d81e631b8641e0addf4127732fe36
-MISC ChangeLog 1944 SHA256 930ad578890445da6ccb5accedf28632b6903c032b84313badfad5d9cf2bc295 SHA512 34341e711ca221aaa6388a06cd0cf60120615628777d7867d395db622578f26960c69682675e444403caab13733689f4154e31f084e5140938a61ba8dd215803 WHIRLPOOL 064b8bdd08a1860bf5eb4d7f1c7928218e36180fcb8bb10b49041b05e99a8108e2c7dcf43ac5e630920449756912759a088cc7fefdb4ec200111952053fdd6c1
+EBUILD icinga-web-1.9.0.ebuild 6306 SHA256 464d7ea15fe4107262e53f983db2efecc8aa50fc3a08cff453509a09a9a0dcd3 SHA512 751b1212c78998c43be10ce6b4ba14863b7447ab3f4448beb4340db4cd6389c4f1ab57f3187e5284b75eae81b429e7abf757033a9bdcd7084cc68aef5c5102a8 WHIRLPOOL d05f662e102b8d9cce93df463aee55705cebeb6ce2761c374083811e2cde22be714f7a04326fda479071f94e2e8d37bad1a34da6f7205eea5e741a5339f57c51
+MISC ChangeLog 2093 SHA256 e752d4304491f81c24fa45105cd37dd17e2cd0dde742c9eb2cdbf8ed0d54102b SHA512 a2141c508a2265ed755f0deed98424231695ea71377b35cd96a35eaa4bbfa4aafd43deb71a76213614eaa5ead7104f71a3cf72e39edefec8aa8cb5ff81fa1cd9 WHIRLPOOL f20d8dd82793503e2ab18f998b81cd687ffaa46de7ad3aa8ae32de488693c1aac875bde8b08893a703b6eb3114954886bf337696330a183446d17152d3364851
MISC metadata.xml 419 SHA256 49679fa6aac480dadb07969911c1ea1fd09b7fd67b28be3ffc121333426dac61 SHA512 31f0c6fe93a928fee82cd8fb970dafdaf7b9f830c44ca33621fac89998ee0ab416ef851ac76a8019dc8fba93db331ba627e2ae42257d80a9615d12b03fbeffe1 WHIRLPOOL 8cbed9673cc9bb5797643e4cdbfc6adc378d5baa3e877614b7b0d55ad4d659e979283d9323c57938a301aa787edd7a66fb3e2882b0eba4ff90c638b0344801e9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJRWdsMAAoJECRx6z5ArFrD4EYP/0QacRotaWgob5WtaZ9fpogr
-RLAsH1ksJWMtGtB0E+y+qza6ENcxN+RuY2aIksfTTJlfeQNAw62JHsB7iW3NWRH9
-Resc5quY60g0L2cfGcEB/6Uqx4SII+RKXrs8yINbjXo/yNtipBy2DnORfpIM0t3W
-peewHQvJpdZyGgPVDhIQq0+PMIxSiMo77no5LKxGQuSI70uML/CDbmtwaJBnz0bR
-6VhDJgBf+TC2e+Y+0z8k7ysvkb+rTdyue+ukU0fSggT8EdEcTQr+hmICclGAFLkx
-+hap6VsVshLjuM9uI9wqAzYy5Z9kr0LVdovp0ON6BfbT8PKcluQVH+6E00ya9JwV
-q5zCWP2bEOdvmoS6ls0YTPwcnBCugvGHj5+DI72LNpl/vR4fwBldff3QkNNStya0
-ClaTtRmCnKfr9vUKhGnYUBkHGJskUbdNgwYZaf9+VlmGy6r2eU9uCFeNoh1zm06E
-iXg0/zYinOJoSKELumqj6uoOMceRRFvkXZsoiHRGaPXPxD+6k18bx5jwbkPZSLlD
-UtLNMDvGjimuEn7PDiBiogEb5cx6rg6L6wj13916y7AUN/sAsKVvux5pPOk/gfu9
-C42sLvVJj6ZCjXWdQ7UE18sXZfv1dI3WAd2o4gakeeLdgDBhH1A0XNVrkUf7wkti
-Cl/ps1lFP5Ua6UXQpq/c
-=mP7s
+iQIcBAEBCAAGBQJRjCAFAAoJECRx6z5ArFrDI6AQANt8UcxKp6yvnTxHDnFgfD2X
+UCBVSB6UNujRS4nZcn/UfA25FA83CATr5Ea3c1nGi566QdlpGj4SqhxGJMOUL4xG
+6xZCSQer31CHbiDadkriFB+oyYKaeU2Uk1bxdwyDHEPO75qhxgcweDErGe+VBcnd
+sZQi1OfAN3HuQ8kKOQOB9Ad8oOux9W6PH31FvndJVlUybAbrzbYKtHX3ZcLLoTqG
+tO1HUbq+XvhKU5RJ9M938wlyDcE22vRxYFnLfXPL05P736+umSnA23LdRycrJEFg
+vjnkHBAytxDZ6aQoo81wp19c2+o6rAviEDhuzJCE1mKR5O7pAKX8XYwgGpmsDAQO
+cMFZA8pqpWJZLbpL3r+JwGUXGEX6LcZFE9E1dBuhl+r+WRjqCcFsZgqu3Tvu/Ugm
+NiN8/RmSmhfimCktjlq/Favh1CoKRpZNCC9XU5CKcn/JB60AmPWoeMfNKXnn46Bw
+jdn6iKON+B03TeOk4F7zx2C5qYVutz1NmV6pqV0zvBDLYp52kwcQPgcwl4nRgom8
+W0bZlgvPnzDYBdc1uRMEUuaqmKqmm89dbEP3QPNMZzClYk0MDat0LaFVtZNtiLhv
+ouWa3DxtJ5GKfsOGQhIc5p33D51Eug4cyD1oL408Fq7bvLfPKbNo4wAwhb2tQJja
+Aj/6liGyuwTWxCls0zbZ
+=U1RX
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/icinga-web/icinga-web-1.9.0.ebuild b/net-analyzer/icinga-web/icinga-web-1.9.0.ebuild
new file mode 100644
index 000000000000..5704b8cd7111
--- /dev/null
+++ b/net-analyzer/icinga-web/icinga-web-1.9.0.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga-web/icinga-web-1.9.0.ebuild,v 1.1 2013/05/09 22:14:36 prometheanfire Exp $
+
+EAPI="2"
+
+inherit depend.apache eutils user multilib
+
+DESCRIPTION="Icinga Web - new Web Interface"
+HOMEPAGE="http://www.icinga.org/"
+SRC_URI="mirror://sourceforge/icinga/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="apache2 mysql pnp postgres"
+DEPEND="dev-php/phing
+ dev-lang/php[apache2?,cli,json,mysql?,pdo,postgres?,sockets,xsl,xml]
+ pnp? ( net-analyzer/pnp4nagios )"
+RDEPEND="${DEPEND}"
+
+want_apache2
+
+pkg_setup() {
+ if use apache2 ; then
+ depend.apache_pkg_setup
+ fi
+ enewgroup icinga
+ enewgroup nagios
+ enewuser icinga -1 -1 /var/lib/icinga "icinga,nagios"
+}
+
+src_prepare() {
+ #removed checks for some php stuff since we have these things called use flags
+ sed -i 's/ACICINGA_CHECK_PHP_MODULE/\#ACICINGA_CHECK_PHP_MODULE/g' configure.ac
+ autoreconf
+}
+
+src_configure() {
+ local myconf
+
+ myconf="--prefix=/usr/share/icinga/icinga-web
+ --bindir=/usr/sbin
+ --sbindir=/usr/$(get_libdir)/icinga/cgi-bin
+ --datarootdir=/usr/share/icinga/htdocs
+ --localstatedir=/var/lib/icinga
+ --sysconfdir=/etc/icinga
+ --libexecdir=/usr/$(get_libdir)/icinga/plugins
+ --with-bin-user=icinga
+ --with-bin-group=nagios
+ --with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd
+ --with-conf-dir=/etc/icinga-web
+ --with-log-dir=/var/log/icinga-web
+ --with-icinga-objects-dir=/etc/icinga/objects
+ --with-icinga-bin=/usr/sbin/icinga
+ --with-icinga-cfg=/etc/icinga/icinga.cfg"
+
+ if use apache2 ; then
+ myconf+=" --with-web-user=apache
+ --with-web-group=apache
+ --with-web-apache-path=${APACHE_MODULES_CONFDIR}"
+ else
+ myconf+=" --with-web-user=root
+ --with-web-group=root"
+ fi
+
+ if use postgres ; then
+ myconf+=" --with-db-type=pgsql
+ --with-db-port=5432
+ --with-api-subtype=pgsql
+ --with-api-port=5432"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ dodoc README
+ rm -f README
+
+ emake DESTDIR="${D}" install || die "make failed"
+
+ emake DESTDIR="${D}" install-javascript || die "make failed"
+
+ if use apache2 ; then
+ dodir ${APACHE_MODULES_CONFDIR}
+ emake DESTDIR="${D}" install-apache-config || die "make failed"
+ echo '<IfDefine ICINGA_WEB>' > "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf"
+ cat "${D}/${APACHE_MODULES_CONFDIR}/icinga-web.conf" >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf"
+ echo '</IfDefine>' >> "${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf"
+ fi
+
+ insinto /usr/share/icinga/icinga-web/contrib
+ doins -r etc/schema/* || die
+
+ if use apache2 ; then
+ sed -i 's/%%USER%%/apache/g' etc/scheduler/icingaCron
+ else
+ sed -i 's/%%USER%%/root/g' etc/scheduler/icingaCron
+ fi
+ sed -i 's/%%PATH%%/\/usr\/share\/icinga\/icinga-web/g' etc/scheduler/icingaCron
+
+ dodir /usr/share/icinga/icinga-web/cron/
+ cat - >> "${D}"/usr/share/icinga/icinga-web/cron/crontab <<EOF
+# Force the shell to bash
+SHELL=/bin/bash
+#mail to root
+MAILTO=root
+
+#runs every minute
+* * * * * /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log
+EOF
+
+ cat - >> "${D}"/usr/share/icinga/icinga-web/cron/fcrontab <<EOF
+# Mail reports to root
+!mailto(root)
+
+#runs every minute
+@ 1 /usr/bin/php /usr/share/icinga/icinga-web/lib/icingaScheduler/icingaCron.php --useAgavi --exec >> /var/log/icinga-web/cron_error.log
+EOF
+
+ if use apache2 ; then
+ diropts -o apache -g apache
+ else
+ diropts -o root -g root
+ fi
+ dodir /var/log/icinga-web
+
+ if use apache2 ; then
+ fowners apache:apache /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat
+ else
+ fowners root:root /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat
+ fi
+
+ if use pnp ; then
+ insinto /usr/share/icinga/icinga-web/app/modules/Cronks/data/xml/extensions/
+ doins contrib/PNP_Integration/templateExtensions/pnp-host-extension.xml
+ doins contrib/PNP_Integration/templateExtensions/pnp-service-extension.xml
+ fi
+}
+
+pkg_config() {
+ einfo "press enter to install the icinga-web crontab"
+ einfo "installation from /usr/share/icinga/icinga-web/cron/icingaCron"
+ einfo
+ read
+
+ if has_version sys-process/fcron; then
+ fcrontab - -u root < /usr/share/icinga/icinga-web/cron/fcrontab
+ else
+ crontab - -u root < /usr/share/icinga/icinga-web/cron/crontab
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo "If this is a new install, you must create a new database for it, e.g. icinga_web."
+ einfo "You can find the database scripts in /usr/share/icinga/icinga-web/contrib/."
+ einfo
+ einfo "Additionally, you need to setup a database user."
+ einfo "The user must have default data privileges like SELECT, UPDATE, INSERT, DELETE."
+ einfo
+ einfo "Example for a MySQL database:"
+ einfo " echo \"CREATE DATABASE icinga_web;\" | mysql"
+ einfo " echo \"GRANT SELECT,UPDATE,INSERT,DELETE ON icinga_web.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'xxxxxx';\" | mysql"
+ einfo " echo \"FLUSH PRIVILEGES;\" | mysql"
+ einfo
+ einfo " cat /usr/share/icinga/icinga-web/contrib/mysql.sql | mysql icinga_web"
+ einfo
+
+ ewarn
+ ewarn "If you're upgrading from a previous release, you must upgrade your database schema."
+ ewarn "You can find upgrade scripts in /usr/share/icinga/icinga-web/contrib/updates/."
+ ewarn
+ ewarn "IMPORTANT: If you are upgrading from an older version and there are other versions in between,"
+ ewarn " be advised that you need to apply those upgrade files with incremental steps!"
+ ewarn
+ ewarn "Example to upgrade a MySQL database:"
+ ewarn " cat /usr/share/icinga/icinga-web/contrib/updates/mysql_<oldversion>_to_<newversion>.sql | mysql icinga_web"
+ ewarn
+ ewarn "Don't forget to clear the config cache."
+ ewarn " /usr/share/icinga/icinga-web/bin/clearcache.sh"
+ ewarn
+
+ einfo
+ einfo "Please note that the magic_quotes_gpc setting must be disabled (in both apache and cli php.ini)."
+ einfo
+
+ if use apache2 ; then
+ einfo
+ einfo "apache config was installed into"
+ einfo "/etc/apache2/modules.d//99_icinga-web.conf"
+ einfo
+ einfo "The apache config value for \'ServerTokens\' must be set to at"
+ einfo "least \'Min\'."
+ einfo
+ else
+ einfo
+ einfo "If you are not using apache you may need to change some"
+ einfo "permissions, so that your web server can access files and logs"
+ einfo
+ fi
+}