public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/icingaweb2-module-director/
Date: Thu, 11 Jan 2024 14:06:10 +0000 (UTC)	[thread overview]
Message-ID: <1704981946.cbdcbdde703a0c12b45d5400d7c4b1d86a21faaa.juippis@gentoo> (raw)

commit:     cbdcbdde703a0c12b45d5400d7c4b1d86a21faaa
Author:     Anton Fischl <github <AT> fischl-online <DOT> de>
AuthorDate: Sun Nov  5 09:00:16 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jan 11 14:05:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbdcbdde

www-apps/icingaweb2-module-director: add 1.11.0

Signed-off-by: Anton Fischl <github <AT> fischl-online.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 www-apps/icingaweb2-module-director/Manifest       |  1 +
 .../icingaweb2-module-director-1.11.0.ebuild       | 77 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/www-apps/icingaweb2-module-director/Manifest b/www-apps/icingaweb2-module-director/Manifest
index 6ab8916c3280..455f35328ab3 100644
--- a/www-apps/icingaweb2-module-director/Manifest
+++ b/www-apps/icingaweb2-module-director/Manifest
@@ -1 +1,2 @@
 DIST icingaweb2-module-director-1.10.2.tar.gz 3114956 BLAKE2B d050c501682ac3c1481d8710a3fc64642d0b18e92448bf05cd4a51e8a660c7a9abf571937a559a2dadd949535fca04feb1004a8613de7e4d0bbe54db5a377a25 SHA512 b301b71abada8c8722c03717a9def17c8ae53c951c83d5ef3a62f758fb93dd814d1b61d450987ddd0d8d3631145637dc6b26884134019e320cdd28cdedbc9794
+DIST icingaweb2-module-director-1.11.0.tar.gz 3465395 BLAKE2B 8d0dcb590c3a735bcd279bf044c354b34f2f1edbc238a71236ec60e1e915660b80230c5076234cd6fb75fc7ec0ab1a8df967092c3f2f1c5e9305033b04236bf4 SHA512 1709920489248e7b6a84ffaa50996c9c061e04e744224fabc48a8885c30ed136cd0eb6db1a5e9a7bb3e07302b733554afa27060295b2ecea25f3416646656285

diff --git a/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.0.ebuild b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.0.ebuild
new file mode 100644
index 000000000000..c6b6e7186f8f
--- /dev/null
+++ b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd
+
+DESCRIPTION="Icinga Web 2 plugin for configuration"
+HOMEPAGE="https://github.com/Icinga/icingaweb2-module-director/"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Icinga/${PN}.git"
+else
+	KEYWORDS="~amd64 ~x86"
+	SRC_URI="https://codeload.github.com/Icinga/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+# Dependencies according to
+# https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/02-Installation.md.d/From-Source.md
+IUSE="php_targets_php8-1 php_targets_php8-2"
+
+PHP_DEPEND="
+	php_targets_php8-1? ( dev-lang/php:8.1[curl,iconv,pcntl,posix,sockets] )
+	php_targets_php8-2? ( dev-lang/php:8.2[curl,iconv,pcntl,posix,sockets] )
+"
+DEPEND="
+	acct-group/icingaweb2
+	acct-user/icingadirector
+"
+RDEPEND="
+	${PHP_DEPEND}
+	${DEPEND}
+	>=www-apps/icingaweb2-module-incubator-0.20.0
+	>=dev-libs/icinga-php-library-0.13.0
+	>=dev-libs/icinga-php-thirdparty-0.12.0
+	>=www-apps/icingaweb2-2.9.0
+"
+
+src_install() {
+	insinto /usr/share/icingaweb2/modules/${PN##*-}/
+	doins -r .
+
+	exeinto /usr/share/icingaweb2/bin/
+	doexe "${FILESDIR}"/icinga-director.sh
+
+	doinitd "${FILESDIR}"/director
+
+	keepdir /var/lib/${PN}
+	fowners icingadirector:icingaweb2 /var/lib/${PN}
+	fperms 0750 /var/lib/${PN}
+	sed -e "s|/usr/bin/icingacli|/usr/share/icingaweb2/bin/icingacli|g" \
+		contrib/systemd/icinga-director.service > "${T}"/icinga-director.service \
+		|| die "failed to patch icinga-director.service"
+	systemd_dounit "${T}"/icinga-director.service
+}
+
+pkg_postinst() {
+	# According to PMS this can be a space-separated list of version
+	# numbers, even though in practice it is typically just one.
+	local oldver
+	for oldver in ${REPLACING_VERSIONS}; do
+		if ver_test "${oldver}" -lt "1.11.0"; then
+			ewarn "You are upgrading from ${oldver} to ${PVR}"
+			ewarn "please read https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/05-Upgrading.md#upgrade-to-1.11.x"
+			ewarn "for breaking changes"
+			ewarn
+			ewarn "Also, don't forget to upgrade database schema."
+			ewarn "Otherwise icingaweb2-module-director will not work!"
+			ewarn "(Web GUI => Configuration => Modules => director => Configuration)"
+			ewarn
+			break
+		fi
+	done
+}


             reply	other threads:[~2024-01-11 14:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11 14:06 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-02  3:34 [gentoo-commits] repo/gentoo:master commit in: www-apps/icingaweb2-module-director/ Jay Faulkner
2025-04-02  3:18 Jay Faulkner
2025-04-02  3:18 Jay Faulkner
2025-02-15  9:29 Ulrich Müller
2024-03-16  9:26 Joonas Niilola
2024-03-16  9:26 Joonas Niilola
2024-01-11 14:06 Joonas Niilola
2023-09-13  9:26 David Seifert
2023-09-13  9:26 David Seifert
2023-09-13  9:26 David Seifert
2022-09-09  4:48 Matthew Thode
2022-08-09  1:10 Matthew Thode
2022-07-07 15:56 Matthew Thode
2022-04-05 19:03 Brian Evans
2022-03-03 18:17 Jakov Smolić
2022-03-03 18:17 Jakov Smolić
2021-12-29 17:11 Matthew Thode
2021-12-28 21:25 Matthew Thode
2021-08-06 15:13 Matthew Thode
2021-07-05 20:02 Matthew Thode
2021-06-08  2:56 Matthew Thode
2019-04-25  1:11 Matthew Thode
2019-03-24 18:37 Matthew Thode
2018-06-15 22:03 Matt Thode
2017-10-04  9:17 Michał Górny
2016-06-30 22:57 Matt Thode

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1704981946.cbdcbdde703a0c12b45d5400d7c4b1d86a21faaa.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox