2011-02-21 21:42:47 +00:00
|
|
|
### FIXME: Sysv script does not have condrestart option (redo sysv script)
|
|
|
|
### FIXME: amavisd-new requires clamd to run as user vscan, solution needed
|
|
|
|
### REMINDER: Look and sync with Petr Kristof's work
|
|
|
|
|
|
|
|
Summary: Anti-virus software
|
|
|
|
Name: clamav
|
|
|
|
Version: 0.97
|
2011-03-13 20:25:23 +00:00
|
|
|
Release: 4%{?dist}
|
2011-02-21 21:42:47 +00:00
|
|
|
License: GPLv2
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://www.clamav.net/
|
|
|
|
|
|
|
|
# Upstream source includes libunrar that is not distributable.
|
|
|
|
#Source: http://downloads.sourceforge.net/clamav/clamav-%{version}.tar.gz
|
|
|
|
Source0: clamav-0.97-clean.tar.bz2
|
|
|
|
Source1: clamav.init
|
|
|
|
Source2: clamav-milter.init
|
2011-03-13 20:25:23 +00:00
|
|
|
Source3: clamd-wrapper.tar.bz2
|
2011-02-21 21:42:47 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: bzip2-devel, zlib-devel, gmp-devel, curl-devel
|
|
|
|
%{!?_without_milter:BuildRequires: sendmail-devel >= 8.12}
|
|
|
|
Requires: clamav-db = %{version}-%{release}
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
### Fedora Extras introduced them differently :(
|
|
|
|
Obsoletes: libclamav < %{version}-%{release}
|
|
|
|
Obsoletes: clamav-lib < %{version}-%{release}
|
|
|
|
Obsoletes: clamav-filesystem < %{version}-%{release}
|
|
|
|
Provides: libclamav
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%description
|
2011-02-21 21:42:47 +00:00
|
|
|
Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The main purpose of
|
|
|
|
this software is the integration with mail servers (attachment scanning).
|
|
|
|
The package provides a flexible and scalable multi-threaded daemon, a
|
|
|
|
command line scanner, and a tool for automatic updating via Internet.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
The programs are based on a shared library distributed with the Clam
|
|
|
|
AntiVirus package, which you can use with your own software. Most
|
|
|
|
importantly, the virus database is kept up to date
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%package -n clamd
|
|
|
|
Summary: The Clam AntiVirus Daemon
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: clamav = %{version}-%{release}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
### Fedora Extras introduced them differently :(
|
|
|
|
Obsoletes: clamav-server <= %{version}-%{release}
|
|
|
|
Obsoletes: clamav-server-sysv <= %{version}-%{release}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%description -n clamd
|
|
|
|
The Clam AntiVirus Daemon
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%package milter
|
|
|
|
Summary: The Clam AntiVirus sendmail-milter Daemon
|
|
|
|
Group: Applications/System
|
|
|
|
Requires: clamd = %{version}-%{release}
|
|
|
|
Requires: sendmail
|
|
|
|
Obsoletes: clamav-milter-sysv <= %{version}-%{release}
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%description milter
|
2011-02-21 21:42:47 +00:00
|
|
|
The Clam AntiVirus sendmail-milter Daemon
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%package db
|
|
|
|
Summary: Virus database for %{name}
|
|
|
|
Group: Applications/Databases
|
|
|
|
### Remove circular dependency
|
|
|
|
#Requires: clamav = %{version}-%{release}
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
### Fedora Extras introduced them differently :(
|
|
|
|
Obsoletes: clamav-update <= %{version}-%{release}
|
|
|
|
Obsoletes: clamav-data <= %{version}-%{release}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%description db
|
|
|
|
The actual virus database for %{name}
|
2006-04-24 22:05:45 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Header files, libraries and development documentation for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: clamav = %{version}-%{release}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
### Fedora Extras introduced them differently :(
|
|
|
|
Obsoletes: libclamav-static-devel <= %{version}-%{release}
|
|
|
|
Obsoletes: libclamav-devel <= %{version}-%{release}
|
|
|
|
Provides: libclamav-static-devel, libclamav-devel
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%description devel
|
|
|
|
This package contains the header files, static libraries and development
|
|
|
|
documentation for %{name}. If you like to develop programs using %{name},
|
|
|
|
you will need to install %{name}-devel.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g;' libtool configure
|
|
|
|
|
|
|
|
%{__perl} -pi.orig -e '
|
2011-02-23 23:34:22 +00:00
|
|
|
s|\@DBDIR\@|\$(localstatedir)/lib/clamav|g;
|
|
|
|
s|\@DBINST\@|\$(localstatedir)/lib/clamav|g;
|
2011-02-21 21:42:47 +00:00
|
|
|
s|\@CFGDIR\@|\$(sysconfdir)|g;
|
|
|
|
s|\@CFGINST\@|\$(sysconfdir)|g;
|
|
|
|
s|^\@INSTALL_CLAMAV_CONF_TRUE\@|\t|g;
|
|
|
|
s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;
|
|
|
|
' database/Makefile.in etc/Makefile.in
|
|
|
|
|
|
|
|
%{__perl} -pi.orig -e '
|
|
|
|
s|^(Example)|#$1|;
|
|
|
|
s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;
|
|
|
|
s|^#(LogFileMaxSize) .*|$1 0|;
|
|
|
|
s|^#(LogTime)|$1|;
|
|
|
|
s|^#(LogSyslog)|$1|;
|
|
|
|
s|^#(PidFile) .+$|$1 %{_localstatedir}/run/clamav/clamd.pid|;
|
|
|
|
s|^#(TemporaryDirectory) .+$|$1 %{_localstatedir}/tmp|;
|
2011-02-23 23:34:22 +00:00
|
|
|
s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/lib/clamav|;
|
2011-02-21 21:42:47 +00:00
|
|
|
s|^#(LocalSocket) .+$|$1 %{_localstatedir}/run/clamav/clamd.sock|;
|
|
|
|
s|^#(FixStaleSocket)|$1|;
|
|
|
|
s|^#(TCPSocket) .+$|$1 3310|;
|
|
|
|
s|^#(TCPAddr) .+$|$1 127.0.0.1|;
|
|
|
|
s|^#(MaxConnectionQueueLength) .+$|$1 30|;
|
|
|
|
s|^#(StreamSaveToDisk)|$1|;
|
|
|
|
s|^#(MaxThreads) .+$|$1 50|;
|
|
|
|
s|^#(ReadTimeout) .+$|$1 300|;
|
|
|
|
s|^#(User) .+$|$1 clam|;
|
|
|
|
s|^#(AllowSupplementaryGroups).*$|$1 yes|;
|
|
|
|
s|^#(ScanPE) .+$|$1 yes|;
|
|
|
|
s|^#(ScanELF) .+$|$1 yes|;
|
|
|
|
s|^#(DetectBrokenExecutables)|$1|;
|
|
|
|
s|^#(ScanOLE2) .+$|$1 yes|;
|
|
|
|
s|^#(ScanMail)|$1|;
|
|
|
|
s|^#(ScanArchive) .+$|$1 yes|;
|
|
|
|
s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;
|
|
|
|
s|^#(ArchiveBlockEncrypted)|$1|;
|
|
|
|
s|^#(ArchiveBlockMax)|$1|;
|
|
|
|
' etc/clamd.conf
|
|
|
|
|
|
|
|
%{__perl} -pi.orig -e '
|
|
|
|
s|^(Example)|#$1|;
|
2011-02-23 23:34:22 +00:00
|
|
|
s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/lib/clamav|;
|
2011-02-21 21:42:47 +00:00
|
|
|
s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;
|
|
|
|
s|^#(LogSyslog)|$1|;
|
|
|
|
s|^#(DatabaseOwner) .+$|$1 clam|;
|
|
|
|
s|^(Checks) .+$|$1 24|;
|
|
|
|
s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;
|
|
|
|
' etc/freshclam.conf
|
|
|
|
|
|
|
|
cat <<EOF >clamd.logrotate
|
|
|
|
%{_localstatedir}/log/clamav/clamd.log {
|
|
|
|
missingok
|
|
|
|
notifempty
|
|
|
|
create 644 clam clam
|
|
|
|
postrotate
|
|
|
|
killall -HUP clamd 2>/dev/null || :
|
|
|
|
endscript
|
|
|
|
}
|
|
|
|
EOF
|
2005-07-29 16:29:09 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
cat <<EOF >freshclam.logrotate
|
|
|
|
%{_localstatedir}/log/clamav/freshclam.log {
|
|
|
|
missingok
|
|
|
|
notifempty
|
|
|
|
create 644 clam clam
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<'EOF' >freshclam.cron
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
### A simple update script for the clamav virus database.
|
|
|
|
### This could as well be replaced by a SysV script.
|
|
|
|
|
|
|
|
### fix log file if needed
|
|
|
|
LOG_FILE="%{_localstatedir}/log/clamav/freshclam.log"
|
|
|
|
if [ ! -f "$LOG_FILE" ]; then
|
|
|
|
touch "$LOG_FILE"
|
|
|
|
chmod 644 "$LOG_FILE"
|
|
|
|
chown clam.clam "$LOG_FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
%{_bindir}/freshclam \
|
|
|
|
--quiet \
|
2011-02-23 23:34:22 +00:00
|
|
|
--datadir="%{_localstatedir}/lib/clamav" \
|
2011-02-21 21:42:47 +00:00
|
|
|
--log="$LOG_FILE" \
|
|
|
|
--log-verbose \
|
|
|
|
--daemon-notify="%{_sysconfdir}/clamd.conf"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%{__cat} <<EOF >clamav-milter.sysconfig
|
|
|
|
### Simple config file for clamav-milter, you should
|
|
|
|
### read the documentation and tweak it as you wish.
|
|
|
|
|
|
|
|
CLAMAV_FLAGS="
|
|
|
|
--config-file=%{_sysconfdir}/clamd.conf
|
|
|
|
--force-scan
|
|
|
|
--local
|
|
|
|
--max-children=10
|
|
|
|
--noreject
|
|
|
|
--outgoing
|
|
|
|
--quiet
|
|
|
|
"
|
2011-02-23 23:34:22 +00:00
|
|
|
SOCKET_ADDRESS="local:%{_localstatedir}/run/clamav/clmilter.socket"
|
2011-02-21 21:42:47 +00:00
|
|
|
EOF
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%build
|
2011-02-21 21:42:47 +00:00
|
|
|
%configure \
|
|
|
|
--program-prefix="%{?_program_prefix}" \
|
|
|
|
%{!?_without_milter:--enable-milter} \
|
|
|
|
--disable-clamav \
|
|
|
|
--disable-static \
|
|
|
|
--disable-zlib-vcheck \
|
|
|
|
--disable-unrar \
|
|
|
|
--enable-id-check \
|
|
|
|
--enable-dns \
|
2011-02-23 23:34:22 +00:00
|
|
|
--with-dbdir="%{_localstatedir}/lib/clamav" \
|
2011-02-21 21:42:47 +00:00
|
|
|
--with-group="clam" \
|
|
|
|
--with-libcurl \
|
2011-02-21 22:46:26 +00:00
|
|
|
--with-user="clam" \
|
|
|
|
--disable-llvm
|
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%install
|
2011-02-21 21:42:47 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR="%{buildroot}"
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
install -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd
|
|
|
|
install -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam
|
|
|
|
install -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam
|
|
|
|
install -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav
|
2008-01-01 13:19:16 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%if %{!?_without_milter:1}0
|
|
|
|
install -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter
|
|
|
|
install -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter
|
|
|
|
%else
|
|
|
|
rm %{buildroot}%{_mandir}/man8/clamav-milter.8*
|
|
|
|
%endif
|
2011-03-13 20:25:23 +00:00
|
|
|
# Install clamav-wrapper:
|
|
|
|
tar xjf %{SOURCE3} -C %{buildroot}/%{_prefix}/share
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/log/clamav/
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/clamav/freshclam.log
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/clamav/clamd.log
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/run/clamav/
|
2011-02-23 23:34:22 +00:00
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/clamd.d/
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
ZONES="/usr/share/zoneinfo/zone.tab"
|
|
|
|
CONFIG="/etc/sysconfig/clock"
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
if [ -r "$CONFIG" -a -r "$ZONES" ]; then
|
|
|
|
source "$CONFIG"
|
|
|
|
export CODE="$(grep -E "\b$ZONE\b" "$ZONES" | head -1 | cut -f1 | tr [A-Z] [a-z])"
|
|
|
|
fi
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
if [ -z "$CODE" ]; then
|
|
|
|
export CODE="local"
|
|
|
|
fi
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%{__perl} -pi -e '
|
|
|
|
s|^(DatabaseMirror) database\.clamav\.net$|$1 db.$ENV{"CODE"}.clamav.net\n$1 db.local.clamav.net|;
|
|
|
|
s|^(DatabaseMirror) db\.\.clamav\.net$|$1 db.$ENV{"CODE"}.clamav.net\n$1 db.local.clamav.net|;
|
|
|
|
' %{_sysconfdir}/freshclam.conf{,.rpmnew} &>/dev/null || :
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%pre
|
|
|
|
getent group clam >/dev/null || groupadd -r clam
|
|
|
|
getent passwd clam >/dev/null || \
|
|
|
|
useradd -r -g clam -d /var/clamav -s /sbin/nologin \
|
|
|
|
-c "Clam Anti Virus Checker" clam
|
|
|
|
exit 0
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%pre -n clamd
|
|
|
|
getent group clam >/dev/null || groupadd -r clam
|
|
|
|
getent passwd clam >/dev/null || \
|
|
|
|
useradd -r -g clam -d /var/clamav -s /sbin/nologin \
|
|
|
|
-c "Clam Anti Virus Checker" clam
|
|
|
|
exit 0
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%post -n clamd
|
|
|
|
/sbin/chkconfig --add clamd
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%preun -n clamd
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/sbin/service clamd stop &>/dev/null || :
|
|
|
|
/sbin/chkconfig --del clamd
|
|
|
|
fi
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%postun -n clamd
|
|
|
|
/sbin/service clamd condrestart &>/dev/null || :
|
2005-07-25 17:19:21 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%post milter
|
|
|
|
/sbin/chkconfig --add clamav-milter
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%preun milter
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/sbin/service clamav-milter stop &>/dev/null || :
|
|
|
|
/sbin/chkconfig --del clamav-milter
|
|
|
|
fi
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%postun milter
|
|
|
|
/sbin/service clamav-milter condrestart &>/dev/null || :
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%pre db
|
|
|
|
getent group clam >/dev/null || groupadd -r clam
|
|
|
|
getent passwd clam >/dev/null || \
|
|
|
|
useradd -r -g clam -d /var/clamav -s /sbin/nologin \
|
|
|
|
-c "Clam Anti Virus Checker" clam
|
|
|
|
exit 0
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README test/
|
|
|
|
%doc docs/*.pdf etc/freshclam.conf
|
|
|
|
%doc %{_mandir}/man1/sigtool.1*
|
|
|
|
%doc %{_mandir}/man1/clamscan.1*
|
|
|
|
%doc %{_mandir}/man1/freshclam.1*
|
|
|
|
%doc %{_mandir}/man5/freshclam.conf.5*
|
2011-03-13 20:25:23 +00:00
|
|
|
%doc %{_prefix}/share/clamav/README.clamd-wrapper
|
|
|
|
%{_prefix}/share/clamav/clamd-wrapper
|
2011-02-21 21:42:47 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/freshclam.conf
|
|
|
|
%{_bindir}/clamscan
|
|
|
|
%{_bindir}/freshclam
|
|
|
|
%{_bindir}/sigtool
|
|
|
|
%{_bindir}/clambc
|
|
|
|
%{_libdir}/libclamav.so.*
|
|
|
|
|
|
|
|
%files -n clamd
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%doc etc/clamd.conf
|
|
|
|
%doc %{_mandir}/man1/clamdscan.1*
|
|
|
|
%doc %{_mandir}/man1/clamconf.1*
|
|
|
|
%doc %{_mandir}/man1/clamdtop.1*
|
|
|
|
%doc %{_mandir}/man5/clamd.conf.5*
|
|
|
|
%doc %{_mandir}/man8/clamd.8*
|
|
|
|
%config(noreplace) %{_sysconfdir}/clamd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/clamav
|
2011-02-23 23:34:22 +00:00
|
|
|
%{_sysconfdir}/clamd.d
|
2011-02-21 21:42:47 +00:00
|
|
|
%config %{_initrddir}/clamd
|
|
|
|
%{_sbindir}/clamd
|
|
|
|
%{_bindir}/clamconf
|
|
|
|
%{_bindir}/clamdscan
|
|
|
|
|
|
|
|
%defattr(0644, clam, clam, 0755)
|
|
|
|
%{_localstatedir}/run/clamav/
|
2011-02-23 23:34:22 +00:00
|
|
|
%dir %{_localstatedir}/lib/clamav/
|
2011-02-21 21:42:47 +00:00
|
|
|
%dir %{_localstatedir}/log/clamav/
|
|
|
|
%ghost %{_localstatedir}/log/clamav/clamd.log
|
2011-02-23 23:34:22 +00:00
|
|
|
%exclude %{_localstatedir}/lib/clamav/*
|
2011-02-21 21:42:47 +00:00
|
|
|
|
|
|
|
%if %{!?_without_milter:1}0
|
|
|
|
%files milter
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%doc %{_mandir}/man5/clamav-milter.conf.5*
|
|
|
|
%doc %{_mandir}/man8/clamav-milter.8*
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/clamav-milter
|
|
|
|
%config %{_initrddir}/clamav-milter
|
|
|
|
%{_sbindir}/clamav-milter
|
|
|
|
%config(noreplace) %{_sysconfdir}/clamav-milter.conf
|
|
|
|
%endif
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%files db
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%config(noreplace) %{_sysconfdir}/cron.daily/freshclam
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/freshclam
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%defattr(0644, clam, clam, 0755)
|
2011-02-23 23:34:22 +00:00
|
|
|
%config(noreplace) %verify(user group mode) %{_localstatedir}/lib/clamav/
|
2011-02-21 21:42:47 +00:00
|
|
|
%dir %{_localstatedir}/log/clamav/
|
|
|
|
%ghost %{_localstatedir}/log/clamav/freshclam.log
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%{_bindir}/clamav-config
|
|
|
|
%{_includedir}/clamav.h
|
|
|
|
%{_libdir}/libclamav.so
|
|
|
|
%{_libdir}/pkgconfig/libclamav.pc
|
|
|
|
#%{_libdir}/libclamav.a
|
|
|
|
%exclude %{_libdir}/libclamav.la
|
2009-08-08 13:33:12 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
%changelog
|
2011-03-13 20:25:23 +00:00
|
|
|
* Sun Mar 13 2011 Jan-Frode Myklebust <janfrode@tanso.net> - 0.97-4
|
|
|
|
- Add back clamd-wrapper to stay compatible with users
|
|
|
|
of old packaging (amavisd-new).
|
|
|
|
|
2011-02-23 23:34:22 +00:00
|
|
|
* Wed Feb 23 2011 Nick Bebout <nb@fedoraproject.org> - 0.097-3
|
|
|
|
- Move db to /var/lib/clamav
|
|
|
|
- Ship empty directory /etc/clamd.d for amavisd-new
|
|
|
|
|
2011-02-21 22:46:26 +00:00
|
|
|
* Tue Feb 17 2011 Kevin Fenzi <kevin@tummy.com> - 0.97-2
|
|
|
|
- Disable llvm.
|
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Feb 08 2011 Kevin Fenzi <kevin@tummy.com> - 0.97-1
|
|
|
|
- Update to 0.97
|
|
|
|
- Fix up for current guidelines.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Nov 23 2007 Kevin Fenzi <kevin@tummy.com> - 0.91.2-3
|
|
|
|
- Change username to get upgrades from fedora versions working.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu Nov 22 2007 Kevin Fenzi <kevin@tummy.com> - 0.91.2-2
|
|
|
|
- Initial changes for EPEL version.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Aug 21 2007 Dag Wieers <dag@wieers.com> - 0.91.2-1
|
|
|
|
- Updated to release 0.91.2.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Jul 17 2007 Dag Wieers <dag@wieers.com> - 0.91.1-1
|
|
|
|
- Updated to release 0.91.1.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Wed Jul 11 2007 Dag Wieers <dag@wieers.com> - 0.91-1
|
|
|
|
- Updated to release 0.91.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu May 31 2007 Dag Wieers <dag@wieers.com> - 0.90.3-1
|
|
|
|
- Updated to release 0.90.3.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Apr 27 2007 Dag Wieers <dag@wieers.com> - 0.90.2-2
|
|
|
|
- Added clamav-milter support for EL2.1 now that it comes with a newer sendmail. (Tom G. Christensen)
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun Apr 15 2007 Dag Wieers <dag@wieers.com> - 0.90.2-1
|
|
|
|
- Updated to release 0.90.2.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Mar 09 2007 Dag Wieers <dag@wieers.com> - 0.90.1-4
|
|
|
|
- Removed circular dependency.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu Mar 08 2007 Dag Wieers <dag@wieers.com> - 0.90.1-3
|
|
|
|
- Cleaned up default options to clamav-milter. (Adam T. Bowen)
|
|
|
|
- Removed -b/--bounce as it is no longer recognized. (Gerald Teschl)
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Mar 05 2007 Dag Wieers <dag@wieers.com> - 0.90.1-2
|
|
|
|
- Removed the erroneous --dont-clean-log from the clamav-milter sysconfig. (Gerald Teschl)
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Mar 02 2007 Dag Wieers <dag@wieers.com> - 0.90.1-1
|
|
|
|
- Updated to release 0.90.1.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Feb 20 2007 Dag Wieers <dag@wieers.com> - 0.90-3
|
|
|
|
- Do the right thing...
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Feb 19 2007 Dag Wieers <dag@wieers.com> - 0.90-2
|
|
|
|
- The tarball was re-rolled before public release. Sigh.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Feb 13 2007 Dag Wieers <dag@wieers.com> - 0.90-1
|
|
|
|
- Updated to release 0.90.
|
2009-08-08 13:33:12 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Dec 12 2006 Dag Wieers <dag@wieers.com> - 0.88.7-1
|
|
|
|
- Updated to release 0.88.7.
|
2009-08-08 13:33:12 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun Nov 05 2006 Dag Wieers <dag@wieers.com> - 0.88.6-1
|
|
|
|
- Updated to release 0.88.6.
|
|
|
|
- Added condrestart to sysv scripts. (Tsai Li Ming)
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sat Oct 28 2006 Dag Wieers <dag@wieers.com> - 0.88.5-2
|
|
|
|
- Added missing clamav dependency to clamav-db.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun Oct 15 2006 Dag Wieers <dag@wieers.com> - 0.88.5-1
|
|
|
|
- Updated to release 0.88.5.
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Aug 07 2006 Dag Wieers <dag@wieers.com> - 0.88.4-1
|
|
|
|
- Updated to release 0.88.4.
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Aug 07 2006 Dag Wieers <dag@wieers.com> - 0.88.3-2
|
|
|
|
- Incorporated UPX heap overflow fix.
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sat Jul 01 2006 Dag Wieers <dag@wieers.com> - 0.88.3-1
|
|
|
|
- Updated to release 0.88.3.
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun Apr 30 2006 Dag Wieers <dag@wieers.com> - 0.88.2-1
|
|
|
|
- Updated to release 0.88.2.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Apr 04 2006 Dag Wieers <dag@wieers.com> - 0.88.1-1
|
|
|
|
- Updated to release 0.88.1.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Jan 09 2006 Dag Wieers <dag@wieers.com> - 0.88-1
|
|
|
|
- Updated to release 0.88.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun Nov 13 2005 Dries Verachtert <dries@ulyssis.org> - 0.87.1-1
|
|
|
|
- Updated to release 0.87.1.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sat Sep 17 2005 Dag Wieers <dag@wieers.com> - 0.87-1
|
|
|
|
- Updated to release 0.87.
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Jul 25 2005 Dag Wieers <dag@wieers.com> - 0.86.2-1
|
|
|
|
- Updated to release 0.86.2.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Jul 11 2005 Dag Wieers <dag@wieers.com> - 0.86.1-1
|
|
|
|
- Updated to release 0.86.1.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon May 16 2005 Dag Wieers <dag@wieers.com> - 0.85.1-1
|
|
|
|
- Updated to release 0.85.1.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Apr 29 2005 Dag Wieers <dag@wieers.com> - 0.84-1
|
|
|
|
- Updated to release 0.84.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Feb 14 2005 Dag Wieers <dag@wieers.com> - 0.83-1
|
|
|
|
- Updated to release 0.83.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu Feb 10 2005 Dag Wieers <dag@wieers.com> - 0.82-2
|
|
|
|
- Fix for false positive on RIFF files. (Roger Jochem)
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Feb 07 2005 Dag Wieers <dag@wieers.com> - 0.82-1
|
|
|
|
- Updated to release 0.82.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu Jan 27 2005 Dag Wieers <dag@wieers.com> - 0.81-1
|
|
|
|
- Improved logrotate scripts. (Filippo Grassilli)
|
|
|
|
- Updated to release 0.81.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Wed Dec 01 2004 Dag Wieers <dag@wieers.com> - 0.80-2
|
|
|
|
- Added %%dir /var/clamav/log. (Adam Bowns)
|
|
|
|
- Changed logrotate script to use clamd.log. (Stuart Schneider)
|
|
|
|
- Added curl dependency. (Petr Kristof)
|
|
|
|
- Synchronized some options from Petr. (Petr Kristof)
|
|
|
|
- Fixed another clamav.conf reference. (Michael Best)
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Nov 01 2004 Dag Wieers <dag@wieers.com> - 0.80-1
|
|
|
|
- Updated package description. (Arvin Troels)
|
|
|
|
- Incorporated fixes from Jima. (Jima)
|
|
|
|
- Config clamav.conf renamed to clamd.conf.
|
|
|
|
- Removed obsolete patch.
|
|
|
|
- Added macros for building without milter.
|
|
|
|
- Updated to release 0.80.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Jul 30 2004 Dag Wieers <dag@wieers.com> - 0.75.1-1
|
|
|
|
- Added obsoletes for fedora.us.
|
|
|
|
- Updated to release 0.75.1.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Jul 26 2004 Dag Wieers <dag@wieers.com> - 0.75-2
|
|
|
|
- Fixed a problem where $CODE was empty.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Jul 23 2004 Dag Wieers <dag@wieers.com> - 0.75-1
|
|
|
|
- Updated to release 0.75.
|
2008-04-14 18:36:29 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Wed Jun 30 2004 Dag Wieers <dag@wieers.com> - 0.74-1
|
|
|
|
- Updated to release 0.74.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Jun 15 2004 Dag Wieers <dag@wieers.com> - 0.73-1
|
|
|
|
- Updated to release 0.73.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu Jun 03 2004 Dag Wieers <dag@wieers.com> - 0.72-1
|
|
|
|
- Updated to release 0.72.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Thu May 20 2004 Dag Wieers <dag@wieers.com> - 0.71-1
|
|
|
|
- Updated to release 0.71.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun May 02 2004 Dag Wieers <dag@wieers.com> - 0.70-2
|
|
|
|
- Fixed the installation check for conf files. (Richard Soderberg, Udo Ruecker)
|
|
|
|
- Changed the init-order of the sysv scripts. (Will McCutcheon)
|
|
|
|
- Changes to the default configuration files.
|
2007-02-03 15:16:08 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sat Mar 17 2004 Dag Wieers <dag@wieers.com> - 0.70-1
|
|
|
|
- Updated to release 0.70.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Mar 16 2004 Dag Wieers <dag@wieers.com> - 0.68-1
|
|
|
|
- Updated to release 0.68.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Mar 12 2004 Dag Wieers <dag@wieers.com> - 0.67.1-1
|
|
|
|
- Updated to release 0.67-1.
|
|
|
|
- Added clamdwatch and trashcan to clamd.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Mar 08 2004 Dag Wieers <dag@wieers.com> - 0.67-1
|
|
|
|
- Personalized SPEC file.
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Aug 22 2003 Matthias Saou/Che
|
|
|
|
- Added "--without milter" build option. (Matthias Saou)
|
|
|
|
- Fixed freshclam cron (Matthias Saou)
|
|
|
|
- Built the new package. (Che)
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Tue Jun 24 2003 Che
|
|
|
|
- clamav-milter introduced.
|
|
|
|
- a few more smaller fixes.
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sun Jun 22 2003 Che
|
|
|
|
- version upgrade
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Mon Jun 16 2003 Che
|
|
|
|
- rh9 build
|
|
|
|
- various fixes
|
|
|
|
- got rid of rpm-helper prereq
|
2008-01-01 17:10:12 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Mar 24 2003 Che
|
|
|
|
- some cleanups and fixes
|
|
|
|
- new patch added
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Nov 22 2002 Che
|
|
|
|
- fixed a config patch issue
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Fri Nov 22 2002 Che
|
|
|
|
- version upgrade and some fixes
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Sat Nov 02 2002 Che
|
|
|
|
- version upgrade
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Wed Oct 24 2002 Che
|
|
|
|
- some important changes for lsb compliance
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2011-02-21 21:42:47 +00:00
|
|
|
* Wed Oct 23 2002 Che
|
|
|
|
- initial rpm release
|