|
|
|
@ -23,14 +23,12 @@
|
|
|
|
|
## SUCH DAMAGE. |
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
%define V_postfix 1.1.3 |
|
|
|
|
%define V_ipv6 20010228pl04-v6-20010913a |
|
|
|
|
%define V_tls 0.7.13-20010228-pl08-0.9.6b |
|
|
|
|
# involved versions |
|
|
|
|
%define V_postfix 1.1.3 |
|
|
|
|
%define V_tls 0.8.3-1.1.3-0.9.6c |
|
|
|
|
%define V_pflogsumm 1.0.3 |
|
|
|
|
|
|
|
|
|
# build options |
|
|
|
|
# (attention: ipv6 and tls at the same time conflicts!) |
|
|
|
|
%define with_ipv6 no |
|
|
|
|
%define with_tls no |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
@ -49,10 +47,9 @@ Release: 20020205
|
|
|
|
|
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz |
|
|
|
|
Source1: ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/pfixtls-%{V_tls}.tar.gz |
|
|
|
|
Source2: fakesyslog.tar.gz |
|
|
|
|
Source3: ftp://ftp.kame.net/pub/kame/misc/postfix-%{V_ipv6}.diff.gz |
|
|
|
|
Source3: etc.tar |
|
|
|
|
Source4: http://jimsun.linxnet.com/downloads/pflogsumm-%{V_pflogsumm}.pl |
|
|
|
|
Source5: rc.postfix |
|
|
|
|
Source6: etc.tar |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
@ -61,10 +58,7 @@ BuildPreReq: OpenPKG, openpkg >= 20020204, perl
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20020204, perl, procmail |
|
|
|
|
BuildPreReq: db, pcre |
|
|
|
|
%if "%{with_tls}" == "yes" |
|
|
|
|
BuildPreReq: openssl |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_ipv6}" == "yes" || "%{with_tls}" == "yes" |
|
|
|
|
BuildPreReq: patch |
|
|
|
|
BuildPreReq: openssl, patch |
|
|
|
|
%endif |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
@ -88,15 +82,8 @@ Provides: MTA
|
|
|
|
|
%setup1 -q -T -D -a 1 |
|
|
|
|
%endif |
|
|
|
|
%setup2 -q -T -D -a 2 |
|
|
|
|
%setup6 -q -T -D -a 6 |
|
|
|
|
%setup3 -q -T -D -a 3 |
|
|
|
|
cd postfix-%{V_postfix} |
|
|
|
|
%if "%{with_ipv6}" == "yes" |
|
|
|
|
%{l_gzip} -d -c %{SOURCE postfix-%{V_ipv6}.diff.gz} |\ |
|
|
|
|
%{l_perl} -e 'my $c = ""; $c .= $_ while (<STDIN>); |
|
|
|
|
$c =~ s/(^|\n)diff[^\n]+(\.indent\.pro|\.cvsignore).+?(?=\ndiff)//sg; |
|
|
|
|
print $c;' |\ |
|
|
|
|
%{l_patch} -p1 |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_tls}" == "yes" |
|
|
|
|
%{l_patch} -p1 < ../pfixtls-%{V_tls}/pfixtls.diff |
|
|
|
|
%endif |
|
|
|
|