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: Wed, 28 Jul 2021 16:12:03
Message-Id: 1627488714.1596402a82a2502ad87ac44ac68e275db0d089e6.prometheanfire@gentoo
1 commit: 1596402a82a2502ad87ac44ac68e275db0d089e6
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 28 16:10:46 2021 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 28 16:11:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1596402a
7
8 www-apps/icingaweb2: 2.8.4 and 2.9.1 bump
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 www-apps/icingaweb2/Manifest | 2 +
14 www-apps/icingaweb2/icingaweb2-2.8.4.ebuild | 77 ++++++++++++++++++++++++++++
15 www-apps/icingaweb2/icingaweb2-2.9.1.ebuild | 78 +++++++++++++++++++++++++++++
16 3 files changed, 157 insertions(+)
17
18 diff --git a/www-apps/icingaweb2/Manifest b/www-apps/icingaweb2/Manifest
19 index b68f250d6c8..93325f9e88a 100644
20 --- a/www-apps/icingaweb2/Manifest
21 +++ b/www-apps/icingaweb2/Manifest
22 @@ -1,3 +1,5 @@
23 DIST icingaweb2-2.8.2.tar.gz 8514166 BLAKE2B 7e6a44574999967a6a728c5818999ac6f15234f1cfd1415132e1a8219e897affddd4d4ec488bb90ced82a0ce5403220463ccfa0424014a4c090176d85fd968a9 SHA512 252ecb36751add239897b6344dd622542f892b1850398fe724d0ab91e8d691cefe0b33c727c28aa630c93b76b381aabe69721db034c4de0518f346bbd5b698de
24 DIST icingaweb2-2.8.3.tar.gz 8514052 BLAKE2B 507753833ed8a0de816651f3fdb06f3fdf04b3fa9c43fad5046c28924c93f3c3e491d9a4e1532f08ac0d6abe97c1343b85cdb23de9ece9f16858b91886283e9c SHA512 236385dc54dbd11d8e100059bb7e29b3a4efc23888f187e13e563510dfb1f3d20e5c4107e2dadfa6842e6689aaa21d4e9465abd0a234c52229354f43ec44cfb4
25 +DIST icingaweb2-2.8.4.tar.gz 8514585 BLAKE2B 1c331d45152a94dcaf21509e36ecd9c90c840f41bf14d102910e65fce28994bb7db3319c39e5d5740638a673c74b84b54d803b97d91cb8968260174b2437a7ca SHA512 7f136f7901db8398fab85fef079d4e5af1662c13c5c107d3c1c10e022186bdca29d3b144f937e40e470975b97bd98215ec3e0c7f2b6127a6a74143fbe0e1882c
26 DIST icingaweb2-2.9.0.tar.gz 10895850 BLAKE2B cf0f1375e3eb29ddbbf6691afd1c240ae1431b7dd82bd591dd3fe135602d1eabc418c6279fe7bd8f8e519f264b69a9da8bb1d09d286f37aa2f7e5ed21ddacd5a SHA512 d8f2817c025160cd8f59f33d678ca6eea9b893b80ca5c45c719d8778269da46322e720a1c73d7bcd7be73a07f08dbe279ffb78220f2a6c00f7e07e9f0f88d4d4
27 +DIST icingaweb2-2.9.1.tar.gz 12303053 BLAKE2B aa90b4a9de89dda35d790a002230b14da2b64a155bb6742cb6425a49225fd7b34d0fe84d4184ee6835077c591862df10851ac8ccecf12253694180e455ef0665 SHA512 050eaecd68f40330ed3d1bf044d99af003f1867057c9fb0b51125490135d173ea076dc93c901b656942debc128d893db02e98e207de3b5d16ee3e6bb85f46702
28
29 diff --git a/www-apps/icingaweb2/icingaweb2-2.8.4.ebuild b/www-apps/icingaweb2/icingaweb2-2.8.4.ebuild
30 new file mode 100644
31 index 00000000000..c5f119e375d
32 --- /dev/null
33 +++ b/www-apps/icingaweb2/icingaweb2-2.8.4.ebuild
34 @@ -0,0 +1,77 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit depend.apache multilib
41 +
42 +DESCRIPTION="Icinga Web 2 - Frontend for icinga2"
43 +HOMEPAGE="http://www.icinga.org/"
44 +
45 +if [[ ${PV} == *9999 ]];then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://github.com/Icinga/icingaweb2.git"
48 + EGIT_BRANCH="master"
49 +else
50 + SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
51 + KEYWORDS="~amd64 ~x86"
52 +fi
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="apache2 apache2-server fpm ldap mysql nginx pdf postgres"
57 +REQUIRED_USE="( ^^ ( apache2-server nginx ) ) apache2? ( apache2-server )"
58 +
59 +DEPEND=">=net-analyzer/icinga2-2.1.1
60 + dev-php/pecl-imagick
61 + pdf? ( media-gfx/imagemagick[png] )
62 + apache2-server? ( >=www-servers/apache-2.4.0 )
63 + nginx? ( >=www-servers/nginx-1.7.0:* )
64 + || (
65 + dev-lang/php:7.3[apache2?,cli,fpm?,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
66 + dev-lang/php:7.4[apache2?,cli,fpm?,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
67 + )
68 + acct-group/icingacmd
69 + acct-group/icingaweb2"
70 +RDEPEND="${DEPEND}"
71 +
72 +want_apache2
73 +
74 +pkg_setup() {
75 + depend.apache_pkg_setup
76 +
77 + use nginx && usermod -a -G icingacmd,icingaweb2 nginx
78 + use apache2 && usermod -a -G icingacmd,icingaweb2 apache
79 +}
80 +
81 +pkg_config() {
82 + if [[ -d /etc/icingaweb2 ]] ; then
83 + einfo "Updating existing installation ..."
84 + else
85 + einfo "Running first time setup ..."
86 + einfo "Creating configuration directory ..."
87 + /usr/share/${PN}/bin/icingacli setup config directory
88 + einfo "Creating authentication token for web setup ..."
89 + /usr/share/${PN}/bin/icingacli setup token create
90 + if use apache2 ; then
91 + einfo "The following might be useful for your Apache2 configuration:"
92 + /usr/share/${PN}/bin/icingacli setup config webserver apache --document-root /usr/share/${PN}/public
93 + fi
94 + if use nginx ; then
95 + einfo "The following might be useful for your NGinx configuration:"
96 + /usr/share/${PN}/bin/icingacli setup config webserver nginx --document-root /usr/share/${PN}/public
97 + fi
98 + fi
99 + einfo "All done."
100 +}
101 +
102 +src_install() {
103 + insinto "/usr/share/${PN}"
104 + doins -r "${S}"/*
105 + fperms -R a+rX "/usr/share/${PN}/public/"
106 + fperms u+x,g+x "/usr/share/${PN}/bin/icingacli"
107 +}
108 +
109 +pkg_postinst() {
110 + einfo "Run 'emerge --config =${CATEGORY}/${PF}' to finish setup."
111 +}
112
113 diff --git a/www-apps/icingaweb2/icingaweb2-2.9.1.ebuild b/www-apps/icingaweb2/icingaweb2-2.9.1.ebuild
114 new file mode 100644
115 index 00000000000..84db9d6e071
116 --- /dev/null
117 +++ b/www-apps/icingaweb2/icingaweb2-2.9.1.ebuild
118 @@ -0,0 +1,78 @@
119 +# Copyright 1999-2021 Gentoo Authors
120 +# Distributed under the terms of the GNU General Public License v2
121 +
122 +EAPI=7
123 +
124 +inherit depend.apache multilib
125 +
126 +DESCRIPTION="Icinga Web 2 - Frontend for icinga2"
127 +HOMEPAGE="http://www.icinga.org/"
128 +
129 +if [[ ${PV} == *9999 ]];then
130 + inherit git-r3
131 + EGIT_REPO_URI="https://github.com/Icinga/icingaweb2.git"
132 + EGIT_BRANCH="master"
133 +else
134 + SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
135 + KEYWORDS="~amd64 ~x86"
136 +fi
137 +
138 +LICENSE="GPL-2"
139 +SLOT="0"
140 +IUSE="apache2 apache2-server fpm ldap mysql nginx pdf postgres"
141 +REQUIRED_USE="( ^^ ( apache2-server nginx ) ) apache2? ( apache2-server )"
142 +
143 +DEPEND=">=net-analyzer/icinga2-2.1.1
144 + dev-php/pecl-imagick
145 + pdf? ( media-gfx/imagemagick[png] )
146 + apache2-server? ( >=www-servers/apache-2.4.0 )
147 + nginx? ( >=www-servers/nginx-1.7.0:* )
148 + || (
149 + dev-lang/php:7.3[apache2?,cli,fpm?,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
150 + dev-lang/php:7.4[apache2?,cli,fpm?,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
151 + dev-lang/php:8.0[apache2?,cli,fpm?,gd,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
152 + )
153 + acct-group/icingacmd
154 + acct-group/icingaweb2"
155 +RDEPEND="${DEPEND}"
156 +
157 +want_apache2
158 +
159 +pkg_setup() {
160 + depend.apache_pkg_setup
161 +
162 + use nginx && usermod -a -G icingacmd,icingaweb2 nginx
163 + use apache2 && usermod -a -G icingacmd,icingaweb2 apache
164 +}
165 +
166 +pkg_config() {
167 + if [[ -d /etc/icingaweb2 ]] ; then
168 + einfo "Updating existing installation ..."
169 + else
170 + einfo "Running first time setup ..."
171 + einfo "Creating configuration directory ..."
172 + /usr/share/${PN}/bin/icingacli setup config directory
173 + einfo "Creating authentication token for web setup ..."
174 + /usr/share/${PN}/bin/icingacli setup token create
175 + if use apache2 ; then
176 + einfo "The following might be useful for your Apache2 configuration:"
177 + /usr/share/${PN}/bin/icingacli setup config webserver apache --document-root /usr/share/${PN}/public
178 + fi
179 + if use nginx ; then
180 + einfo "The following might be useful for your NGinx configuration:"
181 + /usr/share/${PN}/bin/icingacli setup config webserver nginx --document-root /usr/share/${PN}/public
182 + fi
183 + fi
184 + einfo "All done."
185 +}
186 +
187 +src_install() {
188 + insinto "/usr/share/${PN}"
189 + doins -r "${S}"/*
190 + fperms -R a+rX "/usr/share/${PN}/public/"
191 + fperms u+x,g+x "/usr/share/${PN}/bin/icingacli"
192 +}
193 +
194 +pkg_postinst() {
195 + einfo "Run 'emerge --config =${CATEGORY}/${PF}' to finish setup."
196 +}