From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C523A158089 for ; Wed, 13 Sep 2023 09:26:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 030252BC056; Wed, 13 Sep 2023 09:26:17 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E14BA2BC056 for ; Wed, 13 Sep 2023 09:26:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A792335CE9 for ; Wed, 13 Sep 2023 09:26:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2AA791191 for ; Wed, 13 Sep 2023 09:26:14 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1694597145.05df16d8ce37b4419ea746f0d86d56a530541356.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/icingaweb2-module-director/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/icingaweb2-module-director/Manifest www-apps/icingaweb2-module-director/icingaweb2-module-director-1.10.2.ebuild X-VCS-Directories: www-apps/icingaweb2-module-director/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 05df16d8ce37b4419ea746f0d86d56a530541356 X-VCS-Branch: master Date: Wed, 13 Sep 2023 09:26:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 748d8178-4391-4c8d-916a-2a9d6161922b X-Archives-Hash: 2e0f451684ab697f1c641cc5a2065c0e commit: 05df16d8ce37b4419ea746f0d86d56a530541356 Author: Anton Fischl fischl-online de> AuthorDate: Wed Sep 13 09:25:45 2023 +0000 Commit: David Seifert gentoo org> CommitDate: Wed Sep 13 09:25:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05df16d8 www-apps/icingaweb2-module-director: add 1.10.2 Signed-off-by: Anton Fischl fischl-online.de> Signed-off-by: David Seifert gentoo.org> www-apps/icingaweb2-module-director/Manifest | 1 + .../icingaweb2-module-director-1.10.2.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/www-apps/icingaweb2-module-director/Manifest b/www-apps/icingaweb2-module-director/Manifest index a938d4bbdc6f..0430fb2a2a22 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.9.1.tar.gz 3095028 BLAKE2B 497dfc2f4a6f3f7f11c75dc4b934f54f4ff7e0644d97637bcd3a932e88e8bc719290b87be93ce15a6160966f8e1d959cfd6b150a9f630f13d6ea1e455753e776 SHA512 0fa0da31b1d8899ee127f6c2e6f4ee243dc21fc9516cec70a687a78188c84d0de4bddb1ad20e1b0c22200d4219407bc7d128be7063eeeb5e0eb48f0054846f79 diff --git a/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.10.2.ebuild b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.10.2.ebuild new file mode 100644 index 000000000000..370c6d78fa9b --- /dev/null +++ b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.10.2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 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 +IUSE="php_targets_php8-1" + +PHP_DEPEND=" + php_targets_php8-1? ( dev-lang/php:8.1[curl,iconv,pcntl,posix,sockets] ) +" +DEPEND=" + acct-group/icingaweb2 + acct-user/icingadirector +" +RDEPEND=" + ${PHP_DEPEND} + ${DEPEND} + >=www-apps/icingaweb2-module-incubator-0.18.0 + >=dev-libs/icinga-php-library-0.5.0 + >=dev-libs/icinga-php-thirdparty-0.9.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.10.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.10.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 +}