[Lunar-commits] <moonbase> postfix: add cyrus-sasladded dovecot SASL support.

Florin Braescu florin at lunar-linux.org
Sun Feb 22 18:06:43 CET 2009


commit a5ea41384534f282bbb8843e2d7fb2a35aea26c1
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Feb 22 19:06:43 2009 +0200

    postfix: add cyrus-sasladded dovecot SASL support.
    
    Submitted by Richard Pyne. Thank You.
---
 mail/postfix/BUILD   |    9 +++++++--
 mail/postfix/DEPENDS |   13 +++++++------
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/mail/postfix/BUILD b/mail/postfix/BUILD
index c4e4a52..d0fe4bf 100644
--- a/mail/postfix/BUILD
+++ b/mail/postfix/BUILD
@@ -35,12 +35,17 @@
     CCARGS=$CCARGS" -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
   fi  &&
 
+  if in_depends $MODULE dovecot ; then
+    AUXLIBS=$AUXLIBS" -lssl -lcrypto"
+    CCARGS=$CCARGS' -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include/openssl'
+  fi  &&
+
   AUXLIBS=$AUXLIBS" -lpthread"
   echo CCARGS=$CCARGS      &&
   echo AUXLIBS=$AUXLIBS    &&
 
-  make "OPT=$CFLAGS" "AUXLIBS=$AUXLIBS" "CCARGS=$CCARGS"   &&
-  prepare_install          &&
+  make "OPT=$CFLAGS" "AUXLIBS=$AUXLIBS" "CCARGS=$CCARGS"  &&
+  prepare_install  &&
 
   sh postfix-install -non-interactive                   \
        config_directory=/etc/postfix                    \
diff --git a/mail/postfix/DEPENDS b/mail/postfix/DEPENDS
index 15b02ed..058f4b5 100644
--- a/mail/postfix/DEPENDS
+++ b/mail/postfix/DEPENDS
@@ -5,10 +5,11 @@ depends  perl
 # the --without-* options are fake but will trigger in_depends to
 # correctly disable *installed* optional dependencies --sofar
 
-optional_depends  pcre "" "--without-pcre" "for improved regexp support"
-optional_depends  openldap "" "--without-openldap" "for ldap support"
-optional_depends  mysql "" "--without-mysql" "for mysql support"
-optional_depends  postgresql "" "--without-postgresql" "for postgresqul support"
-optional_depends  cyrus-sasl "" "--without-cyrus-sasl" "for SMTP authentication and TSL"
+optional_depends  pcre         "" "--without-pcre"         "for improved regexp support"
+optional_depends  openldap     "" "--without-openldap"     "for ldap support"
+optional_depends  mysql        "" "--without-mysql"        "for mysql support"
+optional_depends  postgresql   "" "--without-postgresql"   "for postgresqul support"
+optional_depends  dovecot      "" "--without-dovecot-sasl" "for SMTP austhentication and TLS with dovecot"
+optional_depends  cyrus-sasl   "" "--without-cyrus-sasl"   "for SMTP authentication and TLS with cyrus-sasl"
 optional_depends  courier-imap "" "--without-courier-imap" "if you intend to run with Maildir"
-optional_depends  smtpclient "" "--without-smtpclient" "useful with spamassassin & Maildir"
+optional_depends  smtpclient   "" "--without-smtpclient"   "useful with spamassassin & Maildir"


More information about the Lunar-commits mailing list