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: Thu, 28 Sep 2017 16:23:53
Message-Id: 1506615805.df01e5a7e181e8985a363e9e428f6f0cea3d48c4.prometheanfire@gentoo
1 commit: df01e5a7e181e8985a363e9e428f6f0cea3d48c4
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 28 16:22:42 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 28 16:23:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df01e5a7
7
8 www-apps/icingaweb2: 2.4.2 bup
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 www-apps/icingaweb2/Manifest | 1 +
13 www-apps/icingaweb2/icingaweb2-2.4.2.ebuild | 79 +++++++++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/www-apps/icingaweb2/Manifest b/www-apps/icingaweb2/Manifest
17 index f2c80cd1510..778f5b32c98 100644
18 --- a/www-apps/icingaweb2/Manifest
19 +++ b/www-apps/icingaweb2/Manifest
20 @@ -1 +1,2 @@
21 DIST icingaweb2-2.4.1.tar.gz 7176640 SHA256 27150d96a2172d0fa0c77389970052a1bf7aa6553494e80837f6699e96e24bc6 SHA512 21ac8faea3e339cfc668407cef826cf4a8f01c964ad102e2c9bc9716e20c3177cea10ec575b99a5a4bb0a9681032b83427c250c5288b037a70d27dc919d0f641 WHIRLPOOL 40c5e48f0c7b6b32cb1eb02c1a447512bdba397eda8c20110a1e4d0c0b794265fe413c2c3a1a56d3f009e4245e211322a5b97a16449af4a1ff90bb4831f781fb
22 +DIST icingaweb2-2.4.2.tar.gz 7180122 SHA256 8ce42b4f0fb3ddd93c56d70c642512af13db1d5db2ad0227ec7567a4413daa94 SHA512 2a6f80561b59fde1b7ca72b8a120f93685a4741e7af036a90cdd5a1371f8e6d6caa25161f136b379255032b16b21914325a26f078121743d1299e96e7685ef53 WHIRLPOOL 0f350e796e5b03c5d3e0c501cdae8c485c2eb745da87e308f57066cfe507d24482799ab9e6fe1ed621c19f14fcca3b97c7f57d67a28ac51e42c13aa7094afe83
23
24 diff --git a/www-apps/icingaweb2/icingaweb2-2.4.2.ebuild b/www-apps/icingaweb2/icingaweb2-2.4.2.ebuild
25 new file mode 100644
26 index 00000000000..9c54138b2b4
27 --- /dev/null
28 +++ b/www-apps/icingaweb2/icingaweb2-2.4.2.ebuild
29 @@ -0,0 +1,79 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="6"
34 +
35 +inherit depend.apache eutils multilib user
36 +
37 +DESCRIPTION="Icinga Web 2 - Frontend for icinga2"
38 +HOMEPAGE="http://www.icinga.org/"
39 +SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +IUSE="apache2 ldap mysql nginx pdf postgres"
43 +REQUIRED_USE="^^ ( apache2 nginx )"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +DEPEND=">=net-analyzer/icinga2-2.1.1
47 + dev-php/pecl-imagick
48 + pdf? ( media-gfx/imagemagick[png] )
49 + apache2? (
50 + >=www-servers/apache-2.4.0
51 + || (
52 + dev-lang/php:5.6[apache2?,cli,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
53 + dev-lang/php:7.0[apache2?,cli,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
54 + dev-lang/php:7.1[apache2?,cli,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
55 + )
56 + )
57 + nginx? (
58 + >=www-servers/nginx-1.7.0:*
59 + || (
60 + dev-lang/php:5.6[apache2?,cli,fpm,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
61 + dev-lang/php:7.0[apache2?,cli,fpm,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
62 + dev-lang/php:7.1[apache2?,cli,fpm,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
63 + )
64 + )"
65 +RDEPEND="${DEPEND}"
66 +
67 +want_apache2
68 +
69 +pkg_setup() {
70 + depend.apache_pkg_setup
71 +
72 + enewgroup icingaweb2
73 + enewgroup icingacmd
74 + use nginx && usermod -a -G icingacmd,icingaweb2 nginx
75 + use apache2 && usermod -a -G icingacmd,icingaweb2 apache
76 +}
77 +
78 +pkg_config() {
79 + if [[ -d /etc/icingaweb2 ]] ; then
80 + einfo "Updating existing installation ..."
81 + else
82 + einfo "Running first time setup ..."
83 + einfo "Creating configuration directory ..."
84 + /usr/share/${PN}/bin/icingacli setup config directory
85 + einfo "Creating authentication token for web setup ..."
86 + /usr/share/${PN}/bin/icingacli setup token create
87 + if use apache2 ; then
88 + einfo "The following might be useful for your Apache2 configuration:"
89 + /usr/share/${PN}/bin/icingacli setup config webserver apache --document-root /usr/share/${PN}/public
90 + fi
91 + if use nginx ; then
92 + einfo "The following might be useful for your NGinx configuration:"
93 + /usr/share/${PN}/bin/icingacli setup config webserver nginx --document-root /usr/share/${PN}/public
94 + fi
95 + fi
96 + einfo "All done."
97 +}
98 +
99 +src_install() {
100 + insinto "/usr/share/${PN}"
101 + doins -r "${S}"/*
102 + fperms -R a+rX "/usr/share/${PN}/public/"
103 + fperms u+x,g+x "/usr/share/${PN}/bin/icingacli"
104 +}
105 +
106 +pkg_postinst() {
107 + einfo "Run 'emerge --config =${CATEGORY}/${PF}' to finish setup."
108 +}