OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Christoph Schug
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Jul-2004 11:20:00
Branch: HEAD Handle: -NONE-
Modified files:
openpkg-src/exim exim.spec
Log:
added support for MySQL and PostgreSQL
Summary:
Revision Changes Path
1.70 +26 -2 openpkg-src/exim/exim.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/exim/exim.spec
============================================================================
$ cvs diff -u -r1.69 -r1.70 exim.spec
--- openpkg-src/exim/exim.spec 2 Jul 2004 07:18:39 -0000 1.69
+++ openpkg-src/exim/exim.spec 2 Jul 2004 09:20:00 -0000 1.70
@@ -40,6 +40,8 @@
%option with_auth_cram_md5 no
%option with_auth_plaintext no
%option with_ipv6 no
+%option with_mysql no
+%option with_pgsql no
%option with_ssl no
%option with_wrap no
@@ -54,8 +56,16 @@
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, make, perl, gzip
PreReq: OpenPKG, openpkg >= 20040130, make, perl, gzip
-BuildPreReq: openssl, db >= 4.1.24, libiconv
-PreReq: openssl, db >= 4.1.24, libiconv
+BuildPreReq: db >= 4.1.24, libiconv
+PreReq: db >= 4.1.24, libiconv
+%if "%{with_mysql}" == "yes"
+BuildPreReq: mysql
+PreReq: mysql
+%endif
+%if "%{with_pgsql}" == "yes"
+BuildPreReq: postgresql, openssl
+PreReq: postgresql, openssl
+%endif
%if "%{with_ssl}" == "yes"
BuildPreReq: openssl
PreReq: openssl
@@ -153,6 +163,20 @@
echo 'HAVE_IPV6=YES'
%endif
+ # support for MySQL lookups
+%if "%{with_mysql}" == "yes"
+ echo 'LOOKUP_MYSQL=yes'
+ echo 'LOOKUP_INCLUDE+=%{l_cppflags mysql}'
+ echo 'LOOKUP_LIBS+=%{l_ldflags mysql} -lmysqlclient -lz -lm'
+%endif
+
+ # support for PostgreSQL lookups
+%if "%{with_pgsql}" == "yes"
+ echo 'LOOKUP_PGSQL=yes'
+ echo 'LOOKUP_INCLUDE+=%{l_cppflags postgresql}'
+ echo 'LOOKUP_LIBS+=%{l_ldflags} -lpq -lssl -lcrypto -lcrypt'
+%endif
+
# support for Transport layer security using SSL
%if "%{with_ssl}" == "yes"
echo 'SUPPORT_TLS=yes'
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]