diff options
Diffstat (limited to 'network/postfix/postfix.SlackBuild')
-rw-r--r-- | network/postfix/postfix.SlackBuild | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/network/postfix/postfix.SlackBuild b/network/postfix/postfix.SlackBuild index ca3332f3b9d08..80884b1e56ed1 100644 --- a/network/postfix/postfix.SlackBuild +++ b/network/postfix/postfix.SlackBuild @@ -23,7 +23,7 @@ # Modified by Mario Preksavec <mario@slackware.hr> PRGNAM=postfix -VERSION=${VERSION:-2.10.2} +VERSION=${VERSION:-2.11.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -58,20 +58,29 @@ fi SASL=${SASL:-dovecot} case "$SASL" in dovecot) SASLARGS='-DDEF_SERVER_SASL_TYPE=\"dovecot\"' - SASLLIBS="" ;; - cyrus) SASLARGS='-DUSE_CYRUS_SASL -I/usr/include/sasl' - SASLLIBS="-L/usr/lib${LIBDIRSUFFIX}/sasl2 -lsasl2" ;; + SASLLIBS='' ;; + cyrus) SASLARGS='-I/usr/include/sasl -DUSE_CYRUS_SASL' + SASLLIBS='-L/usr/lib${LIBDIRSUFFIX}/sasl2 -lsasl2' ;; *) SASLARGS='' - SASLLIBS="" ;; + SASLLIBS='' ;; esac -# Build with no database support by default +# Build without database support by default DATABASE=${DATABASE:-none} case "$DATABASE" in - mysql) DBARGS='-DHAS_MYSQL -I/usr/include/mysql' - DBLIBS="-L/usr/lib${LIBDIRSUFFIX}/mysql -lmysqlclient -lz -lm" ;; + mysql) DBARGS='-I/usr/include/mysql -DHAS_MYSQL' + DBLIBS='-L/usr/lib${LIBDIRSUFFIX}/mysql -lmysqlclient -lz -lm' ;; *) DBARGS='' - DBLIBS="" ;; + DBLIBS='' ;; +esac + +# Build without ldap support by default +LDAP=${LDAP:-no} +case "$LDAP" in + yes) LDAPARGS='-DHAS_LDAP -DUSE_LDAP_SASL' + LDAPLIBS='-lldap -llber' ;; + *) LDAPARGS='' + LDAPLIBS='' ;; esac # MySQL compile hack @@ -147,8 +156,8 @@ cd $PRGNAM-$VERSION # for adding additional support such as LDAP. make makefiles \ - CCARGS="-DUSE_SASL_AUTH -DUSE_TLS $SASLARGS $DBARGS" \ - AUXLIBS="-lssl -lcrypto $SASLLIBS $DBLIBS" \ + CCARGS="-DUSE_SASL_AUTH -DUSE_TLS $SASLARGS $DBARGS $LDAPARGS" \ + AUXLIBS="-lssl -lcrypto $SASLLIBS $DBLIBS $LDAPLIBS" \ OPT="$SLKCFLAGS" DEBUG="" make |