1 |
commit: 71006c31eef6f196534871211de231774587f635 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 04:57:32 2022 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 05:02:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71006c31 |
7 |
|
8 |
www-apps/icingaweb2: add 2.11.2 |
9 |
|
10 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
11 |
|
12 |
www-apps/icingaweb2/Manifest | 1 + |
13 |
www-apps/icingaweb2/icingaweb2-2.11.2.ebuild | 82 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 83 insertions(+) |
15 |
|
16 |
diff --git a/www-apps/icingaweb2/Manifest b/www-apps/icingaweb2/Manifest |
17 |
index dbb1f290c5ed..74da71f9ecf9 100644 |
18 |
--- a/www-apps/icingaweb2/Manifest |
19 |
+++ b/www-apps/icingaweb2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST icingaweb2-2.11.1.tar.gz 11410186 BLAKE2B 6211dac560ab7acd4b37b056ab32fa73d21521f5bb02509b63d703e986761e617c1304ff71c22fc1b0d820cabf4e1264d13847142daee7da5cc5644fb4164a67 SHA512 3df41958de29e6099acfbf002b9cf68da535cfd5400397e03d3ea59083ee68b8084c1cea85ae31cb6134cef2a2b39c18b53cabcbdf436e7ddc14f0ddbcd61997 |
22 |
+DIST icingaweb2-2.11.2.tar.gz 11412429 BLAKE2B 76d47cfa3558ff647b425c725dae40e10359ec6aa117cb5f7dc615dff98bf9e4e2b73b21bb37f02e9c0737d2d734f816532edc3da34fb3f52238eae676b611bc SHA512 c316b918c7c2bdd77b5815ba1b4f52604f9fd3801f8a4896ae416d27b2979238fb2ae619cb0048048c99c69fbc28352f57cd73f118d7afc84fbe0668b85b59e1 |
23 |
|
24 |
diff --git a/www-apps/icingaweb2/icingaweb2-2.11.2.ebuild b/www-apps/icingaweb2/icingaweb2-2.11.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..60f9756ef763 |
27 |
--- /dev/null |
28 |
+++ b/www-apps/icingaweb2/icingaweb2-2.11.2.ebuild |
29 |
@@ -0,0 +1,82 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit depend.apache multilib |
36 |
+ |
37 |
+DESCRIPTION="Icinga Web 2 - Frontend for icinga2" |
38 |
+HOMEPAGE="http://www.icinga.org/" |
39 |
+ |
40 |
+if [[ ${PV} == *9999 ]];then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/Icinga/icingaweb2.git" |
43 |
+ EGIT_BRANCH="master" |
44 |
+else |
45 |
+ SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz" |
46 |
+ KEYWORDS="~amd64 ~x86" |
47 |
+fi |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+IUSE="apache2 apache2-server fpm ldap mysql nginx pdf postgres" |
52 |
+REQUIRED_USE="( ^^ ( apache2-server nginx ) ) apache2? ( apache2-server )" |
53 |
+ |
54 |
+DEPEND=">=net-analyzer/icinga2-2.1.1 |
55 |
+ dev-php/pecl-imagick |
56 |
+ pdf? ( media-gfx/imagemagick[png] ) |
57 |
+ apache2-server? ( >=www-servers/apache-2.4.0 ) |
58 |
+ nginx? ( >=www-servers/nginx-1.7.0:* ) |
59 |
+ || ( |
60 |
+ dev-lang/php:7.3[apache2?,cli,fpm?,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml] |
61 |
+ dev-lang/php:7.4[apache2?,cli,fpm?,gd,json,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml] |
62 |
+ dev-lang/php:8.0[apache2?,cli,fpm?,gd,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml] |
63 |
+ dev-lang/php:8.1[apache2?,cli,fpm?,gd,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml] |
64 |
+ ) |
65 |
+ >=dev-libs/icinga-php-library-0.8.1 |
66 |
+ >=dev-libs/icinga-php-thirdparty-0.11.0 |
67 |
+ acct-group/icingacmd |
68 |
+ acct-group/icingaweb2" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+ |
71 |
+want_apache2 |
72 |
+ |
73 |
+pkg_setup() { |
74 |
+ depend.apache_pkg_setup |
75 |
+ |
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 |
+ fowners root:icingaweb2 "/usr/share/${PN}/bin/icingacli" |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ einfo "Run 'emerge --config =${CATEGORY}/${PF}' to finish setup." |
111 |
+} |