Date: Thu, 12 Sep 2002 22:25:15 -0300 (ADT) From: "Marc G. Fournier" <scrappy@hub.org> To: khera@kciLink.com Cc: freebsd-ports@freebsd.org Subject: Patch for postfix-current to allow for SASLv2 vs SASLv1 Message-ID: <20020912222015.H57037-100000@hub.org>
next in thread | raw e-mail | index | archive | help
Just a simple patch that allows for compiling with SASLv2 vs SASLv1 ... so that those of us using SASLv2 can easily do SMTP_AUTH ... If/when applied, the following patches can also be removed: Edit ports/mail/postfix-current/files/patch-ei Edit ports/mail/postfix-current/files/patch-ej Edit ports/mail/postfix-current/files/patch-lmtp.h As this patch using -I to find the appropriate headers, instead of modifying the .c files themselves ... *** scripts/configure.postfix.orig Wed Jul 31 17:26:34 2002 --- scripts/configure.postfix Thu Sep 12 22:14:39 2002 *************** *** 15,20 **** --- 15,21 ---- Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" OFF \ SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" OFF \ + SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" OFF \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" OFF \ MySQL "MySQL map lookups" OFF \ PgSQL "PostgreSQL map lookups" OFF \ *************** *** 59,71 **** echo "PCRE_SUFFIX= +pcre" SUB_PCRE="" ;; ! \"SASL\") ! echo "LIB_DEPENDS+= sasl.8:\${PORTSDIR}/security/cyrus-sasl" ! echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include" ! echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lsasl -lpam -lcrypt" ! echo "SASL_SUFFIX= +sasl" ! if [ -f ${PREFIX}/lib/libsasl.a ]; then ! if nm ${PREFIX}/lib/libsasl.a | grep -wq "mysql_verify_password"; then echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql" echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz" fi --- 60,91 ---- echo "PCRE_SUFFIX= +pcre" SUB_PCRE="" ;; ! \"SASL\") ! echo "LIB_DEPENDS+= sasl.8:\${PORTSDIR}/security/cyrus-sasl" ! echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include -I\${LOCALBASE}/include/sasl1" ! echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lsasl -lpam -lcrypt" ! echo "SASL_SUFFIX= +sasl" ! if [ -f ${PREFIX}/lib/libsasl.a ]; then ! if nm ${PREFIX}/lib/libsasl.a | grep -wq "mysql_verify_password"; then ! echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql" ! echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz" ! fi ! else ! echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql" ! echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz" ! fi ! echo ".if exists(/usr/lib/libkrb.a)" ! echo "POSTFIX_AUXLIBS+= -lkrb -ldes -lcom_err" ! echo ".endif" ! SUB_SASL="" ! ;; ! \"SASL2\") ! echo "LIB_DEPENDS+= sasl2.2:\${PORTSDIR}/security/cyrus-sasl2" ! echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include -I\${LOCALBASE}/include/sasl" ! echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lsasl2 -lpam -lcrypt" ! echo "SASL_SUFFIX= +sasl2" ! if [ -f ${PREFIX}/lib/libsasl2.a ]; then ! if nm ${PREFIX}/lib/libsasl2.a | grep -wq "mysql_verify_password"; then echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql" echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz" fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912222015.H57037-100000>