Skip to content

Commit 3cdd559

Browse files
Merge pull request #567 from antonfischl1980/www-apps/icingaweb2-2.12.5
[ bump-ebuilds ] www-apps/icingaweb2-2.12.5
2 parents 4a50d6e + e926adf commit 3cdd559

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

www-apps/icingaweb2/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
DIST icingaweb2-2.12.1.tar.gz 6353911 BLAKE2B c1f52444c2ccc1eeafce89603564f21269607bc183a3189b80d93ccba5d621bf8c8bd79c75e5c9aaeb6672870923f99c98c7ebc469147125a803d16b00f9426d SHA512 71e6ad8f947ee47ff0bd3924920584c558fbd8e371f76adb83cc08e95442e792009af79280c484afe478cf1a176cf2812c6be661d838f61f044abdc106ca0999
22
DIST icingaweb2-2.12.2.tar.gz 6361027 BLAKE2B 4e50442f17ebc03b9f95659244bc105f500c54784181f3104978d25834c59d0ceea7ca76dae37c2bf1a26ceabafbf10b56f857fbc5a353ad932e03b9b01da21b SHA512 247a4a3089977434cf8588dc441f22678aacad8ffc2395a419abc921dfbca94a2170126dfef1e60b65abb6591432c9dec5559ca618224fa85728b2e72cc3b145
33
DIST icingaweb2-2.12.4.tar.gz 6362942 BLAKE2B 1a58607170e461ada2d531c008dae5d17cfc7244a5ee98a3f0a4784539d02c86122d3e76e3f753fa0cc4da4052e1526fae6444c03f7ba87dc724482df7757d19 SHA512 e068ee079726d4e941eb2bb2adc1e3f143cd1ccca5456fb93624344deb737ee20a116d3c638a845efe8871af39af7dffa6fe63fae63295573424bdba61c376b0
4+
DIST icingaweb2-2.12.5.tar.gz 6365042 BLAKE2B 222c60100af3cae58965c4af40be3004d83c0f6cb02473314d1237690d492f3484561f101818ab50b54e8fbf625a4be53c578fbba135994a34fd20f59a5e7f33 SHA512 e6e624d905f83d725dedcf4984526ee7efb488be11ce3ac80e4baec1894a4970e277dce024045a285f14e43801b9852722b34aff8b5b0db9f879e2905ec40bb5
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit depend.apache
7+
8+
DESCRIPTION="Icinga Web 2 - Frontend for icinga2"
9+
HOMEPAGE="http://www.icinga.org/"
10+
11+
if [[ ${PV} == *9999 ]];then
12+
inherit git-r3
13+
EGIT_REPO_URI="https://github.com/Icinga/icingaweb2.git"
14+
EGIT_BRANCH="master"
15+
else
16+
SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
17+
KEYWORDS="~amd64 ~x86"
18+
fi
19+
20+
LICENSE="GPL-2"
21+
SLOT="0"
22+
IUSE="apache2 apache2-server fpm ldap mysql nginx pdf postgres"
23+
REQUIRED_USE="( ?? ( apache2-server nginx ) ) apache2? ( apache2-server )"
24+
25+
IUSE="${IUSE} php_targets_php8-2 php_targets_php8-3"
26+
PHP_DEPEND="
27+
php_targets_php8-2? (
28+
dev-lang/php:8.2[apache2?,cli,curl,fileinfo,fpm?,gd,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
29+
)
30+
php_targets_php8-3? (
31+
dev-lang/php:8.3[apache2?,cli,curl,fileinfo,fpm?,gd,intl,ldap?,mysql?,nls,pdo,postgres?,sockets,ssl,xslt,xml]
32+
)
33+
"
34+
DEPEND=">=net-analyzer/icinga2-2.1.1
35+
dev-php/pecl-imagick
36+
pdf? ( media-gfx/imagemagick[png] )
37+
apache2-server? ( >=www-servers/apache-2.4.0 )
38+
nginx? ( >=www-servers/nginx-1.7.0:* )
39+
${PHP_DEPEND}
40+
>=dev-libs/icinga-php-library-0.13.0
41+
>=dev-libs/icinga-php-thirdparty-0.12.0
42+
acct-group/icingacmd
43+
acct-group/icingaweb2"
44+
RDEPEND="${DEPEND}
45+
apache2? ( acct-user/apache[icingaweb2] )
46+
nginx? ( acct-user/nginx[icingaweb2] )
47+
"
48+
49+
pkg_config() {
50+
if [[ -d /etc/icingaweb2 ]] ; then
51+
einfo "Updating existing installation ..."
52+
else
53+
einfo "Running first time setup ..."
54+
einfo "Creating configuration directory ..."
55+
/usr/share/"${PN}"/bin/icingacli setup config directory
56+
einfo "Creating authentication token for web setup ..."
57+
/usr/share/"${PN}"/bin/icingacli setup token create
58+
if use apache2 ; then
59+
einfo "The following might be useful for your Apache2 configuration:"
60+
/usr/share/"${PN}"/bin/icingacli setup config webserver apache --document-root /usr/share/"${PN}"/public
61+
fi
62+
if use nginx ; then
63+
einfo "The following might be useful for your NGinx configuration:"
64+
/usr/share/"${PN}"/bin/icingacli setup config webserver nginx --document-root /usr/share/"${PN}"/public
65+
fi
66+
fi
67+
einfo "All done."
68+
}
69+
70+
src_install() {
71+
insinto /etc/logrotate.d/
72+
newins "${FILESDIR}"/logrotate "${PN}"
73+
insinto "/usr/share/${PN}"
74+
doins -r "${S}"/*
75+
fperms -R a+rX "/usr/share/${PN}/public/"
76+
fperms u+x,g+x "/usr/share/${PN}/bin/icingacli"
77+
fowners root:icingaweb2 "/usr/share/${PN}/bin/icingacli"
78+
dosym "../share/${PN}/bin/icingacli" /usr/bin/icingacli
79+
dosym "../share/${PN}/bin/icingacli" /usr/sbin/icingacli
80+
dosym "../../usr/share/${PN}/etc/bash_completion.d/icingacli" /etc/bash_completion.d/icingacli
81+
keepdir /var/lib/"${PN}"
82+
keepdir /var/log/"${PN}"
83+
fowners nobody:icingaweb2 /var/{lib,log}/"${PN}"
84+
fperms g+w /var/{lib,log}/"${PN}"
85+
}
86+
87+
pkg_postinst() {
88+
einfo "Run 'emerge --config =${CATEGORY}/${PF}' to finish setup."
89+
}

0 commit comments

Comments
 (0)