Skip to content

Commit c308903

Browse files
bump www-apps/icingaweb2-module-director-1.11.6
1 parent a11cc91 commit c308903

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
DIST icingaweb2-module-director-1.11.3.tar.gz 3473414 BLAKE2B 10aaa1abcc8c8ccdc930d8e29b0629ee608a32df4748d7eac38412b7d55c8ff42b7ad0a168db62fbf9e14f3bb476e7f65870241efec6e4439d957f56334bdaa3 SHA512 f1711d0fba593e676c56469e94ffadd1a5d539594dc8a477edbe9aaac05eeae44ee01acbdc788a4de250c48db1572ad50c5f63458b914cb99c1f7aae51f006b9
22
DIST icingaweb2-module-director-1.11.4.tar.gz 3472847 BLAKE2B 64a379d24b486a06cdf1eefaa461bd921deba019cca6224fdfa23ce3c095f1d0a134beef440cde097bc42587372c2dde16bd5ac2e787a72988a1a1c63ece6fdd SHA512 67d55c278378e0576cb5ff66343d159b2fbb0a96b2528b8dab7e152d8a1ffcd9bfa74e1a94de18d0836536e6f5bc896d129c71d3670470085f2599fef5ff9c5e
33
DIST icingaweb2-module-director-1.11.5.tar.gz 3474829 BLAKE2B 6a09f68b841921523a35914445b49f14037c5f7dcdb99d7262ce938db11996a4d1c826b8c524295eafb18a32b4566381785c08aae9f86c233b0374c553804c11 SHA512 00128ced976d12ff1de70558783342da5514f03864a02288377e52d77b3b16654f50149fde0a9a9f9ebba8b038f81a29ad2da0f4de6b4e73a591dfd38306fd90
4+
DIST icingaweb2-module-director-1.11.6.tar.gz 3478331 BLAKE2B 79da57722d1951b84ddb928ccc3e7c21ebb2315718edcc77bb295aa981d1a15f340859b8ebe40b8f0d43aefc393491d0e05428d06611fb41e615884ed92971ef SHA512 631ad68f88776210453701ec37e1412021a80a789d8403a26529d34f9ee53dd9b2a721b4ec645d27b1c250f323309b04ccae86019ffddc9b27f63ae760296158
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DESCRIPTION="Icinga Web 2 plugin for configuration"
7+
HOMEPAGE="https://github.com/Icinga/icingaweb2-module-director/"
8+
if [[ "${PV}" == 9999 ]]; then
9+
inherit git-r3
10+
EGIT_REPO_URI="https://github.com/Icinga/${PN}.git"
11+
else
12+
KEYWORDS="~amd64 ~x86"
13+
SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
14+
S="${WORKDIR}/${PN}-${PV}"
15+
fi
16+
17+
LICENSE="GPL-2"
18+
SLOT="0"
19+
20+
# Dependencies according to https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/02-Installation.md
21+
IUSE="php_targets_php8-2 php_targets_php8-3"
22+
PHP_DEPEND="
23+
php_targets_php8-2? ( dev-lang/php:8.2[curl,iconv,pcntl,posix,sockets] )
24+
php_targets_php8-3? ( dev-lang/php:8.3[curl,iconv,pcntl,posix,sockets] )
25+
"
26+
RDEPEND="
27+
${PHP_DEPEND}
28+
>=www-apps/icingaweb2-module-incubator-0.22.0
29+
>=dev-libs/icinga-php-library-0.14.1
30+
>=dev-libs/icinga-php-thirdparty-0.12.1
31+
>=www-apps/icingaweb2-2.12.1
32+
"
33+
DEPEND=""
34+
35+
src_install() {
36+
insinto "/usr/share/icingaweb2/modules/${PN##*-}/"
37+
doins -r "${S}"/*
38+
39+
exeinto /usr/share/icingaweb2/bin/
40+
doexe "${FILESDIR}/icinga-director.sh"
41+
42+
doinitd "${FILESDIR}/director"
43+
}
44+
45+
pkg_postinst() {
46+
# According to PMS this can be a space-separated list of version
47+
# numbers, even though in practice it is typically just one.
48+
local oldver
49+
for oldver in ${REPLACING_VERSIONS}; do
50+
if ver_test "${oldver}" -lt "1.11.0"; then
51+
ewarn "You are upgrading from $oldver to ${PVR}"
52+
ewarn "please read https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/05-Upgrading.md#upgrade-to-1.11.x"
53+
ewarn "for breaking changes"
54+
ewarn ""
55+
ewarn "Also, don't forget to upgrade database schema."
56+
ewarn "Otherwise icingaweb2-module-director will not work!"
57+
ewarn "(Web GUI => Configuration => Modules => director => Configuration)"
58+
ewarn ""
59+
break
60+
fi
61+
done
62+
}

0 commit comments

Comments
 (0)