net-mail/courier-imap: Move dhparams.pem directory to /etc/courier-imap
authorTupone Alfredo <tupone@gentoo.org>
Thu, 4 Jul 2019 16:59:48 +0000 (18:59 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Thu, 4 Jul 2019 16:59:48 +0000 (18:59 +0200)
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

net-mail/courier-imap/courier-imap-5.0.7.ebuild

index ca3d3db180054336a6a2a4b3602a120e54c530c1..c109323e7fa2ba014e2ad647a303c74779b1d58e 100644 (file)
@@ -61,6 +61,7 @@ For a quick-start howto please refer to
 ${PN}-gentoo.readme in /usr/share/doc/${PF}
 
 Please convert maildir to utf8
+and rerun mkdhparams if needed. Locatio has changed
 "
 
 PATCHES=(
@@ -111,19 +112,11 @@ src_configure() {
                --enable-workarounds-for-imap-client-bugs \
                --with-mailuser=mail \
                --with-mailgroup=mail \
+               --with-certsdir="/etc/courier-imap" \
                $(use_with fam) \
                $(use_with ipv6) \
                $(use_with gnutls) \
                ${myconf}
-
-       # Change the pem file location.
-       sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \
-               libs/imap/imapd-ssl.dist || \
-               die "sed failed"
-
-       sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \
-               libs/imap/pop3d-ssl.dist || \
-               die "sed failed"
 }
 
 #src_compile() {
@@ -190,7 +183,7 @@ src_install() {
 
        dosbin "${FILESDIR}/mkimapdcert" "${FILESDIR}/mkpop3dcert"
 
-       dosym /usr/sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"
+       dosym ../../sbin/courierlogger "/usr/$(get_libdir)/${PN}/courierlogger"
 
        for initd in courier-{imapd,pop3d}{,-ssl} ; do
                sed -e "s:GENTOO_LIBDIR:$(get_libdir):g" \