|
|
@@ -40,6 +40,8 @@ Release: 20040702
|
|
|
%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 @@ Prefix: %{l_prefix}
|
|
|
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 @@ Conflicts: postfix, sendmail, ssmtp
|
|
|
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'
|