1 Summary: A Mail Virus Scanner
2 Summary(pl): Antywirusowy skaner poczty elektronicznej
6 URL: http://www.konarski.edu.pl/~zolw/clam.html
7 Source0: http://www.konarski.edu.pl/~zolw/clam/%{name}-%{version}.tar.gz
8 Patch0: %{name}-am_ac.patch
10 Group: Applications/Mail
11 BuildRequires: autoconf
12 BuildRequires: automake
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Clam Antivirus is a powerful anti-virus scanner for Unix. It supports
17 AMaViS, compressed files, uses the virus database from
18 OpenAntivirus.org, and includes a program for auto-updating. The
19 scanner is multithreaded, written in C, and POSIX compliant.
22 Clam Antivirus jest potê¿nym skanerem antywirusowym dla systemów
23 uniksowych. Wspiera on AMaViSa, skompresowane pliki, u¿ywa bazy
24 wirusów z OpenAntivirus.org, i posiada system automatycznej
25 aktualizacji. Skaner jest wielow±tkowy, napisany w C i zgodny z
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
44 install -d $RPM_BUILD_ROOT%{_var}/log/
47 DESTDIR=$RPM_BUILD_ROOT
49 echo -e '#!/bin/sh\n%{_bindir}/freshclam --quiet -l %{_var}/log/%{name}.log' \
50 > $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/%{name}
52 touch $RPM_BUILD_ROOT%{_var}/log/%{name}.log
54 gzip -9nf AUTHORS ChangeLog FAQ NEWS README TODO
58 rm -rf $RPM_BUILD_ROOT
61 if [ -n "`getgid clamav`" ]; then
62 if [ "`getgid clamav`" != "43" ]; then
63 echo "Warning: group clamav doesn't have gid=43. Correct this before installing clamav" 1>&2
67 /usr/sbin/groupadd -g 43 -r -f clamav
69 if [ -n "`id -u clamav 2>/dev/null`" ]; then
70 if [ "`id -u clamav`" != "43" ]; then
71 echo "Warning: user clamav doesn't have uid=43. Correct this before installing clamav" 1>&2
75 /usr/sbin/useradd -u 43 -r -d /tmp -s /bin/false -c "Clam Anti Virus Checker" -g clamav clamav 1>&2
79 if [ "$1" = "0" ]; then
80 /usr/sbin/userdel clamav
81 /usr/sbin/groupdel clamav
85 touch %{_var}/log/%{name}.log && chmod 640 %{_var}/log/%{name}.log && chown clamav %{_var}/log/%{name}.log
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/*
91 %attr(755,clamav,root) %dir %{_datadir}/clam
92 %attr(644,clamav,root) %verify(not md5 size mtime) %{_datadir}/clam/*.db
93 %attr(640,clamav,root) %ghost %{_var}/log/%{name}.log
94 %attr(750,root,root) %{_sysconfdir}/cron.daily/%{name}