]>
Commit | Line | Data |
---|---|---|
df0782de | 1 | Summary: An EMail Virus Scanner for Exim MTA |
d97497d5 | 2 | Summary(pl.UTF-8): Antywirusowy skaner poczty elektronicznej dla Exim MTA |
fc103644 | 3 | Name: exiscan |
2d896a61 | 4 | Version: 2.4 |
97e0cc6a | 5 | Release: 2 |
bd42667f JB |
6 | License: GPL |
7 | Group: Applications/Mail | |
fc103644 | 8 | Source0: http://duncanthrax.net/exiscan/%{name}-v%{version}.tar.gz |
94682bf1 | 9 | # Source0-md5: aecc3771ee9893167ee4e6a90ff12b1b |
fc103644 AM |
10 | Source1: %{name}.init |
11 | Patch0: %{name}-config.patch | |
5554f951 | 12 | Patch1: %{name}-user.patch |
bd42667f | 13 | URL: http://duncanthrax.net/exiscan/ |
fc103644 AM |
14 | BuildRequires: perl-MailTools |
15 | BuildRequires: perl-Unix-Syslog | |
190ebb73 | 16 | BuildRequires: rpm-perlprov |
d7d9e354 | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
18 | Requires: rc-scripts | |
bd42667f | 19 | Requires(post,preun): /sbin/chkconfig |
c88f31ba | 20 | Requires: exim >= 3.00 |
fc103644 AM |
21 | # http://www.pldaniels.com/ripmime/ |
22 | Requires: ripmime | |
23 | # http://world.std.com/~damned/software.html | |
24 | Requires: tnef | |
fc103644 AM |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Exiscan is an email virus scanner which works together with the Exim | |
30 | MTA (http://www.exim.org). It is written in Perl and designed to be | |
31 | very easy to implement. Exiscan supports multithreaded unpacking and | |
32 | scanning of mail, with a configurable number of processes. Exiscan has | |
33 | generic support for available command line virus scanners. Exiscan can | |
34 | scan inside of MS-TNEF and SMIME (signed) wrapped messages. | |
35 | ||
e6b68be2 JR |
36 | %description -l pl.UTF-8 |
37 | Exiscan to antywirusowy skaner poczty działający wraz z MTA Exim | |
38 | (http://www.exim.org). Exiscan został napisany w Perlu oraz | |
39 | zaprojektowany tak by być bardzo łatwym w użyciu. Exiscan wspiera | |
40 | wielowątkowe rozpakowywanie i skanowanie poczty z konfigurowalnym | |
41 | ograniczeniem ilości procesów. Exiscan może współpracować z wieloma | |
42 | skanerami antywirusowymi wywoływanymi z lini poleceń. Exiscan może | |
43 | skanować wiadomości opakowane za pomocą MS-TNEF oraz SMIME | |
fc103644 AM |
44 | (podpisane). |
45 | ||
46 | %prep | |
47 | %setup -q -n %{name} | |
48 | %patch0 -p1 | |
2d896a61 | 49 | %patch1 -p0 |
fc103644 AM |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/{mail,rc.d/init.d}} | |
55 | install -d $RPM_BUILD_ROOT%{_var}/spool/%{name}/{checkqueue,virusmails} | |
56 | ||
57d38976 | 57 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
2d896a61 | 58 | install exiscan*.pl $RPM_BUILD_ROOT%{_sbindir}/exiscan |
59 | install exiscan*.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/exiscan.cf | |
fc103644 | 60 | |
bd42667f JB |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
fc103644 AM |
64 | %post |
65 | /sbin/chkconfig --add %{name} | |
d7d9e354 | 66 | %service exiscan restart |
fc103644 AM |
67 | |
68 | %preun | |
69 | if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then | |
d7d9e354 | 70 | %service exiscan stop |
71 | /sbin/chkconfig --del %{name} | |
fc103644 | 72 | fi |
fc103644 AM |
73 | |
74 | %files | |
75 | %defattr(644,root,root,755) | |
2d896a61 | 76 | %doc CHANGELOG INSTALL README* |
fc103644 | 77 | %attr(755,root,root) %{_sbindir}/* |
5554f951 | 78 | %attr(640,root,exim) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/*.cf |
fc103644 | 79 | %attr(750,exim,root) %{_var}/spool/%{name} |
57d38976 | 80 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |