]> git.pld-linux.org Git - packages/exiscan.git/blob - exiscan.spec
- 2.4, STBR
[packages/exiscan.git] / exiscan.spec
1 %include        /usr/lib/rpm/macros.perl    
2 Summary:        A EMail Virus Scanner for Exim MTA
3 Summary(pl):    Antywirusowy skaner poczty elektronicznej dla Exim MTA
4 Name:           exiscan
5 Version:        2.4
6 Release:        1
7 URL:            http://duncanthrax.net/exiscan/
8 Source0:        http://duncanthrax.net/exiscan/%{name}-v%{version}.tar.gz
9 Source1:        %{name}.init
10 Patch0:         %{name}-config.patch
11 Patch1:         %{name}-user.patch
12 License:        GPL
13 Group:          Applications/Mail
14 BuildRequires:  perl-devel
15 BuildRequires:  perl-modules
16 BuildRequires:  perl-MailTools
17 BuildRequires:  perl-Unix-Syslog
18 Requires:       exim >= 3.00
19 Requires:       exim < 4.00
20 # http://www.pldaniels.com/ripmime/
21 Requires:       ripmime
22 # http://world.std.com/~damned/software.html
23 Requires:       tnef
24 Prereq:         /sbin/chkconfig
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
36 %description -l pl
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
44 (podpisane).
45
46 %prep
47 %setup -q -n %{name}
48 %patch0 -p1
49 %patch1 -p0
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
57 install %{SOURCE1}      $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
58 install exiscan*.pl     $RPM_BUILD_ROOT%{_sbindir}/exiscan
59 install exiscan*.cf     $RPM_BUILD_ROOT%{_sysconfdir}/mail/exiscan.cf
60
61 %post
62 /sbin/chkconfig --add %{name}
63 if [ -f %{_var}/lock/subsys/%{name} ]; then
64         %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
65 else
66         echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
67 fi
68
69 %preun
70 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
71         %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
72 fi
73 /sbin/chkconfig --del %{name}
74
75 %files
76 %defattr(644,root,root,755)
77 %doc CHANGELOG INSTALL README*
78 %attr(755,root,root) %{_sbindir}/*
79 %attr(640,root,exim) %config(noreplace) %verify(not md5 mtime size) /etc/mail/*.cf
80 %attr(750,exim,root) %{_var}/spool/%{name}
81 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
This page took 0.087691 seconds and 3 git commands to generate.