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