Parcourir la source

remove %{name} usage and provide paths to our 'clamav' and 'uvscan' packages

Ralf S. Engelschall il y a 23 ans
Parent
commit
341bef5ede
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      amavisd/amavisd.spec

+ 5 - 2
amavisd/amavisd.spec

@@ -39,7 +39,7 @@ Distribution: OpenPKG [JUNK]
 Group:        Mail
 License:      GPL
 Version:      %{V_major}%{V_minor}
-Release:      20030628
+Release:      20030707
 
 #   package options
 %option       with_milter no
@@ -71,7 +71,7 @@ AutoReqProv:  no
     with any MTA as a SMTP relay.
 
 %prep
-    %setup -q -n %{name}-new-%{V_major}
+    %setup -q -n amavisd-new-%{V_major}
 
 %build
 %if "%{with_milter}" == "yes"
@@ -109,6 +109,9 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/sbin/
 
     %{l_shtool} install -c -m 644 \
+        -e "s;'clamscan';%{l_prefix}/bin/clamscan;g" \
+        -e "s;'uvscan';%{l_prefix}/bin/uvscan;g" \
+        -e 's;/var/amavis/clamd;%{l_prefix}/var/clamav/clamd.sock;g' \
         -e 's;/var/amavis;%{l_prefix}/var/amavisd;g' \
         -e 's;/var/virusmails;%{l_prefix}/var/amavisd/virusmails;g' \
         -e 's;/usr/bin/sendmail;%{l_prefix}/bin/sendmail;g' \