1 |
commit: 6ec3a0cfb159050b4d931468ec21a220facf088a |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 27 17:29:59 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 27 17:31:29 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ec3a0cf |
7 |
|
8 |
www-apps/icingaweb2: 2.5.0 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
www-apps/icingaweb2/Manifest | 3 +- |
13 |
www-apps/icingaweb2/icingaweb2-2.5.0.ebuild | 79 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/www-apps/icingaweb2/Manifest b/www-apps/icingaweb2/Manifest |
17 |
index dd565276f03..84448170a1a 100644 |
18 |
--- a/www-apps/icingaweb2/Manifest |
19 |
+++ b/www-apps/icingaweb2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
-DIST icingaweb2-2.4.2.tar.gz 7180122 SHA256 8ce42b4f0fb3ddd93c56d70c642512af13db1d5db2ad0227ec7567a4413daa94 SHA512 2a6f80561b59fde1b7ca72b8a120f93685a4741e7af036a90cdd5a1371f8e6d6caa25161f136b379255032b16b21914325a26f078121743d1299e96e7685ef53 WHIRLPOOL 0f350e796e5b03c5d3e0c501cdae8c485c2eb745da87e308f57066cfe507d24482799ab9e6fe1ed621c19f14fcca3b97c7f57d67a28ac51e42c13aa7094afe83 |
22 |
+DIST icingaweb2-2.4.2.tar.gz 7180122 BLAKE2B d3018ab2bbb9cbe501c638208d7546640b83775ef86e340b61c9a83bc8f250060c34a7dae74cc983252ff05747d951107ff5c7857aaa44dc387ce513843c503f SHA512 2a6f80561b59fde1b7ca72b8a120f93685a4741e7af036a90cdd5a1371f8e6d6caa25161f136b379255032b16b21914325a26f078121743d1299e96e7685ef53 |
23 |
+DIST icingaweb2-2.5.0.tar.gz 8032968 BLAKE2B f0fab047da90ff514f715a8ddbf51d97beb1cd052513a523c63fbb97a424ecee8ff7b2c63a6e432cda3d70bdb1283641702d3ae1ff4146d084b312009ccdbe5e SHA512 9946c74033550accdc7077b3f77ce035931c72645871808ea488113d3545f8082460c1b8a4dffcb08f01d452fab54fd425e90e77cd006a7783b426132015498f |
24 |
|
25 |
diff --git a/www-apps/icingaweb2/icingaweb2-2.5.0.ebuild b/www-apps/icingaweb2/icingaweb2-2.5.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9c54138b2b4 |
28 |
--- /dev/null |
29 |
+++ b/www-apps/icingaweb2/icingaweb2-2.5.0.ebuild |
30 |
@@ -0,0 +1,79 @@ |
31 |
+# Copyright 1999-2017 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 |
+} |