Gentoo Archives: gentoo-commits

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