public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/icingaweb2-module-director/
Date: Sat, 15 Feb 2025 09:29:27 +0000 (UTC)	[thread overview]
Message-ID: <1739611600.16bd3c506765495099b3d1e6be18c32a31c64819.ulm@gentoo> (raw)

commit:     16bd3c506765495099b3d1e6be18c32a31c64819
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:20 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> 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 <ulm <AT> 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
 }


             reply	other threads:[~2025-02-15  9:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-15  9:29 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-16  9:26 [gentoo-commits] repo/gentoo:master commit in: www-apps/icingaweb2-module-director/ Joonas Niilola
2024-03-16  9:26 Joonas Niilola
2024-01-11 14:06 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=1739611600.16bd3c506765495099b3d1e6be18c32a31c64819.ulm@gentoo \
    --to=ulm@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