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

mail-filter/gld: Port to ver_replacing

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

 mail-filter/gld/gld-1.7-r4.ebuild | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/mail-filter/gld/gld-1.7-r4.ebuild 
b/mail-filter/gld/gld-1.7-r4.ebuild
index fcebb96bfe7e..f87e78194f53 100644
--- a/mail-filter/gld/gld-1.7-r4.ebuild
+++ b/mail-filter/gld/gld-1.7-r4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
 
-inherit toolchain-funcs
+inherit eapi9-ver toolchain-funcs
 
 DESCRIPTION="Standalone anti-spam greylisting algorithm on top of Postfix"
 HOMEPAGE="https://www.gasmi.net/gld.html";
@@ -74,12 +74,9 @@ pkg_preinst() {
        elog "details on how to setup gld."
        elog
        elog "The sql files have been installed to /usr/share/${PN}/sql."
-       local old_ver
-       for old_ver in ${REPLACING_VERSIONS} ; do
-               if ver_test ${old_ver} -eq "1.7-r1" ; then
-                       elog "You might want to use the ALTER_TABLE command to 
change the"
-                       elog "ip field width to 39 chars to accomodate ipv6 
addresses."
-                       elog "Please see your sql server documentation."
-               fi
-       done
+       if ver_replacing -eq "1.7-r1" ; then
+               elog "You might want to use the ALTER_TABLE command to change 
the"
+               elog "ip field width to 39 chars to accomodate ipv6 addresses."
+               elog "Please see your sql server documentation."
+       fi
 }

Reply via email to