|
|
@@ -27,6 +27,7 @@
|
|
|
%define V_postfix 2.0.8
|
|
|
%define V_tls 0.8.13-2.0.6-0.9.7a
|
|
|
%define V_pflogsumm 1.0.10
|
|
|
+%define V_whoson 2.0.0.2
|
|
|
|
|
|
# package information
|
|
|
Name: postfix
|
|
|
@@ -45,6 +46,7 @@ Release: 20030416
|
|
|
%option with_sasl no
|
|
|
%option with_mysql no
|
|
|
%option with_ldap no
|
|
|
+%option with_whoson no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz
|
|
|
@@ -55,6 +57,7 @@ Source4: fsl.postfix
|
|
|
Source5: rc.postfix
|
|
|
Patch0: pflogsumm.patch
|
|
|
Patch1: postfix.patch
|
|
|
+Patch2: ftp://victor.teaser.fr/pub/lwa/postfix/postfix-%{V_whoson}-whoson.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -76,6 +79,10 @@ PreReq: MYSQL
|
|
|
BuildPreReq: openldap, openssl
|
|
|
PreReq: openldap
|
|
|
%endif
|
|
|
+%if "%{with_whoson}" == "yes"
|
|
|
+BuildPreReq: whoson
|
|
|
+PreReq: whoson
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
Provides: MTA
|
|
|
@@ -94,6 +101,7 @@ Conflicts: sendmail, ssmtp, exim
|
|
|
o Optional SASL2 authentication support (see package options below)
|
|
|
o Optional MySQL support (see package options below)
|
|
|
o Optional OpenLDAP support (see package options below)
|
|
|
+ o Optional WHOSON support (see package options below)
|
|
|
|
|
|
%prep
|
|
|
# unpack distribution files
|
|
|
@@ -115,6 +123,10 @@ Conflicts: sendmail, ssmtp, exim
|
|
|
# drop deprecated openldap API
|
|
|
%patch1 -p0
|
|
|
|
|
|
+%if "%{with_whoson}" == "yes"
|
|
|
+ %patch2 -p0
|
|
|
+%endif
|
|
|
+
|
|
|
%build
|
|
|
# configure Postfix (hard-core part I)
|
|
|
%{l_shtool} subst \
|