|
|
@@ -35,7 +35,7 @@ Distribution: OpenPKG [JUNK]
|
|
|
Group: Mail
|
|
|
License: GPL
|
|
|
Version: 20030314
|
|
|
-Release: 20030422
|
|
|
+Release: 20030423
|
|
|
|
|
|
# package options
|
|
|
%option with_milter no
|
|
|
@@ -86,61 +86,61 @@ AutoReqProv: no
|
|
|
--with-sockname="%{l_prefix}/var/amavisd/amavisd.sock" \
|
|
|
--with-user="@l_rusr@" \
|
|
|
--with-milterinc="%{l_prefix}/include/libmilter" \
|
|
|
- --with-milterlib="%{l_prefix}/lib"
|
|
|
+ --with-milterlib="%{l_prefix}/lib"
|
|
|
%endif
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/amavisd \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/amavisd/test-messages \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/amavisd/README_FILES \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/var/amavisd \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/var/amavisd/virusmails
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/amavisd \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/amavisd/test-messages \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/amavisd/README_FILES \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/amavisd \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/amavisd/virusmails
|
|
|
|
|
|
%{l_shtool} install -c -m 755 \
|
|
|
- -e '1s;/usr/bin/perl;%{l_prefix}/bin/perl;' \
|
|
|
- -e 's;/var/amavis;%{l_prefix}/var/amavisd;g' \
|
|
|
- -e 's;/etc/amavisd.conf;%{l_prefix}/etc/amavisd/amavisd.conf;g' \
|
|
|
- amavisd \
|
|
|
+ -e '1s;/usr/bin/perl;%{l_prefix}/bin/perl;' \
|
|
|
+ -e 's;/var/amavis;%{l_prefix}/var/amavisd;g' \
|
|
|
+ -e 's;/etc/amavisd.conf;%{l_prefix}/etc/amavisd/amavisd.conf;g' \
|
|
|
+ amavisd \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/sbin/
|
|
|
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- -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' \
|
|
|
- -e 's; -C/etc/sendmail.orig.cf ;;g' \
|
|
|
- -e 's;/usr/bin/exim;%{l_prefix}/bin/exim;g' \
|
|
|
- -e 's;/usr/local/sbin;%{l_prefix}/sbin;g' \
|
|
|
- -e 's;/usr/local/bin;%{l_prefix}/bin;g' \
|
|
|
- -e 's;\(daemon_user *= \)[^;]*;\1q{%{l_rusr}};' \
|
|
|
- -e 's;\(daemon_group *= \)[^;]*;\1q{%{l_rgrp}};' \
|
|
|
- amavisd.conf \
|
|
|
+ -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' \
|
|
|
+ -e 's; -C/etc/sendmail.orig.cf ;;g' \
|
|
|
+ -e 's;/usr/bin/exim;%{l_prefix}/bin/exim;g' \
|
|
|
+ -e 's;/usr/local/sbin;%{l_prefix}/sbin;g' \
|
|
|
+ -e 's;/usr/local/bin;%{l_prefix}/bin;g' \
|
|
|
+ -e 's;\(daemon_user *= \)[^;]*;\1q{%{l_rusr}};' \
|
|
|
+ -e 's;\(daemon_group *= \)[^;]*;\1q{%{l_rgrp}};' \
|
|
|
+ amavisd.conf \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/amavisd/
|
|
|
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- test-messages/* \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/amavisd/test-messages/
|
|
|
+ test-messages/* \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/amavisd/test-messages/
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- README_FILES/* \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/amavisd/README_FILES/
|
|
|
+ README_FILES/* \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/amavisd/README_FILES/
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- RELEASE_NOTES \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/amavisd/
|
|
|
+ RELEASE_NOTES \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/amavisd/
|
|
|
|
|
|
%{l_shtool} install -c -m 755 \
|
|
|
- -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
- -e 's;@l_rusr@;%{l_rusr};g' \
|
|
|
- %{SOURCE rc.amavisd} \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
+ -e 's;@l_rusr@;%{l_rusr};g' \
|
|
|
+ %{SOURCE rc.amavisd} \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
|
|
|
- '%config %{l_prefix}/etc/amavisd/amavisd.conf' \
|
|
|
- '%attr(0750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/amavisd' \
|
|
|
- '%attr(0750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/amavisd/virusmails'
|
|
|
+ '%config %{l_prefix}/etc/amavisd/amavisd.conf' \
|
|
|
+ '%attr(0750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/amavisd' \
|
|
|
+ '%attr(0750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/amavisd/virusmails'
|
|
|
|
|
|
%files -f files
|
|
|
|