From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id B08FB1582EF for ; Sat, 15 Feb 2025 09:29:56 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9CD38343083 for ; Sat, 15 Feb 2025 09:29:56 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A090511047F; Sat, 15 Feb 2025 09:29:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 bobolink.gentoo.org (Postfix) with ESMTPS id 9909B11047F for ; Sat, 15 Feb 2025 09:29:31 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4AC2F343061 for ; Sat, 15 Feb 2025 09:29:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA6F12728 for ; Sat, 15 Feb 2025 09:29:27 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1739611600.16bd3c506765495099b3d1e6be18c32a31c64819.ulm@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/icingaweb2-module-director-1.11.1.ebuild www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild X-VCS-Directories: www-apps/icingaweb2-module-director/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 16bd3c506765495099b3d1e6be18c32a31c64819 X-VCS-Branch: master Date: Sat, 15 Feb 2025 09:29:27 +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: d2e2b721-02e6-4aa7-b2a1-d7ccde3bc69e X-Archives-Hash: e1ab6c6238bc9547e3e8c1ce0419d034 commit: 16bd3c506765495099b3d1e6be18c32a31c64819 Author: Ulrich Müller gentoo org> AuthorDate: Fri Feb 14 14:12:20 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Feb 15 09:26:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16bd3c50 www-apps/icingaweb2-module-director: Port to ver_replacing Signed-off-by: Ulrich Müller gentoo.org> .../icingaweb2-module-director-1.11.1.ebuild | 30 +++++++++------------- .../icingaweb2-module-director-9999.ebuild | 30 +++++++++------------- 2 files changed, 24 insertions(+), 36 deletions(-) diff --git a/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.1.ebuild b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.1.ebuild index 7e4d8a5a4368..9064fb55ced0 100644 --- a/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.1.ebuild +++ b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.11.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit systemd +inherit eapi9-ver systemd DESCRIPTION="Icinga Web 2 plugin for configuration" HOMEPAGE="https://github.com/Icinga/icingaweb2-module-director/" @@ -59,20 +59,14 @@ src_install() { } 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 + if ver_replacing -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 + fi } diff --git a/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild b/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild index 7e4d8a5a4368..9064fb55ced0 100644 --- a/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild +++ b/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit systemd +inherit eapi9-ver systemd DESCRIPTION="Icinga Web 2 plugin for configuration" HOMEPAGE="https://github.com/Icinga/icingaweb2-module-director/" @@ -59,20 +59,14 @@ src_install() { } 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 + if ver_replacing -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 + fi }