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: net-firewall/ufw/
Date: Sat, 15 Feb 2025 09:29:26 +0000 (UTC)	[thread overview]
Message-ID: <1739611592.461af6795c7bb677403a9ca87988eaca15d3c454.ulm@gentoo> (raw)

commit:     461af6795c7bb677403a9ca87988eaca15d3c454
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:33 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=461af679

net-firewall/ufw: Port to ver_replacing

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 net-firewall/ufw/ufw-0.36.1-r1.ebuild | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/net-firewall/ufw/ufw-0.36.1-r1.ebuild b/net-firewall/ufw/ufw-0.36.1-r1.ebuild
index 09b82a5878f8..e07e81596326 100644
--- a/net-firewall/ufw/ufw-0.36.1-r1.ebuild
+++ b/net-firewall/ufw/ufw-0.36.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{10..13} )
 DISTUTILS_IN_SOURCE_BUILD=1
 DISTUTILS_USE_SETUPTOOLS=no
 
-inherit bash-completion-r1 distutils-r1 linux-info systemd
+inherit bash-completion-r1 distutils-r1 eapi9-ver linux-info systemd
 
 DESCRIPTION="A program used to manage a netfilter firewall"
 HOMEPAGE="https://launchpad.net/ufw"
@@ -166,9 +166,6 @@ python_install_all() {
 }
 
 pkg_postinst() {
-	local print_check_req_warn
-	print_check_req_warn=false
-
 	local found=()
 	local apps=( "net-firewall/arno-iptables-firewall"
 		"net-firewall/ferm"
@@ -190,7 +187,7 @@ pkg_postinst() {
 		ewarn "If enabled, these applications may interfere with ufw!"
 	fi
 
-	if [[ -z "${REPLACING_VERSIONS}" ]]; then
+	if [[ -z ${REPLACING_VERSIONS} ]]; then
 		echo ""
 		elog "To enable ufw, add it to boot sequence and activate it:"
 		elog "-- # rc-update add ufw boot"
@@ -198,18 +195,8 @@ pkg_postinst() {
 		echo
 		elog "If you want to keep ufw logs in a separate file, take a look at"
 		elog "/usr/share/doc/${PF}/logging."
-		print_check_req_warn=true
-	else
-		local rv
-		for rv in ${REPLACING_VERSIONS}; do
-			local major=${rv%%.*}
-			local minor=${rv#${major}.}
-			if [[ "${major}" -eq 0 && "${minor}" -lt 34 ]]; then
-				print_check_req_warn=true
-			fi
-		done
 	fi
-	if [[ "${print_check_req_warn}" == "true" ]]; then
+	if [[ -z ${REPLACING_VERSIONS} ]] || ver_replacing -lt 0.34; then
 		echo
 		elog "/usr/share/ufw/check-requirements script is installed."
 		elog "It is useful for debugging problems with ufw. However one"


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

Thread overview: 48+ 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 --
2025-06-22 15:53 [gentoo-commits] repo/gentoo:master commit in: net-firewall/ufw/ Sam James
2025-04-21  7:01 Sam James
2025-04-09 13:47 Sam James
2025-04-02  6:05 Sam James
2025-03-31 18:14 Sam James
2025-03-31 17:33 Sam James
2024-10-08  7:59 Sam James
2024-06-04  7:13 Sam James
2024-06-02  4:57 Sam James
2022-12-18 11:30 Sam James
2022-07-24 16:49 Florian Schmaus
2022-07-02 15:53 Sam James
2022-07-01  9:02 Florian Schmaus
2022-07-01  9:02 Florian Schmaus
2022-02-18  2:44 Sam James
2021-09-09 23:56 Sam James
2021-08-18  0:35 Yixun Lan
2021-08-16  6:33 Joonas Niilola
2021-08-16  6:33 Joonas Niilola
2021-05-25 16:05 Michał Górny
2021-05-25 16:05 Michał Górny
2021-02-22  7:14 Sam James
2021-02-22  7:12 Sam James
2020-07-01  6:39 Joonas Niilola
2020-07-01  6:39 Joonas Niilola
2019-08-13 16:53 Joonas Niilola
2019-08-13 10:32 Agostino Sarubbo
2019-08-13 10:30 Agostino Sarubbo
2019-08-12  8:02 Agostino Sarubbo
2019-08-11 21:30 Thomas Deutschmann
2019-08-11 11:20 David Seifert
2019-08-10  9:04 Sergei Trofimovich
2019-08-07  8:01 Sergei Trofimovich
2019-03-31 16:39 Patrice Clement
2019-01-31  7:25 Sergei Trofimovich
2017-09-12 23:02 Matt Turner
2017-09-12 23:02 Matt Turner
2017-08-05  9:59 Michael Palimaka
2017-07-15 17:25 Tobias Klausmann
2017-07-15  9:00 Sergei Trofimovich
2017-05-11 22:41 Michael Orlitzky
2017-04-08  8:25 Amy Liffey
2017-03-10 16:01 Manuel Rüger
2016-08-11  6:35 Patrice Clement
2016-06-19  2:16 Göktürk Yüksek
2016-03-14  4:31 Jason Zaman
2015-10-17 22:30 Manuel Rüger

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=1739611592.461af6795c7bb677403a9ca87988eaca15d3c454.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