Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/icingaweb2/
Date: Mon, 29 Feb 2016 22:52:36
Message-Id: 1456785870.1457583300f126ec3756ee369bf6af9c5c9d1d62.prometheanfire@gentoo
1 commit: 1457583300f126ec3756ee369bf6af9c5c9d1d62
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 29 22:44:30 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 29 22:44:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14575833
7
8 www-apps/icingaweb2: bup
9
10 Package-Manager: portage-2.2.26
11
12 www-apps/icingaweb2/Manifest | 1 +
13 www-apps/icingaweb2/icingaweb2-2.2.0.ebuild | 64 +++++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/www-apps/icingaweb2/Manifest b/www-apps/icingaweb2/Manifest
17 index 00a6c24..ec13154 100644
18 --- a/www-apps/icingaweb2/Manifest
19 +++ b/www-apps/icingaweb2/Manifest
20 @@ -1,2 +1,3 @@
21 DIST icingaweb2-2.1.0.tar.gz 9957758 SHA256 1fa15efe4056eca4012358d009da1b90c4b4dd3e18d446de33eeaa48728389fd SHA512 fa694bdaba51b82c33b8fd726807df4c626cd944f1d2949cc8768df3e9bbebdb78888f6aaeba2e88f1f843dab8608d69e1b69f6630e438ab9854d3c8b99f4502 WHIRLPOOL 6b3cba5a701757000909c664d115755efaf3564a77a34a71bc4baa96b058efe1d682867fbaedae22e6a1126aa3dfb47389f8474c42f5a45fbffebc77529a7261
22 DIST icingaweb2-2.1.2.tar.gz 9800997 SHA256 869a4d0cf72506d098418f3c6bfd642b459dc5e68b5bf349b1e59fb20c3ee73d SHA512 00755ea4dff7084d7fb91cfb36ff14632f18f75231eeecbb09afb293a6a143d84df86dc36d5f4fe47cc36c633857d0897c62278d0fa0c95bd60972b43dd500c7 WHIRLPOOL a4c1662258337d747662e0d3d73f54324a981b595c319e88e094df85dff5d226f925010bbcd64f0cc5639c1ceb606bc7eeca89829faf2115278086295700e5cc
23 +DIST icingaweb2-2.2.0.tar.gz 9803668 SHA256 f240b35a4082b4835127608d0b11a27a4bf53bb0c88857344255225ce9611201 SHA512 e07948e284e59ac16f94191607d9da88b06e9e311af9f79b3fb19e1a7d943144515d4122dae4b01d09927b586ae4ccf15cce54e47e0e784882a422d6eb434f59 WHIRLPOOL 32734309b65e4ed0d04b060fadeef617ec9f7da7c227c563d76ede12e5839305b3a384f0b355aa8bc6a62d1220f4bf78f2299cddcbedcc7a9f2c1b1972dc5059
24
25 diff --git a/www-apps/icingaweb2/icingaweb2-2.2.0.ebuild b/www-apps/icingaweb2/icingaweb2-2.2.0.ebuild
26 new file mode 100644
27 index 0000000..81d8276
28 --- /dev/null
29 +++ b/www-apps/icingaweb2/icingaweb2-2.2.0.ebuild
30 @@ -0,0 +1,64 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI="5"
36 +
37 +inherit depend.apache eutils multilib user
38 +
39 +DESCRIPTION="Icinga Web 2 - Frontend for icinga2"
40 +HOMEPAGE="http://www.icinga.org/"
41 +SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +IUSE="apache2 ldap mysql nginx postgres"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +DEPEND=">=net-analyzer/icinga2-2.1.1
48 + dev-lang/php:5.6[apache2?,cli,gd,json,intl,ldap?,mysql?,pdo,postgres?,sockets,ssl,xslt,xml]
49 + dev-php/pecl-imagick
50 + apache2? ( >=www-servers/apache-2.4.0 )
51 + nginx? ( >=www-servers/nginx-1.7.0:* )"
52 +RDEPEND="${DEPEND}"
53 +
54 +want_apache2
55 +
56 +pkg_setup() {
57 + depend.apache_pkg_setup
58 +
59 + enewgroup icingaweb2
60 + enewgroup icingacmd
61 + use nginx && usermod -a -G icingacmd,icingaweb2 nginx
62 + use apache2 && usermod -a -G icingacmd,icingaweb2 apache2
63 +}
64 +
65 +pkg_config() {
66 + if [[ -d /etc/icingaweb2 ]] ; then
67 + einfo "Updating existing installation ..."
68 + else
69 + einfo "Running first time setup ..."
70 + einfo "Creating configuration directory ..."
71 + /usr/share/${PN}/bin/icingacli setup config directory
72 + einfo "Creating authentication token for web setup ..."
73 + /usr/share/${PN}/bin/icingacli setup token create
74 + if use apache2 ; then
75 + einfo "The following might be useful for your Apache2 configuration:"
76 + /usr/share/${PN}/bin/icingacli setup config webserver apache --document-root /usr/share/${PN}/public
77 + fi
78 + if use nginx ; then
79 + einfo "The following might be useful for your NGinx configuration:"
80 + /usr/share/${PN}/bin/icingacli setup config webserver nginx --document-root /usr/share/${PN}/public
81 + fi
82 + fi
83 + einfo "All done."
84 +}
85 +
86 +src_install() {
87 + mkdir -p "${D}/usr/share/${PN}"
88 + cp -R "${S}"/* "${D}/usr/share/${PN}"
89 + chmod -R a+rX "${D}/usr/share/${PN}/public"
90 +}
91 +
92 +pkg_postinst() {
93 + einfo "Run 'emerge --config =${CATEGORY}/${PF}' to finish setup."
94 +}