From: Heiko Z. <smi...@us...> - 2004-11-14 22:22:28
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14723/scripts Modified Files: Tag: rel-1-2-patches postfix Log Message: - enabled sasl support for postfix - enabled ldap support for postfix - enabled mysql support for postfix Index: postfix =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/postfix,v retrieving revision 1.24 retrieving revision 1.24.2.1 diff -u -d -r1.24 -r1.24.2.1 --- postfix 4 Feb 2004 20:40:59 -0000 1.24 +++ postfix 14 Nov 2004 22:22:19 -0000 1.24.2.1 @@ -28,15 +28,35 @@ case $1 in build ) if [ "$CONFIG_POSTFIX" = "y" ]; then - make tidy + make tidy + CCARGS="" + AUXLIBS="-lpthread" if [ "$CONFIG_POSTFIX_TLS" = "y" ]; then - if [ ! -f postfix_tls_patch ]; then - PFIXTLSPATCH=$(ls $WORKDIR/pfixtls*/pfixtls.diff) - patch -p1 < $PFIXTLSPATCH || exit 1 - touch postfix_tls_patch - fi - make makefiles CCARGS="-DHAS_SSL" -I/usr/include/openssl AUXLIBS="-lssl -lcrypto" || exit 1 + if [ ! -f postfix_tls_patch ]; then + PFIXTLSPATCH=$(ls $WORKDIR/pfixtls*/pfixtls.diff) + patch -p1 < $PFIXTLSPATCH || exit 1 + touch postfix_tls_patch + fi + CCARGS="$CCARGS -DHAS_SSL -I/usr/include/openssl" + AUXLIBS="$AUXLIBS -lssl -lcrypto" fi + if [ "$CONFIG_CYRUS_SASL" = "y" ]; then + CCARGS="$CCARGS -DUSE_SASL_AUTH -I/usr/include/sasl" + AUXLIBS="$AUXLIBS -lsasl2" + fi + if [ "$CONFIG_OPENLDAPLIB" = "y" ]; then + CCARGS="$CCARGS -DHAS_LDAP" + AUXLIBS="$AUXLIBS -lldap -llber" + fi + if [ "$CONFIG_MYSQL_CLIENT" = "y" ]; then + CCARGS="$CCARGS -DHAS_MYSQL -I/usr/include/mysql" + AUXLIBS="$AUXLIBS -lmysqlclient -lm -lz" + fi + if [ "$CONFIG_POSTGRESQL_CLIENT" = "y" ]; then + CCARGS="$CCARGS -DHAS_PGSQL -I/usr/include/pgsql" + AUXLIBS="$AUXLIBS -lpq" + fi + make makefiles CCARGS="$CCARGS" AUXLIBS="$AUXLIBS" || exit 1 make $PMAKE || exit 1 strip_debug fi |