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