]> git.pld-linux.org Git - packages/amavisd-milter.git/blob - amavisd-milter.spec
- obsoletes amavisd-new-sendmail
[packages/amavisd-milter.git] / amavisd-milter.spec
1 # set this back to /var/amavis
2 Summary:        Sendmail milter for amavisd-new with support for the AM.PDP protocol
3 Name:           amavisd-milter
4 Version:        1.5.0
5 Release:        0.1
6 License:        BSD
7 Group:          Applications/System
8 URL:            http://amavisd-milter.sourceforge.net/
9 Source0:        http://downloads.sourceforge.net/amavisd-milter/%{name}-%{version}.tar.gz
10 # Source0-md5:  2c9f601012164d14a0c2815a9e0928fe
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 BuildRequires:  libmilter-devel >= 8.13
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires:       amavisd-new >= 1:2.7.0
16 Requires:       rc-scripts
17 Requires(post,preun):   /sbin/chkconfig
18 Obsoletes:      amavisd-new-sendmail < 1:2.7.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _localstatedir  %{_var}/spool/amavis
22
23 %description
24 amavisd-milter is a sendmail milter (mail filter) for amavisd-new
25 2.4.3 or and sendmail 8.13 and above (limited support for sendmail
26 8.12 is provided) which use the new AM.PDP protocol.
27
28 Instead of older amavis-milter helper program, full amavisd-new
29 functionality is available, including adding spam and virus
30 information header fields, modifying Subject, adding address
31 extensions and removing certain recipients from delivery while
32 delivering 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
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
48 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
49 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 /sbin/chkconfig --add amavisd-milter
56 %service amavisd-milter restart
57
58 %preun
59 if [ "$1" -eq 0 ]; then
60         %service amavisd-milter stop
61         /sbin/chkconfig --del amavisd-milter
62 fi
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.057529 seconds and 3 git commands to generate.