]> git.pld-linux.org Git - packages/amavisd-new.git/commitdiff
- add tmpwatch configuration
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 31 May 2006 13:14:28 +0000 (13:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    amavisd-new.spec -> 1.100

amavisd-new.spec

index 175a6b2107d07c9c442887421d4ac5b84fbc7d76..91aaff3c8e3e0f39f5eecd57b1adfaeb35526780 100644 (file)
@@ -1,5 +1,7 @@
 # TODO:
 # - Add polish info mail templates
+# - move amavis part of tmpwatch configuration from tmpwatch.spec
+#
 %include       /usr/lib/rpm/macros.perl
 Summary:       A Mail Virus Scanner with SpamAssassin support - daemon
 Summary(pl):   Antywirusowy skaner poczty elektronicznej z obs³ug± SpamAssasina - demon
@@ -13,6 +15,7 @@ Source0:      http://www.ijs.si/software/amavisd/%{name}-%{version}.tar.gz
 # Source0-md5: bf770a3c7eee8a9c93932a04485e6a35
 Source1:       %{name}.init
 Source2:       %{name}-milter.init
+Source3:       %{name}.tmpwatch
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-lib64.patch
 Patch2:                %{name}-tools-dbdir.patch
@@ -56,6 +59,8 @@ Obsoletes:    amavisd-qmail
 Conflicts:     amavis-stats <= 0.1.12
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _tmpwatchdir    /etc/tmpwatch
+
 %description
 AMaViS is a script that interfaces a mail transport agent (MTA) with
 one or more virus scanners and SpamAssasin. This is daemonized version
@@ -104,7 +109,7 @@ cd helper-progs
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_var}/spool/amavis/{runtime,virusmails,db},%{_var}/run/amavisd,/etc/rc.d/init.d,%{_sbindir}}
+install -d $RPM_BUILD_ROOT{%{_var}/spool/amavis/{runtime,virusmails,db},%{_var}/run/amavisd,/etc/rc.d/init.d,%{_sbindir},%{_tmpwatchdir}}
 
 install amavisd $RPM_BUILD_ROOT%{_sbindir}
 install amavisd-agent $RPM_BUILD_ROOT%{_sbindir}
@@ -114,6 +119,7 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amavisd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/amavis-milter
 install helper-progs/amavis $RPM_BUILD_ROOT%{_sbindir}
 install helper-progs/amavis-milter $RPM_BUILD_ROOT%{_sbindir}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_tmpwatchdir}/%{name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -154,6 +160,7 @@ fi
 %attr(755,root,root) %{_sbindir}/amavisd*
 %attr(754,root,root) /etc/rc.d/init.d/amavisd
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amavisd.conf
+%config(noreplace) %verify(not md5 mtime size) %{_tmpwatchdir}/%{name}.conf
 %attr(750,amavis,amavis) %{_var}/spool/amavis
 %attr(750,amavis,amavis) %{_var}/run/amavisd
 
This page took 0.115247 seconds and 4 git commands to generate.