]> git.pld-linux.org Git - packages/exiscan.git/blob - exiscan.spec
e70371147ee946fdd734ceed579710f941b9a02b
[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.2
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 License:        GPL
12 Group:          Applications/Mail
13 Group(de):      Applikationen/Post
14 Group(pl):      Aplikacje/Poczta
15 Group(pt):      Aplicações/Correio Eletrônico
16 BuildRequires:  perl-devel
17 BuildRequires:  perl-modules
18 BuildRequires:  perl-MailTools
19 BuildRequires:  perl-Unix-Syslog
20 Requires:       exim
21 # http://www.pldaniels.com/ripmime/
22 Requires:       ripmime
23 # http://world.std.com/~damned/software.html
24 Requires:       tnef
25 Prereq:         /sbin/chkconfig
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Exiscan is an email virus scanner which works together with the Exim
31 MTA (http://www.exim.org). It is written in Perl and designed to be
32 very easy to implement. Exiscan supports multithreaded unpacking and
33 scanning of mail, with a configurable number of processes. Exiscan has
34 generic support for available command line virus scanners. Exiscan can
35 scan inside of MS-TNEF and SMIME (signed) wrapped messages.
36
37 %description -l pl
38 Exiscan to antywirusowy skaner poczty dzia³aj±cy wraz z MTA Exim
39 (http://www.exim.org). Exiscan zosta³ napisany w Perlu oraz
40 zaprojektowany tak by byæ bardzo ³atwym w u¿yciu. Exiscan wspiera
41 wielow±tkowe rozpakowywanie i skanowanie poczty z konfigurowalnym
42 ograniczeniem ilo¶ci procesów. Exiscan mo¿e wspó³pracowaæ z wieloma
43 skanerami antywirusowymi wywo³ywanymi z lini poleceñ. Exiscan mo¿e
44 skanowaæ wiadomo¶ci opakowane za pomoc± MS-TNEF oraz SMIME
45 (podpisane).
46
47 %prep
48 %setup -q -n %{name}
49 %patch0 -p1
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}
59 install exiscan*.cf     $RPM_BUILD_ROOT%{_sysconfdir}/mail
60
61 gzip -9nf CHANGELOG INSTALL README*
62
63 %post
64 /sbin/chkconfig --add %{name}
65 if [ -f %{_var}/lock/subsys/%{name} ]; then
66         %{_sysconfdir}/rc.d/init.d/%{name} restart 1>&2
67 else
68         echo "Run \"%{_sysconfdir}/rc.d/init.d/%{name} start\" to start %{name} daemon."
69 fi
70
71 %preun
72 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
73         %{_sysconfdir}/rc.d/init.d/%{name} stop 1>&2
74 fi
75 /sbin/chkconfig --del %{name}
76
77 %files
78 %defattr(644,root,root,755)
79 %doc *.gz
80 %attr(755,root,root) %{_sbindir}/*
81 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/mail/*.cf
82 %attr(750,exim,root) %{_var}/spool/%{name}
83 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
This page took 0.070823 seconds and 2 git commands to generate.