public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Thode" <prometheanfire@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/prometheanfire:master commit in: net-analyzer/icinga-web/
Date: Mon, 27 Feb 2012 22:01:38 +0000 (UTC)	[thread overview]
Message-ID: <1330380074.8d7d87997d8b3dfd1bd0a3c73f3a6f96b6ba2f64.prometheanfire@gentoo> (raw)

commit:     8d7d87997d8b3dfd1bd0a3c73f3a6f96b6ba2f64
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 27 22:01:14 2012 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Mon Feb 27 22:01:14 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/prometheanfire.git;a=commit;h=8d7d8799

initial add of icinga-web

---
 net-analyzer/icinga-web/ChangeLog                  |    9 ++
 net-analyzer/icinga-web/icinga-web-1.6.1-r1.ebuild |   82 ++++++++++++++++++++
 2 files changed, 91 insertions(+), 0 deletions(-)

diff --git a/net-analyzer/icinga-web/ChangeLog b/net-analyzer/icinga-web/ChangeLog
new file mode 100644
index 0000000..716e172
--- /dev/null
+++ b/net-analyzer/icinga-web/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-analyzer/icinga-web
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*icinga-web-1.6.1-r1 (27 Feb 2012)
+
+  27 Feb 2012; mthode <mthode@gentoo.org> +icinga-web-1.6.1-r1.ebuild:
+  initial add and test of icinga-web
+

diff --git a/net-analyzer/icinga-web/icinga-web-1.6.1-r1.ebuild b/net-analyzer/icinga-web/icinga-web-1.6.1-r1.ebuild
new file mode 100644
index 0000000..b6289b7
--- /dev/null
+++ b/net-analyzer/icinga-web/icinga-web-1.6.1-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit depend.apache eutils
+
+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="~amd64"
+IUSE="pnp"
+DEPEND="dev-php/phing
+        dev-lang/php[apache2,mysql,pdo,json]
+        net-analyzer/icinga[apache2,idoutils,mysql]"
+RDEPEND="${DEPEND}"
+
+need_apache2
+
+pkg_setup() {
+	depend.apache_pkg_setup
+}
+
+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=icinga
+	--with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd
+	--with-conf-dir=/etc/icinga-web
+	--with-web-apache-path=${APACHE_MODULES_CONFDIR}
+	--with-log-dir=/var/log/icinga-web"
+
+	econf ${myconf}
+}
+
+src_install() {
+	emake -j1 DESTDIR="${D}" install || die "make failed"
+
+	emake -j1 DESTDIR="${D}" install-javascript || die "make failed"
+
+	dodir ${APACHE_MODULES_CONFDIR}
+	emake -j1 DESTDIR="${D}" install-apache-config || die "make failed"
+	mv ${D}/${APACHE_MODULES_CONFDIR}/icinga-web.conf ${D}/${APACHE_MODULES_CONFDIR}/99_icinga-web.conf
+
+	insinto /usr/share/icinga/icinga-web/contrib
+	doins -r etc/schema/* || die
+
+	sed -i 's/%%USER%%/apache/g'  etc/scheduler/icingaCron
+	sed -i 's/%%PATH%%/\/usr\/share\/icinga\/icinga-web/g' etc/scheduler/icingaCron
+
+	insinto /etc/cron.d/
+	doins etc/scheduler/icingaCron || die
+
+	diropts -o apache -g apache
+	dodir /var/log/icinga-web
+
+	fowners apache:apache /usr/share/icinga/icinga-web/lib/icingaScheduler/res/storage.dat
+
+	if use pnp ; then
+		sed -i 's/booleanConditionField/booleanConfitionField/g' contrib/PNP_Integration/templateExtensions/pnp-host-extension.xml
+		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_postinst() {
+	elog "do not forget to import the Database!"
+	elog
+}
+



             reply	other threads:[~2012-02-27 22:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 22:01 Matt Thode [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-28  1:59 [gentoo-commits] dev/prometheanfire:master commit in: net-analyzer/icinga-web/ Matt Thode
2012-02-28  2:19 Matt Thode
2012-02-28  2:30 Matt Thode
2012-07-11 15:23 Matt Thode
2012-07-11 18:43 Matt Thode
2012-07-11 18:56 Matt Thode
2012-07-11 19:38 Matt Thode
2012-07-11 20:04 Matt Thode
2012-07-12 18:00 Matt Thode
2012-07-12 18:00 Matt Thode
2012-07-13 16:13 Matt Thode
2012-07-16 14:58 Matt Thode
2012-07-16 14:58 Matt Thode
2012-11-19  1:18 Matt Thode

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330380074.8d7d87997d8b3dfd1bd0a3c73f3a6f96b6ba2f64.prometheanfire@gentoo \
    --to=prometheanfire@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox