commit:     a22ca9bf71dda897d8b3520e0647373698e63a7e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:38 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 15:51:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a22ca9bf

net-ftp/pure-ftpd: Port to ver_replacing

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

 net-ftp/pure-ftpd/pure-ftpd-1.0.52.ebuild | 16 ++++++----------
 net-ftp/pure-ftpd/pure-ftpd-9999.ebuild   | 16 ++++++----------
 2 files changed, 12 insertions(+), 20 deletions(-)

diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.52.ebuild 
b/net-ftp/pure-ftpd/pure-ftpd-1.0.52.ebuild
index f37295fff191..2721d6912f95 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.52.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.52.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 flag-o-matic
+inherit eapi9-ver flag-o-matic
 
 DESCRIPTION="Fast, production-quality, standard-conformant FTP server"
 HOMEPAGE="https://www.pureftpd.org/project/pure-ftpd/";
@@ -154,13 +154,9 @@ pkg_postinst() {
                ewarn "Check out 
http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info"
                ewarn "and 
http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info."
                ewarn
-       else
-               for v in ${REPLACING_VERSIONS} ; do
-                       if ver_test "${v}" -le "1.0.50" ; then
-                               einfo "Configuration through 
/etc/conf.d/pure-ftpd is now deprecated!"
-                               einfo "Please migrate your settings to the new 
configuration file."
-                               einfo "Use /etc/pure-ftpd.conf to adjust your 
settings."
-                       fi
-               done
+       elif ver_replacing -le "1.0.50" ; then
+               einfo "Configuration through /etc/conf.d/pure-ftpd is now 
deprecated!"
+               einfo "Please migrate your settings to the new configuration 
file."
+               einfo "Use /etc/pure-ftpd.conf to adjust your settings."
        fi
 }

diff --git a/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild 
b/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild
index e51853eb0ea5..bdada3101f81 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-9999.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-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 flag-o-matic
+inherit eapi9-ver flag-o-matic
 
 DESCRIPTION="Fast, production-quality, standard-conformant FTP server"
 HOMEPAGE="https://www.pureftpd.org/project/pure-ftpd/";
@@ -154,13 +154,9 @@ pkg_postinst() {
                ewarn "Check out 
http://download.pureftpd.org/pub/pure-ftpd/doc/README for general info"
                ewarn "and 
http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS for SSL/TLS info."
                ewarn
-       else
-               for v in ${REPLACING_VERSIONS} ; do
-                       if ver_test "${v}" -le "1.0.50" ; then
-                               einfo "Configuration through 
/etc/conf.d/pure-ftpd is now deprecated!"
-                               einfo "Please migrate your settings to the new 
configuration file."
-                               einfo "Use /etc/pure-ftpd.conf to adjust your 
settings."
-                       fi
-               done
+       elif ver_replacing -le "1.0.50" ; then
+               einfo "Configuration through /etc/conf.d/pure-ftpd is now 
deprecated!"
+               einfo "Please migrate your settings to the new configuration 
file."
+               einfo "Use /etc/pure-ftpd.conf to adjust your settings."
        fi
 }

Reply via email to