OpenPKG CVS Repository http://www.openpkg.org/cvsweb/cvsweb.cgi ____________________________________________________________________________
Server: cvs.openpkg.org Name: Christoph Schug Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 10-Aug-2002 12:58:46 Branch: HEAD Handle: 2002081011584600 Modified files: openpkg-src/postfix postfix.spec Log: o added MySQL support o copy-and-post style of options in description text Summary: Revision Changes Path 1.75 +18 -2 openpkg-src/postfix/postfix.spec ____________________________________________________________________________ Index: openpkg-src/postfix/postfix.spec ============================================================ $ cvs diff -u -r1.74 -r1.75 postfix.spec --- openpkg-src/postfix/postfix.spec 2 Aug 2002 12:24:18 -0000 1.74 +++ openpkg-src/postfix/postfix.spec 10 Aug 2002 10:58:46 -0000 1.75 @@ -38,6 +38,9 @@ %ifndef with_fsl %define with_fsl no %endif +%ifndef with_mysql +$define with_mysql no +%endif # package information Name: postfix @@ -49,7 +52,7 @@ Group: Mail License: IPL Version: %{V_postfix} -Release: 20020718 +Release: 20020810 # list of sources Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz @@ -78,6 +81,10 @@ BuildPreReq: fsl PreReq: fsl %endif +%if "%{with_mysql}" == "yes" +BuildPreReq: mysql +PreReq: mysql +%endif AutoReq: no AutoReqProv: no Provides: MTA @@ -92,10 +99,15 @@ o Optional IPv6 support o Optional STARTTLS support o Optional Berkeley-DB lookup table support + o Optional MySQL support o Optional PCRE matching support o Optional SASL2 authentication support - Options: with_tls=%{with_tls} with_sasl=%{with_sasl} + Options: + --define 'with_fsl %{with_fsl}' \ + --define 'with_mysql %{with_mysql}' \ + --define 'with_sasl %{with_sasl}' \ + --define 'with_tls %{with_tls}' %prep %setup0 -q -c -a 0 @@ -153,6 +165,10 @@ AUXLIBS="$AUXLIBS -ldb" CCARGS="$CCARGS -DHAS_PCRE" AUXLIBS="$AUXLIBS -lpcre" +%if "%{with_mysql}" == "yes" + CCARGS="$CCARGS -DHAS_MYSQL -I%{l_prefix}/include/mysql" + AUXLIBS="$AUXLIBS -L%{l_prefix}/lib/mysql -lmysqlclient -lz -lm" +%endif %if "%{with_tls}" == "yes" CCARGS="$CCARGS -DHAS_SSL" AUXLIBS="$AUXLIBS -lssl -lcrypto" ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]