]> git.pld-linux.org Git - packages/amavisd-new.git/blob - amavisd-new.spec
- started upgrade to 20021227
[packages/amavisd-new.git] / amavisd-new.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        A Mail Virus Scanner with SpamAssasin support - Daemon
3 Summary(pl):    Antywirusowy skaner poczty elektronicznej z obs³ug± SpamAssasina - Demon
4 Name:           amavisd-new
5 Version:        20021227
6 Release:        0.1
7 License:        GPL
8 Group:          Applications/Mail
9 Source0:        http://www.ijs.si/software/amavisd/%{name}-%{version}-p1.tar.gz
10 Source1:        %{name}.init
11 Patch0:         %{name}-notest-mta.patch
12 Patch1:         %{name}-paths.patch
13 URL:            http://www.amavis.org/
14 BuildRequires:  arc
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  bzip2
18 BuildRequires:  file
19 BuildRequires:  lha
20 BuildRequires:  ncompress
21 BuildRequires:  perl-Archive-Tar
22 BuildRequires:  perl-Archive-Zip
23 BuildRequires:  perl-Compress-Zlib
24 BuildRequires:  perl-MIME-tools
25 BuildRequires:  perl-Unix-Syslog
26 BuildRequires:  perl-Convert-UUlib
27 BuildRequires:  perl-Convert-TNEF
28 BuildRequires:  perl-libnet
29 BuildRequires:  perl-Mail-SpamAssassin
30 BuildRequires:  perl-Vipuls-Razor-V1
31 BuildRequires:  perl-Net-Server
32 BuildRequires:  sh-utils
33 BuildRequires:  unarj
34 BuildRequires:  unrar
35 BuildRequires:  zoo
36 Requires(pre):  /bin/id
37 Requires(pre):  /usr/sbin/useradd
38 Requires(post,preun):   /sbin/chkconfig
39 Requires(postun):       /usr/sbin/userdel
40 Requires:       /usr/lib/sendmail
41 Requires:       arc
42 Requires:       bzip2
43 Requires:       file
44 Requires:       lha
45 Requires:       ncompress
46 Requires:       sh-utils
47 Requires:       unarj
48 Requires:       unrar
49 Requires:       zoo
50 Requires:       perl-Mail-SpamAssassin
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 Obsoletes:      AMaViS
53 Obsoletes:      amavis
54 Obsoletes:      amavisd-daemon
55 Obsoletes:      amavisd-postfix
56 Obsoletes:      amavisd-exim
57 Obsoletes:      amavisd-qmail
58 Obsoletes:      amavisd-new-postfix
59 Obsoletes:      amavisd-new-exim
60 Obsoletes:      amavisd-new-qmail
61
62 %description
63 AMaViS is a script that interfaces a mail transport agent (MTA) with
64 one or more virus scanners and SpamAssasin. This is daemonized version
65 of amavis.
66
67 %description -l pl
68 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
69 a jednym lub wiêcej programów antywirusowych i SpamAssasinem. Wersja
70 zdemonizowana.
71
72 %package sendmail
73 Summary:        A Mail Virus Scanner with SpamAssasin support - sendmail backend
74 Summary(pl):    Antywirusowy skaner poczty elektronicznej - backend dla sendmaila
75 Group:          Applications/Mail
76 Requires:       sendmail
77 Requires:       %{name}
78
79 %description sendmail
80 AMaViS is a script that interfaces a mail transport agent (MTA) with
81 one or more virus scanners. This is daemonized version of amavis.
82
83 This package contains backend for sendmail.
84
85 %description sendmail -l pl
86 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
87 a jednym lub wiêcej programów antywirusowych. Wersja zdemonizowana.
88
89 Pakiet ten zawiera back-end dla sendmaila.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94 %patch1 -p1
95
96 %build
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{%{_var}/spool/amavis/{runtime,virusmails},%{_var}/run/amavisd}
101
102 %{__make} install \
103         amavisuser=$(id -u) \
104         DESTDIR=$RPM_BUILD_ROOT
105 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amavisd
106
107 install amavis/amavisd.{exim,postfix,sendmail} $RPM_BUILD_ROOT%{_sbindir}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %pre
113 if [ -n "`id -u amavis 2>/dev/null`" ]; then
114         if [ "`id -u amavis`" != "97" ]; then
115                 echo "Error: user amavis doesn't have uid=97. Correct this before installing amavis." 1>&2
116                 exit 1
117         fi
118 else
119         /usr/sbin/useradd -u 97 -r -d %{_var}/spool/amavis -s /bin/false -c "Anti Virus Checker" -g nobody  amavis 1>&2
120 fi
121
122 %postun
123 if [ "$1" = "0" ]; then
124         /usr/sbin/userdel amavis
125 fi
126
127 %post
128 /sbin/chkconfig --add amavisd
129 if [ -f /var/lock/subsys/amavisd ]; then
130         /etc/rc.d/init.d/amavisd restart >&2
131 else
132         echo "Run \"/etc/rc.d/init.d/amavisd start\" to start Amavisd daemon."
133 fi
134
135 %preun
136 if [ "$1" = "0" ];then
137         if [ -f /var/lock/subsys/amavisd ]; then
138                 /etc/rc.d/init.d/amavisd stop >&2
139         fi
140         /sbin/chkconfig --del amavisd
141 fi
142
143 %files
144 %defattr(644,root,root,755)
145 %doc AAAREADME.first INSTALL RELEASE_NOTES README_FILES/* test-messages
146 %attr(755,root,root) %{_sbindir}/amavisd
147 %attr(754,root,root) /etc/rc.d/init.d/*
148 %config(noreplace) %{_sysconfdir}/amavisd.conf
149 %attr(750,amavis,root) %{_var}/spool/amavis
150 %attr(755,amavis,root) %{_var}/run/amavisd
151
152 #%files sendmail
153 #%attr(755,root,root) %{_sbindir}/amavis
154 #%attr(755,root,root) %{_sbindir}/amavis-milter
This page took 0.080826 seconds and 4 git commands to generate.