OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 07-Mar-2003 13:36:04 Branch: HEAD Handle: 2003030712360300 Modified files: openpkg-src/sasl sasl.spec Log: add options for LDAP and MySQL backends, patch for MySQL4 support Summary: Revision Changes Path 1.53 +31 -1 openpkg-src/sasl/sasl.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/sasl/sasl.spec ============================================================================ $ cvs diff -u -r1.52 -r1.53 sasl.spec --- openpkg-src/sasl/sasl.spec 7 Mar 2003 11:23:47 -0000 1.52 +++ openpkg-src/sasl/sasl.spec 7 Mar 2003 12:36:03 -0000 1.53 @@ -39,11 +39,14 @@ %option with_fsl no %option with_pam no %option with_login no +%option with_ldap no +%option with_mysql no # list of sources Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz Source1: rc.sasl Source2: fsl.sasl +Patch0: sasl.patch # build information Prefix: %{l_prefix} @@ -58,6 +61,12 @@ BuildPreReq: PAM PreReq: PAM %endif +%if "%{with_ldap}" == "yes" +BuildPreReq: openldap +%endif +%if "%{with_mysql}" == "yes" +BuildPreReq: MYSQL, zlib +%endif AutoReq: no AutoReqProv: no @@ -75,6 +84,7 @@ %{l_shtool} subst \ -e 's;^ *for dbname in ;for dbname in db ;' \ configure + %patch -p0 %build %{l_shtool} subst \ @@ -84,14 +94,22 @@ configure cflags="%{l_cflags -O} %{l_cppflags}" - ldflags="-L%{l_prefix}/lib" + ldflags="%{l_ldflags}" libs="-ldb" %if "%{with_fsl}" == "yes" ldflags="$ldflags `%{l_prefix}/bin/fsl-config --all --ldflags`" libs="$libs `%{l_prefix}/bin/fsl-config --all --libs`" %endif +%if "%{with_ldap}" == "yes" + ldflags="$ldflags `%{l_prefix}/bin/fsl-config --all --ldflags`" + libs="$libs `%{l_prefix}/bin/fsl-config --all --libs`" +%endif +%if "%{with_mysql}" == "yes" + libs="$libs -lz -lm" +%endif CC="%{l_cc}" \ CFLAGS="$cflags" \ + CPPFLAGS="%{l_cppflags}" \ LDFLAGS="$ldflags" \ LIBS="$libs" \ ./configure \ @@ -109,6 +127,18 @@ %endif %if "%{with_login}" == "yes" --enable-login \ +%else + --disable-login \ +%endif +%if "%{with_ldap}" == "yes" + --with-ldap=%{l_prefix} \ +%else + --without-ldap \ +%endif +%if "%{with_mysql}" == "yes" + --with-mysql=%{l_prefix} \ +%else + --without-mysql \ %endif --disable-shared \ --enable-static \ @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]