From e7bb4b219dc93ac64e483e63043f72d5f9ac2310 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Tue, 28 Nov 2017 21:10:02 -0800 Subject: [PATCH] mail-mta/courier: packge config and gnutls path fixes for ssl/tls * domainname is uncommon and not in the dependencies, so use hostname -d instead * use=gnutls breaks the mkfoocert scripts unless CERTTOOL path is set to /usr/bin/certtool * lastly, starttls handshake will fail unless the corresponding service (such as imapd-ssl) has both *START=YES and *TLS_REQUIRED=1 Signed-off-by: Steve Arnold --- mail-mta/courier/courier-0.76.4.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail-mta/courier/courier-0.76.4.ebuild b/mail-mta/courier/courier-0.76.4.ebuild index f1b0aa7..a4ac73d 100644 --- a/mail-mta/courier/courier-0.76.4.ebuild +++ b/mail-mta/courier/courier-0.76.4.ebuild @@ -71,6 +71,8 @@ src_configure() { local myconf myconf="" + use gnutls && export ac_cv_path_CERTTOOL=/usr/bin/certtool + use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf" econf ${myconf} \ @@ -254,7 +256,7 @@ pkg_config() { mailhost="$(hostname)" export mailhost - domainname="$(domainname)" + domainname="$(hostname -d)" if [ "x$domainname" = "x(none)" ] ; then domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")" fi -- 2.15.0