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