]> git.pld-linux.org Git - packages/amavisd-milter.git/blame - amavisd-milter.spec
No empty pidfile/config.
[packages/amavisd-milter.git] / amavisd-milter.spec
CommitLineData
ad2cd7aa
ER
1# set this back to /var/amavis
2Summary: Sendmail milter for amavisd-new with support for the AM.PDP protocol
3Name: amavisd-milter
4Version: 1.5.0
5Release: 0.1
6License: BSD
7Group: Applications/System
8URL: http://amavisd-milter.sourceforge.net/
9Source0: http://downloads.sourceforge.net/amavisd-milter/%{name}-%{version}.tar.gz
10# Source0-md5: 2c9f601012164d14a0c2815a9e0928fe
11Source1: %{name}.init
12Source2: %{name}.sysconfig
13BuildRequires: libmilter-devel >= 8.13
0942ea31 14BuildRequires: rpmbuild(macros) >= 1.268
52d0522e 15Requires: amavisd-new >= 1:2.7.0
ad2cd7aa
ER
16Requires: rc-scripts
17Requires(post,preun): /sbin/chkconfig
0942ea31 18Obsoletes: amavisd-new-sendmail < 1:2.7.0
ad2cd7aa
ER
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _localstatedir %{_var}/spool/amavis
22
23%description
24amavisd-milter is a sendmail milter (mail filter) for amavisd-new
252.4.3 or and sendmail 8.13 and above (limited support for sendmail
268.12 is provided) which use the new AM.PDP protocol.
27
28Instead of older amavis-milter helper program, full amavisd-new
29functionality is available, including adding spam and virus
30information header fields, modifying Subject, adding address
31extensions and removing certain recipients from delivery while
32delivering the same message to the rest.
33
34%prep
35%setup -q
36
37%build
38%configure \
39 --with-working-dir=%{_localstatedir}
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44%{__make} install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
48install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
49cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%post
55/sbin/chkconfig --add amavisd-milter
56%service amavisd-milter restart
57
58%preun
59if [ "$1" -eq 0 ]; then
60 %service amavisd-milter stop
61 /sbin/chkconfig --del amavisd-milter
62fi
63
64%files
65%defattr(644,root,root,755)
66%doc README TODO CHANGES
67%attr(754,root,root) /etc/rc.d/init.d/%{name}
68%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
69%attr(755,root,root) %{_sbindir}/amavisd-milter
70%{_mandir}/man8/amavisd-milter.8*
This page took 0.092919 seconds and 4 git commands to generate.