Christoph Schug пре 22 година
родитељ
комит
1e48f03f90
1 измењених фајлова са 11 додато и 5 уклоњено
  1. 11 5
      postfix/postfix.spec

+ 11 - 5
postfix/postfix.spec

@@ -39,7 +39,7 @@ Distribution: OpenPKG [BASE]
 Group:        Mail
 License:      IPL
 Version:      %{V_postfix}
-Release:      20030813
+Release:      20030814
 
 #   package options
 %option       with_fsl       yes
@@ -54,9 +54,10 @@ Release:      20030813
 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:      http://jimsun.linxnet.com/downloads/pflogsumm-%{V_pflogsumm}.tar.gz
-Source3:      etc.tar
-Source4:      fsl.postfix
-Source5:      rc.postfix
+Source3:      http://sbserv.stahl.bau.tu-bs.de/~hildeb/postfix/scripts/qshape
+Source4:      etc.tar
+Source5:      fsl.postfix
+Source6:      rc.postfix
 Patch0:       postfix.patch
 Patch1:       postfix.patch.pfls
 Patch2:       ftp://victor.teaser.fr/pub/lwa/postfix/postfix-%{V_whoson}-whoson.patch
@@ -119,7 +120,7 @@ Conflicts:    exim, sendmail, ssmtp
     %setup1 -q -T -D -a 1
 %endif
     %setup2 -q -T -D -a 2
-    %setup3 -q -T -D -a 3
+    %setup4 -q -T -D -a 4
 
     #   apply SSL/TLS patch
 %if "%{with_tls}" == "yes"
@@ -274,6 +275,10 @@ Conflicts:    exim, sendmail, ssmtp
       %{l_shtool} install -c -m 644 \
           pflogsumm.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
     ) || exit $?
+    %{l_shtool} install -c -m 750 \
+        -e 's;^#!/usr/bin/perl;#!%{l_prefix}/bin/perl;' \
+        -e 's;/usr/sbin/postconf;%{l_prefix}/sbin/postconf;' \
+        %{SOURCE qshape} $RPM_BUILD_ROOT%{l_prefix}/sbin/
 
     #   install run-command script
     %{l_shtool} mkdir -f -p -m 755 \
@@ -301,6 +306,7 @@ Conflicts:    exim, sendmail, ssmtp
         '%config %attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/postfix/*' \
         '%attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/libexec/postfix/*' \
         '%attr(2755,%{l_musr},%{l_rgrp}) %{l_prefix}/sbin/{postdrop,postqueue}' \
+        '%attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/sbin/qshape' \
         '%dir %attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/libexec/postfix' \
         '%dir %attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/var/postfix' \
         '%dir %attr(-,%{l_musr},%{l_rgrp}) %{l_prefix}/var/postfix/{maildrop,public}'