commit:     d730ecc4c37d20fccc0a8403b5e54bce1593f275
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:18 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d730ecc4

www-apache/mod_auth_radius: Port to ver_replacing

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

 .../mod_auth_radius/mod_auth_radius-1.6.0.ebuild       | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/www-apache/mod_auth_radius/mod_auth_radius-1.6.0.ebuild 
b/www-apache/mod_auth_radius/mod_auth_radius-1.6.0.ebuild
index c53926ebd7cd..5b9ee1709fc0 100644
--- a/www-apache/mod_auth_radius/mod_auth_radius-1.6.0.ebuild
+++ b/www-apache/mod_auth_radius/mod_auth_radius-1.6.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit apache-module depend.apache
+inherit apache-module depend.apache eapi9-ver
 
 DESCRIPTION="Radius authentication for Apache"
 HOMEPAGE="https://freeradius.org/sub_projects/ 
https://github.com/FreeRADIUS/mod_auth_radius/";
@@ -26,14 +26,10 @@ pkg_setup() {
 }
 
 pkg_postinst() {
-       if [[ -n "${REPLACING_VERSIONS}" ]]; then
-               for v in ${REPLACING_VERSIONS}; do
-                       if ver_test ${v} -lt 1.6.0; then
-                               ewarn "Please note that upstream has changed 
the name of this module from"
-                               ewarn "    ${PN}-2.0.so"
-                               ewarn "to simply"
-                               ewarn "    ${PN}.so"
-                       fi
-               done
+       if ver_replacing -lt 1.6.0; then
+               ewarn "Please note that upstream has changed the name of this 
module from"
+               ewarn "    ${PN}-2.0.so"
+               ewarn "to simply"
+               ewarn "    ${PN}.so"
        fi
 }

Reply via email to