From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1718046-garchives=archives.gentoo.org@lists.gentoo.org>
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 4CAFD1582EF
	for <garchives@archives.gentoo.org>; Sat, 15 Feb 2025 09:29:37 +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 31C4F343089
	for <garchives@archives.gentoo.org>; Sat, 15 Feb 2025 09:29:37 +0000 (UTC)
Received: from bobolink.gentoo.org (localhost [127.0.0.1])
	by bobolink.gentoo.org (Postfix) with ESMTP id A844B110474;
	Sat, 15 Feb 2025 09:29:28 +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 9FA02110474
	for <gentoo-commits@lists.gentoo.org>; Sat, 15 Feb 2025 09:29:28 +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 584BC343061
	for <gentoo-commits@lists.gentoo.org>; Sat, 15 Feb 2025 09:29:28 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E640F2715
	for <gentoo-commits@lists.gentoo.org>; Sat, 15 Feb 2025 09:29:26 +0000 (UTC)
From: "Ulrich Müller" <ulm@gentoo.org>
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" <ulm@gentoo.org>
Message-ID: <1739611592.461af6795c7bb677403a9ca87988eaca15d3c454.ulm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/ufw/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-firewall/ufw/ufw-0.36.1-r1.ebuild
X-VCS-Directories: net-firewall/ufw/
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: 461af6795c7bb677403a9ca87988eaca15d3c454
X-VCS-Branch: master
Date: Sat, 15 Feb 2025 09:29:26 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3d2f4f04-c467-467c-aa67-f9707eaf3746
X-Archives-Hash: 80905b09e738cdf1ea48be14f346effe

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"