commit:     42cb8cf3082e1dc83af2313e4ffb869aeefc06d1
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sat Jan 10 07:16:11 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 11 09:04:50 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42cb8cf3

net-mail/dovecot: fix cert paths

install_cert path was changed in dovecot-2.4. Adjust cert paths in
conditional expression accordingly.

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Part-of: https://github.com/gentoo/gentoo/pull/45312
Closes: https://github.com/gentoo/gentoo/pull/45312
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/dovecot/dovecot-2.4.2-r1.ebuild | 6 +++---
 net-mail/dovecot/dovecot-2.4.2.ebuild    | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/net-mail/dovecot/dovecot-2.4.2-r1.ebuild 
b/net-mail/dovecot/dovecot-2.4.2-r1.ebuild
index 72643d9cd205..1908e43c3d1d 100644
--- a/net-mail/dovecot/dovecot-2.4.2-r1.ebuild
+++ b/net-mail/dovecot/dovecot-2.4.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -237,8 +237,8 @@ pkg_postinst() {
        fi
 
        # Let's not make a new certificate if we already have one
-       if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-               -e "${ROOT}"/etc/ssl/dovecot/server.key ]];     then
+       if ! [[ -e "${ROOT}"/etc/dovecot/server.pem && \
+               -e "${ROOT}"/etc/dovecot/server.key ]]; then
                einfo "Creating SSL     certificate"
                SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
                install_cert /etc/dovecot/server

diff --git a/net-mail/dovecot/dovecot-2.4.2.ebuild 
b/net-mail/dovecot/dovecot-2.4.2.ebuild
index ad5fea05ebbe..cd9e431684c9 100644
--- a/net-mail/dovecot/dovecot-2.4.2.ebuild
+++ b/net-mail/dovecot/dovecot-2.4.2.ebuild
@@ -234,8 +234,8 @@ pkg_postinst() {
        fi
 
        # Let's not make a new certificate if we already have one
-       if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-               -e "${ROOT}"/etc/ssl/dovecot/server.key ]];     then
+       if ! [[ -e "${ROOT}"/etc/dovecot/server.pem && \
+               -e "${ROOT}"/etc/dovecot/server.key ]]; then
                einfo "Creating SSL     certificate"
                SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
                install_cert /etc/dovecot/server

Reply via email to