From 57968710789a798657ea90cdcfdff712a77480f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Van=C4=9Bk?= Date: Tue, 20 May 2025 09:37:03 +0200 Subject: [PATCH] net-mail/dovecot: port to ver_replacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Vaněk --- net-mail/dovecot/dovecot-2.4.1-r1.ebuild | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/net-mail/dovecot/dovecot-2.4.1-r1.ebuild b/net-mail/dovecot/dovecot-2.4.1-r1.ebuild index a069ed2c2041c..85785a66b4def 100644 --- a/net-mail/dovecot/dovecot-2.4.1-r1.ebuild +++ b/net-mail/dovecot/dovecot-2.4.1-r1.ebuild @@ -6,7 +6,7 @@ EAPI=8 LUA_COMPAT=( lua5-1 lua5-{3..4} ) # do not add a ssl USE flag. ssl is mandatory SSL_DEPS_SKIP=1 -inherit autotools flag-o-matic lua-single ssl-cert systemd toolchain-funcs +inherit autotools eapi9-ver flag-o-matic lua-single ssl-cert systemd toolchain-funcs MY_P="${P/_/.}-4" MY_PV="${PV}-4" @@ -221,19 +221,13 @@ src_install() { } pkg_postinst() { - local replacing_version - for replacing_version in ${REPLACING_VERSIONS} ; do - if ver_test "${replacing_version}" -lt 2.4 ; then - # This is an upgrade which requires user review - ewarn "" - ewarn "Dovecot-2.4.x has new settings and WILL NOT work" - ewarn "unless the configuration files are updated." - ewarn "Please read the migration guide at:" - ewarn " https://doc.dovecot.org/2.4.1/installation/upgrade/2.3-to-2.4.html" - # Show this elog only once - break - fi - done + if ver_replacing -lt 2.4 ; then + # This is an upgrade which requires user review + ewarn "Dovecot-2.4.x has new settings and WILL NOT work" + ewarn "unless the configuration files are updated." + ewarn "Please read the migration guide at:" + ewarn " https://doc.dovecot.org/2.4.1/installation/upgrade/2.3-to-2.4.html" + fi # Let's not make a new certificate if we already have one if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \