2008-01-01 14:59:15 +00:00
|
|
|
## $Id: clamav.spec,v 1.63 2008/01/01 13:19:16 ensc Exp $
|
2005-02-03 08:40:44 +00:00
|
|
|
|
|
|
|
## Fedora Extras specific customization below...
|
2008-01-01 13:19:16 +00:00
|
|
|
%bcond_without fedora
|
|
|
|
%bcond_with unrar
|
2005-02-03 08:40:44 +00:00
|
|
|
##
|
|
|
|
|
2005-03-29 23:52:48 +00:00
|
|
|
%global username clamav
|
|
|
|
%global homedir %_var/lib/clamav
|
|
|
|
%global freshclamlog %_var/log/freshclam.log
|
|
|
|
%global milterlog %_var/log/clamd.milter
|
|
|
|
%global milteruser clamilt
|
|
|
|
%global milterstatedir %_var/run/clamav-milter
|
|
|
|
%global pkgdatadir %_datadir/%name
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2005-02-08 23:00:37 +00:00
|
|
|
|
2005-05-19 07:35:49 +00:00
|
|
|
%{!?release_func:%global release_func() %1%{?dist}}
|
2005-02-08 23:00:37 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
Summary: End-user tools for the Clam Antivirus scanner
|
|
|
|
Name: clamav
|
2007-12-21 18:06:29 +00:00
|
|
|
Version: 0.92
|
2008-01-01 14:59:15 +00:00
|
|
|
Release: %release_func 5
|
2005-04-06 22:11:35 +00:00
|
|
|
|
2008-01-01 13:19:16 +00:00
|
|
|
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: Applications/File
|
|
|
|
URL: http://www.clamav.net
|
2008-01-01 13:19:16 +00:00
|
|
|
Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz
|
|
|
|
Source999: http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz.sig
|
2004-11-08 04:10:52 +00:00
|
|
|
Source1: clamd-wrapper
|
|
|
|
Source2: clamd.sysconfig
|
|
|
|
Source3: clamd.logrotate
|
|
|
|
Source5: clamd-README
|
|
|
|
Source6: clamav-update.logrotate
|
|
|
|
Source7: clamd.SERVICE.init
|
|
|
|
Source8: clamav-notify-servers
|
|
|
|
Patch21: clamav-0.70-path.patch
|
2005-02-03 08:40:44 +00:00
|
|
|
Patch22: clamav-0.80-initoff.patch
|
2008-01-01 13:19:16 +00:00
|
|
|
Patch24: clamav-0.92-private.patch
|
2007-12-21 18:06:29 +00:00
|
|
|
Patch25: clamav-0.92-open.patch
|
2006-07-08 13:17:12 +00:00
|
|
|
BuildRoot: %_tmppath/%name-%version-%release-root
|
|
|
|
Requires: clamav-lib = %version-%release
|
2004-11-08 04:10:52 +00:00
|
|
|
Requires: data(clamav)
|
2007-03-02 17:59:09 +00:00
|
|
|
BuildRequires: zlib-devel bzip2-devel gmp-devel curl-devel
|
2007-05-31 19:37:44 +00:00
|
|
|
BuildRequires: %_includedir/tcpd.h
|
2005-02-03 08:40:44 +00:00
|
|
|
BuildRequires: bc
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
%package filesystem
|
|
|
|
Summary: Filesystem structure for clamav
|
|
|
|
Group: Applications/File
|
|
|
|
Provides: user(clamav)
|
|
|
|
Provides: group(clamav)
|
|
|
|
# Prevent version mix
|
|
|
|
Conflicts: %name < %version-%release
|
|
|
|
Conflicts: %name > %version-%release
|
|
|
|
BuildRequires: fedora-usermgmt-devel
|
|
|
|
%{?FE_USERADD_REQ}
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%package lib
|
|
|
|
Summary: Dynamic libraries for the Clam Antivirus scanner
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: data(clamav)
|
|
|
|
|
|
|
|
%package devel
|
2005-03-03 20:08:36 +00:00
|
|
|
Summary: Header files and libraries for the Clam Antivirus scanner
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: Development/Libraries
|
2005-02-03 08:40:44 +00:00
|
|
|
Source100: clamd-gen
|
2007-02-03 15:16:08 +00:00
|
|
|
Requires: clamav-lib = %version-%release
|
|
|
|
Requires: clamav-filesystem = %version-%release
|
2005-02-03 08:40:44 +00:00
|
|
|
Requires(pre): %_libdir/pkgconfig
|
2008-01-01 13:19:16 +00:00
|
|
|
Requires: pkgconfig
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%package data
|
2005-03-03 20:08:36 +00:00
|
|
|
Summary: Virus signature data for the Clam Antivirus scanner
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: Applications/File
|
2007-02-03 15:16:08 +00:00
|
|
|
Requires(pre): clamav-filesystem = %version-%release
|
|
|
|
Requires(postun): clamav-filesystem = %version-%release
|
|
|
|
Provides: data(clamav) = full
|
|
|
|
Conflicts: data(clamav) < full
|
|
|
|
Conflicts: data(clamav) > full
|
|
|
|
|
|
|
|
%package data-empty
|
|
|
|
Summary: Empty data package for the Clam Antivirus scanner
|
|
|
|
Group: Applications/File
|
|
|
|
Provides: data(clamav) = empty
|
|
|
|
Conflicts: data(clamav) < empty
|
|
|
|
Conflicts: data(clamav) > empty
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%package update
|
2005-03-03 20:08:36 +00:00
|
|
|
Summary: Auto-updater for the Clam Antivirus scanner data-files
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: Applications/File
|
2005-07-25 17:19:21 +00:00
|
|
|
Source200: freshclam-sleep
|
|
|
|
Source201: freshclam.sysconfig
|
|
|
|
Source202: clamav-update.cron
|
2007-02-03 15:16:08 +00:00
|
|
|
Requires: clamav-filesystem = %version-%release
|
2004-11-08 04:10:52 +00:00
|
|
|
Requires(pre): /etc/cron.d
|
|
|
|
Requires(postun): /etc/cron.d
|
2005-07-25 17:19:21 +00:00
|
|
|
Requires(post): %__chown %__chmod
|
2006-07-08 13:17:12 +00:00
|
|
|
Requires(post): group(clamav)
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%package server
|
2005-03-03 20:08:36 +00:00
|
|
|
Summary: Clam Antivirus scanner server
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: init(clamav-server)
|
|
|
|
Requires: data(clamav)
|
2007-02-03 15:16:08 +00:00
|
|
|
Requires: clamav-filesystem = %version-%release
|
|
|
|
Requires: clamav-lib = %version-%release
|
2006-09-21 18:27:43 +00:00
|
|
|
|
|
|
|
%package server-sysv
|
|
|
|
Summary: SysV initscripts for clamav server
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Provides: init(clamav-server) = sysv
|
|
|
|
Requires: clamav-server = %version-%release
|
2004-11-08 04:10:52 +00:00
|
|
|
Requires(pre): %_initrddir
|
|
|
|
Requires(postun): %_initrddir
|
|
|
|
|
|
|
|
%package milter
|
2005-03-03 20:08:36 +00:00
|
|
|
Summary: Sendmail-milter for the Clam Antivirus scanner
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: init(clamav-milter)
|
2008-01-01 13:19:16 +00:00
|
|
|
Source300: README.fedora
|
2006-07-08 13:17:12 +00:00
|
|
|
BuildRequires: sendmail-devel
|
|
|
|
BuildRequires: fedora-usermgmt-devel
|
2006-09-21 18:27:43 +00:00
|
|
|
Provides: user(%milteruser)
|
|
|
|
Provides: group(%milteruser)
|
|
|
|
Requires: sendmail
|
|
|
|
Requires(post): coreutils
|
|
|
|
%{?FE_USERADD_REQ}
|
|
|
|
|
|
|
|
%package milter-sysv
|
|
|
|
Summary: SysV initscripts for the clamav sendmail-milter
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Provides: init(clamav-milter) = sysv
|
|
|
|
Requires: clamav-milter = %version-%release
|
|
|
|
Requires(post): user(%milteruser) clamav-milter
|
|
|
|
Requires(preun): user(%milteruser) clamav-milter
|
2004-11-08 04:10:52 +00:00
|
|
|
Requires(pre): %_initrddir
|
2005-07-29 16:29:09 +00:00
|
|
|
Requires(postun): %_initrddir initscripts
|
2006-09-21 18:27:43 +00:00
|
|
|
Requires(post): chkconfig
|
2005-07-29 16:29:09 +00:00
|
|
|
Requires(preun): chkconfig initscripts
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Clam AntiVirus is an 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. The programs
|
|
|
|
are based on a shared library distributed with the Clam AntiVirus package,
|
|
|
|
which you can use with your own software. The virus database is based on
|
|
|
|
the virus database from OpenAntiVirus, but contains additional signatures
|
|
|
|
(including signatures for popular polymorphic viruses, too) and is KEPT UP
|
|
|
|
TO DATE.
|
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
%description filesystem
|
|
|
|
This package provides the filesystem structure and contains the
|
|
|
|
user-creation scripts required by clamav.
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%description lib
|
|
|
|
This package contains dynamic libraries shared between applications
|
|
|
|
using the Clam Antivirus scanner.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains headerfiles and libraries which are needed to
|
|
|
|
build applications using clamav.
|
|
|
|
|
|
|
|
%description data
|
|
|
|
This package contains the virus-database needed by clamav. This
|
|
|
|
database should be updated regularly; the 'clamav-update' package
|
2007-02-03 15:16:08 +00:00
|
|
|
ships a corresponding cron-job. This package and the
|
|
|
|
'clamav-data-empty' package are mutually exclusive.
|
|
|
|
|
|
|
|
Use -data when you want a working (but perhaps outdated) virus scanner
|
|
|
|
immediately after package installation.
|
|
|
|
|
|
|
|
Use -data-empty when you are updating the virus database regulary and
|
|
|
|
do not want to download a >5MB sized rpm-package with outdated virus
|
|
|
|
definitions.
|
|
|
|
|
|
|
|
|
|
|
|
%description data-empty
|
|
|
|
This is an empty package to fulfill inter-package dependencies of the
|
|
|
|
clamav suite. This package and the 'clamav-data' package are mutually
|
|
|
|
exclusive.
|
|
|
|
|
|
|
|
Use -data when you want a working (but perhaps outdated) virus scanner
|
|
|
|
immediately after package installation.
|
|
|
|
|
|
|
|
Use -data-empty when you are updating the virus database regulary and
|
|
|
|
do not want to download a >5MB sized rpm-package with outdated virus
|
|
|
|
definitions.
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%description update
|
|
|
|
This package contains programs which can be used to update the clamav
|
|
|
|
anti-virus database automatically. It uses the freshclam(1) utility for
|
2005-02-03 08:40:44 +00:00
|
|
|
this task. To activate it, uncomment the entry in /etc/cron.d/clamav-update.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%description server
|
|
|
|
ATTENTION: most users do not need this package; the main package has
|
|
|
|
everything (or depends on it) which is needed to scan for virii on
|
|
|
|
workstations.
|
|
|
|
|
|
|
|
This package contains files which are needed to execute the clamd-daemon.
|
|
|
|
This daemon does not provide a system-wide service. Instead of, an instance
|
|
|
|
of this daemon should be started for each service requiring it.
|
|
|
|
|
|
|
|
See the README file how this can be done with a minimum of effort.
|
|
|
|
|
2006-09-21 18:27:43 +00:00
|
|
|
|
|
|
|
%description server-sysv
|
|
|
|
SysV initscripts template for the clamav server
|
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%description milter
|
2008-01-01 13:19:16 +00:00
|
|
|
This package contains files which are needed to run the clamav-milter.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2006-09-21 18:27:43 +00:00
|
|
|
%description milter-sysv
|
|
|
|
The SysV initscripts for clamav-milter.
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## ------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
2007-02-18 21:19:28 +00:00
|
|
|
%setup -q
|
2006-04-24 22:05:45 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%patch21 -p1 -b .path
|
|
|
|
%patch22 -p1 -b .initoff
|
2007-02-04 11:57:35 +00:00
|
|
|
%patch24 -p1 -b .private
|
2007-08-25 10:40:56 +00:00
|
|
|
%patch25 -p1 -b .open
|
2008-01-01 13:19:16 +00:00
|
|
|
|
|
|
|
install -p -m0644 %SOURCE300 clamav-milter/
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
perl -pi -e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g;
|
|
|
|
s!^#?(LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g;
|
|
|
|
s!^#?(PidFile ).*!\1/var/run/clamd.<SERVICE>/clamd.pid!g;
|
|
|
|
s!^#?(User ).*!\1<USER>!g;
|
|
|
|
s! /usr/local/share/clamav,! %homedir,!g;
|
2005-02-03 08:40:44 +00:00
|
|
|
' etc/clamd.conf
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
perl -pi -e 's!^#(UpdateLogFile )!\1!g;' etc/freshclam.conf
|
|
|
|
|
2005-07-29 16:29:09 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
## ------------------------------------------------------------
|
|
|
|
|
|
|
|
%build
|
2006-07-08 15:57:54 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -std=gnu99"
|
2007-02-04 11:57:35 +00:00
|
|
|
export LDFLAGS='-Wl,--as-needed'
|
|
|
|
# HACK: remove me, when configure uses $LIBS instead of $LDFLAGS for milter check
|
|
|
|
export LIBS='-lmilter -lpthread'
|
2008-01-01 13:19:16 +00:00
|
|
|
%configure --disable-clamav --with-dbdir=/var/lib/clamav \
|
2008-01-01 14:59:15 +00:00
|
|
|
--enable-milter --disable-static \
|
2008-01-01 13:19:16 +00:00
|
|
|
%{!?with_unrar:--disable-unrar}
|
|
|
|
|
|
|
|
# build with --as-needed and disable rpath
|
|
|
|
sed -i \
|
|
|
|
-e 's! -shared ! -Wl,--as-needed\0!g' \
|
2008-01-01 14:59:15 +00:00
|
|
|
-e '/sys_lib_dlsearch_path_spec=\"\/lib \/usr\/lib /s!/lib!/%_lib!g' \
|
2008-01-01 13:19:16 +00:00
|
|
|
libtool
|
2007-12-21 18:06:29 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
## ------------------------------------------------------------
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf "$RPM_BUILD_ROOT" _doc*
|
2006-07-08 13:17:12 +00:00
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2005-07-25 17:19:21 +00:00
|
|
|
function smartsubst() {
|
|
|
|
local tmp
|
|
|
|
local regexp=$1
|
|
|
|
shift
|
|
|
|
|
|
|
|
tmp=$(mktemp /tmp/%name-subst.XXXXXX)
|
|
|
|
for i; do
|
|
|
|
sed -e "$regexp" "$i" >$tmp
|
|
|
|
cmp -s $tmp "$i" || cat $tmp >"$i"
|
|
|
|
rm -f $tmp
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
install -d -m755 \
|
|
|
|
${RPM_BUILD_ROOT}%_sysconfdir/{clamd.d,cron.d,logrotate.d,sysconfig} \
|
|
|
|
${RPM_BUILD_ROOT}%_var/log \
|
2005-02-03 08:40:44 +00:00
|
|
|
${RPM_BUILD_ROOT}%milterstatedir \
|
|
|
|
${RPM_BUILD_ROOT}%pkgdatadir/template \
|
2007-02-03 15:16:08 +00:00
|
|
|
${RPM_BUILD_ROOT}%_initrddir \
|
2008-01-01 13:19:16 +00:00
|
|
|
${RPM_BUILD_ROOT}%homedir/{main,daily}.inc
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}%_sysconfdir/clamd.conf \
|
|
|
|
${RPM_BUILD_ROOT}%_libdir/*.la
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2008-01-01 13:19:16 +00:00
|
|
|
|
|
|
|
for i in cfg db fp hdb info mdb mdu ndb ndu pdb wdb zmd; do
|
|
|
|
touch ${RPM_BUILD_ROOT}%homedir/daily.inc/daily.$i
|
|
|
|
touch ${RPM_BUILD_ROOT}%homedir/main.inc/main.$i
|
2007-02-03 15:16:08 +00:00
|
|
|
done
|
|
|
|
|
2008-01-01 13:19:16 +00:00
|
|
|
touch ${RPM_BUILD_ROOT}%homedir/daily.inc/COPYING
|
|
|
|
touch ${RPM_BUILD_ROOT}%homedir/main.inc/COPYING
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## prepare the server-files
|
|
|
|
mkdir _doc_server
|
2006-07-08 13:17:12 +00:00
|
|
|
install -m644 -p %SOURCE2 _doc_server/clamd.sysconfig
|
|
|
|
install -m644 -p %SOURCE3 _doc_server/clamd.logrotate
|
|
|
|
install -m755 -p %SOURCE7 _doc_server/clamd.init
|
|
|
|
install -m644 -p %SOURCE5 _doc_server/README
|
|
|
|
install -m644 -p etc/clamd.conf _doc_server/clamd.conf
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
install -m644 -p %SOURCE1 $RPM_BUILD_ROOT%pkgdatadir
|
|
|
|
install -m755 -p %SOURCE100 $RPM_BUILD_ROOT%pkgdatadir
|
|
|
|
cp -pa _doc_server/* $RPM_BUILD_ROOT%pkgdatadir/template
|
|
|
|
ln -s %pkgdatadir/clamd-wrapper $RPM_BUILD_ROOT%_initrddir/clamd-wrapper
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2005-07-25 17:19:21 +00:00
|
|
|
smartsubst 's!/usr/share/clamav!%pkgdatadir!g' $RPM_BUILD_ROOT%pkgdatadir/clamd-wrapper
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## prepare the update-files
|
2006-07-08 13:17:12 +00:00
|
|
|
install -m644 -p %SOURCE6 ${RPM_BUILD_ROOT}%_sysconfdir/logrotate.d/clamav-update
|
|
|
|
install -m755 -p %SOURCE8 ${RPM_BUILD_ROOT}%_sbindir/clamav-notify-servers
|
|
|
|
touch ${RPM_BUILD_ROOT}%freshclamlog
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
install -p -m0755 %SOURCE200 $RPM_BUILD_ROOT%pkgdatadir/freshclam-sleep
|
|
|
|
install -p -m0644 %SOURCE201 $RPM_BUILD_ROOT%_sysconfdir/sysconfig/freshclam
|
|
|
|
install -p -m0600 %SOURCE202 $RPM_BUILD_ROOT%_sysconfdir/cron.d/clamav-update
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2005-07-25 17:19:21 +00:00
|
|
|
smartsubst 's!webmaster,clamav!webmaster,%username!g;
|
|
|
|
s!/usr/share/clamav!%pkgdatadir!g;
|
|
|
|
s!/usr/bin!%_bindir!g;
|
|
|
|
s!/usr/sbin!%_sbindir!g;' \
|
|
|
|
$RPM_BUILD_ROOT%_sysconfdir/cron.d/clamav-update \
|
|
|
|
$RPM_BUILD_ROOT%pkgdatadir/freshclam-sleep
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
|
2005-09-17 09:01:24 +00:00
|
|
|
#### The milter stuff
|
2004-11-08 04:10:52 +00:00
|
|
|
function subst() {
|
2005-09-17 09:01:24 +00:00
|
|
|
sed -e 's!<SERVICE>!milter!g;s!<USER>!%milteruser!g;'"$3" "$1" >"$RPM_BUILD_ROOT$2"
|
2004-11-08 04:10:52 +00:00
|
|
|
}
|
|
|
|
|
2005-07-25 17:19:21 +00:00
|
|
|
|
2005-09-17 09:01:24 +00:00
|
|
|
subst etc/clamd.conf /etc/clamd.d/milter.conf \
|
2004-11-08 04:10:52 +00:00
|
|
|
's!^##*\(\(LogFile\|LocalSocket\|PidFile\|User\)\s\|\(StreamSaveToDisk\|ScanMail\)$\)!\1!;'
|
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF >$RPM_BUILD_ROOT%_sysconfdir/sysconfig/clamav-milter
|
2007-02-03 15:16:08 +00:00
|
|
|
CLAMAV_FLAGS='-lo -c /etc/clamd.d/milter.conf local:%milterstatedir/clamav.sock'
|
2004-11-08 04:10:52 +00:00
|
|
|
EOF
|
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
install -p -m755 contrib/init/RedHat/clamav-milter $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
2004-11-08 04:10:52 +00:00
|
|
|
touch $RPM_BUILD_ROOT%milterstatedir/clamav.sock $RPM_BUILD_ROOT%milterlog
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## ------------------------------------------------------------
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
## ------------------------------------------------------------
|
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
%pre filesystem
|
2006-07-08 13:17:12 +00:00
|
|
|
%__fe_groupadd 4 -r %username &>/dev/null || :
|
|
|
|
%__fe_useradd 4 -r -s /sbin/nologin -d %homedir -M \
|
|
|
|
-c 'Clamav database update user' -g %username %username &>/dev/null || :
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
%postun filesystem
|
|
|
|
%__fe_userdel %username &>/dev/null || :
|
|
|
|
%__fe_groupdel %username &>/dev/null || :
|
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%post update
|
2006-07-08 13:17:12 +00:00
|
|
|
test -e %freshclamlog || {
|
|
|
|
touch %freshclamlog
|
|
|
|
%__chmod 0664 %freshclamlog
|
|
|
|
%__chown root:%username %freshclamlog
|
2004-11-08 04:10:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
%pre milter
|
2006-07-08 13:17:12 +00:00
|
|
|
%__fe_groupadd 5 -r %milteruser &>/dev/null || :
|
|
|
|
%__fe_useradd 5 -r -s /sbin/nologin -d %milterstatedir -M \
|
|
|
|
-c 'Clamav Milter User' -g %milteruser %milteruser &>/dev/null || :
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%post milter
|
2005-07-29 16:29:09 +00:00
|
|
|
test -e %milterlog || {
|
|
|
|
touch %milterlog
|
|
|
|
chmod 0620 %milterlog
|
|
|
|
chown root:%milteruser %milterlog
|
|
|
|
}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%postun milter
|
2006-07-08 13:17:12 +00:00
|
|
|
%__fe_userdel %milteruser &>/dev/null || :
|
|
|
|
%__fe_groupdel %milteruser &>/dev/null || :
|
2006-09-21 18:27:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post milter-sysv
|
|
|
|
/sbin/chkconfig --add clamav-milter
|
|
|
|
|
|
|
|
%preun milter-sysv
|
|
|
|
test "$1" != 0 || %_initrddir/clamav-milter stop &>/dev/null || :
|
|
|
|
test "$1" != 0 || /sbin/chkconfig --del clamav-milter
|
|
|
|
|
|
|
|
%postun milter-sysv
|
2006-07-08 13:17:12 +00:00
|
|
|
test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post lib -p /sbin/ldconfig
|
|
|
|
%postun lib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-03-02 17:17:37 +00:00
|
|
|
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README UPGRADE
|
2004-11-08 04:10:52 +00:00
|
|
|
%doc docs/*.pdf
|
2006-07-08 13:17:12 +00:00
|
|
|
%_bindir/*
|
2006-08-09 06:30:01 +00:00
|
|
|
%_mandir/man[15]/*
|
2005-02-03 08:40:44 +00:00
|
|
|
%exclude %_bindir/clamav-config
|
2004-11-08 04:10:52 +00:00
|
|
|
%exclude %_bindir/freshclam
|
2006-01-09 23:27:46 +00:00
|
|
|
%exclude %_mandir/*/freshclam*
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## -----------------------
|
|
|
|
|
|
|
|
%files lib
|
|
|
|
%defattr(-,root,root,-)
|
2006-07-08 13:17:12 +00:00
|
|
|
%_libdir/*.so.*
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## -----------------------
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2006-07-08 13:17:12 +00:00
|
|
|
%_includedir/*
|
|
|
|
%_libdir/*.so
|
2005-02-03 08:40:44 +00:00
|
|
|
%pkgdatadir/template
|
|
|
|
%pkgdatadir/clamd-gen
|
|
|
|
%_libdir/pkgconfig/*
|
|
|
|
%_bindir/clamav-config
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## -----------------------
|
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
%files filesystem
|
|
|
|
%attr(-,%username,%username) %dir %homedir
|
|
|
|
%attr(-,%username,%username) %dir %homedir/daily.inc
|
|
|
|
%attr(-,root,root) %dir %pkgdatadir
|
|
|
|
|
|
|
|
## -----------------------
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%files data
|
2006-07-08 13:17:12 +00:00
|
|
|
%defattr(-,%username,%username,-)
|
2005-02-03 08:40:44 +00:00
|
|
|
# use %%config to keep files which were updated by 'freshclam'
|
|
|
|
# already. Without this tag, they would be overridden with older
|
|
|
|
# versions whenever a new -data package is installed.
|
2006-07-08 13:17:12 +00:00
|
|
|
%config %verify(not size md5 mtime) %homedir/*.cvd
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
|
|
|
|
%files data-empty
|
|
|
|
%defattr(-,%username,%username,-)
|
|
|
|
%ghost %attr(0664,%username,%username) %homedir/main.cvd
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
## -----------------------
|
|
|
|
|
|
|
|
%files update
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%_bindir/freshclam
|
2006-01-09 23:27:46 +00:00
|
|
|
%_mandir/*/freshclam*
|
2005-07-25 17:19:21 +00:00
|
|
|
%pkgdatadir/freshclam-sleep
|
|
|
|
%config(noreplace) %verify(not mtime) %_sysconfdir/freshclam.conf
|
|
|
|
%config(noreplace) %verify(not mtime) %_sysconfdir/logrotate.d/*
|
|
|
|
%config(noreplace) %_sysconfdir/cron.d/*
|
|
|
|
%config(noreplace) %_sysconfdir/sysconfig/freshclam
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
%ghost %attr(0664,root,%username) %verify(not size md5 mtime) %freshclamlog
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2008-01-01 13:19:16 +00:00
|
|
|
%ghost %attr(0664,%username,%username) %homedir/daily.inc/*
|
|
|
|
%ghost %attr(0664,%username,%username) %homedir/main.inc/*
|
2007-02-03 15:16:08 +00:00
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
## -----------------------
|
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc _doc_server/*
|
2006-08-09 06:48:12 +00:00
|
|
|
%_mandir/man[58]/clamd*
|
2006-07-08 13:17:12 +00:00
|
|
|
%_sbindir/*
|
2005-02-03 08:40:44 +00:00
|
|
|
%pkgdatadir/clamd-wrapper
|
2006-09-21 18:27:43 +00:00
|
|
|
%dir %_sysconfdir/clamd.d
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
%exclude %_sbindir/*milter*
|
|
|
|
%exclude %_mandir/man8/clamav-milter*
|
|
|
|
|
2006-09-21 18:27:43 +00:00
|
|
|
|
|
|
|
%files server-sysv
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%_initrddir/clamd-wrapper
|
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
## -----------------------
|
|
|
|
|
|
|
|
%files milter
|
|
|
|
%defattr(-,root,root,-)
|
2008-01-01 13:19:16 +00:00
|
|
|
%doc clamav-milter/INSTALL clamav-milter/README.fedora
|
2004-11-08 04:10:52 +00:00
|
|
|
%_sbindir/*milter*
|
|
|
|
%_mandir/man8/clamav-milter*
|
2006-07-08 13:17:12 +00:00
|
|
|
%config(noreplace) %verify(not mtime) %_sysconfdir/clamd.d/milter.conf
|
2004-11-08 04:10:52 +00:00
|
|
|
%attr(0700,%milteruser,%milteruser) %dir %milterstatedir
|
|
|
|
%ghost %milterstatedir/*
|
|
|
|
%ghost %attr(0620,root,%milteruser) %verify(not size md5 mtime) %milterlog
|
|
|
|
|
2006-09-21 18:27:43 +00:00
|
|
|
|
|
|
|
%files milter-sysv
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config %_initrddir/clamav-milter
|
|
|
|
%config(noreplace) %verify(not mtime) %_sysconfdir/sysconfig/clamav-milter
|
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%changelog
|
2008-01-01 14:59:15 +00:00
|
|
|
* Tue Jan 1 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-5
|
|
|
|
- use a better way to disable RPATH-generation (needed for '--with
|
|
|
|
unrar' builds)
|
|
|
|
|
2008-01-01 13:19:16 +00:00
|
|
|
* Mon Dec 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-4
|
|
|
|
- added a README.fedora to the milter package (#240610)
|
|
|
|
- ship original sources again; unrar is now licensed correctly (no more
|
|
|
|
stolen code put under GPL). Nevertheless, this license is not GPL
|
|
|
|
compatible, and to allow libclamav to be used by GPL applications,
|
|
|
|
unrar is disabled by a ./configure switch.
|
|
|
|
- use pkg-config in clamav-config to emulate --cflags and --libs
|
|
|
|
operations (fixes partly multilib issues)
|
|
|
|
- registered some more auto-updated files and marked them as %%ghost
|
|
|
|
|
2007-12-21 18:11:32 +00:00
|
|
|
* Fri Dec 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.92-3
|
2007-12-21 18:06:29 +00:00
|
|
|
- updated to 0.92 (SECURITY):
|
|
|
|
- CVE-2007-6335 MEW PE File Integer Overflow Vulnerability
|
|
|
|
|
2007-10-29 14:25:28 +00:00
|
|
|
* Mon Oct 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.91.2-3
|
|
|
|
- remove RAR decompression code from source tarball because of
|
|
|
|
legal problems (resolves 334371)
|
|
|
|
- correct license tag
|
|
|
|
|
2007-09-24 18:17:46 +00:00
|
|
|
* Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 0.91.2-2
|
|
|
|
- Bump release for upgrade path.
|
|
|
|
|
2007-08-25 10:12:31 +00:00
|
|
|
* Sat Aug 25 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.2-1
|
|
|
|
- updated to 0.91.2 (SECURITY):
|
|
|
|
- CVE-2007-4510 DOS in RTF parser
|
|
|
|
- DOS in html normalizer
|
|
|
|
- arbitrary command execution by special crafted recipients in
|
|
|
|
clamav-milter's black-hole mode
|
2007-08-25 10:40:56 +00:00
|
|
|
- fixed an open(2) issue
|
2007-08-25 10:12:31 +00:00
|
|
|
|
2007-07-17 07:27:38 +00:00
|
|
|
* Tue Jul 17 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.1-0
|
|
|
|
- updated to 0.91.1
|
|
|
|
|
2007-07-12 07:31:31 +00:00
|
|
|
* Thu Jul 12 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91-1
|
|
|
|
- updated to 0.91
|
|
|
|
|
2007-05-31 07:40:24 +00:00
|
|
|
* Thu May 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.3-1
|
|
|
|
- updated to 0.90.3
|
2007-05-31 19:37:44 +00:00
|
|
|
- BR tcpd.h instead of tcp_wrappers(-devel) to make it build both
|
2007-05-31 07:40:24 +00:00
|
|
|
in FC6- and F7+
|
|
|
|
|
2007-04-13 07:37:40 +00:00
|
|
|
* Fri Apr 13 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.2-1
|
|
|
|
- [SECURITY] updated to 0.90.2; fixes CVE-2007-1745, CVE-2007-1997
|
|
|
|
|
2007-03-02 17:59:09 +00:00
|
|
|
* Fri Mar 2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-2
|
|
|
|
- BR 'tcp_wrappers-devel' instead of plain 'tcp_wrappers'
|
|
|
|
|
2007-03-02 17:17:37 +00:00
|
|
|
* Fri Mar 2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-1
|
|
|
|
- updated to 0.90.1
|
|
|
|
- updated %%doc list
|
|
|
|
|
2007-02-18 21:19:28 +00:00
|
|
|
* Sun Feb 18 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-1
|
|
|
|
- updated to final 0.90
|
|
|
|
- removed -visibility patch since fixed upstream
|
|
|
|
|
2007-02-04 11:57:35 +00:00
|
|
|
* Sun Feb 4 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.3.rc3
|
|
|
|
- build with -Wl,-as-needed and cleaned up pkgconfig file
|
|
|
|
- removed old hack which forced installation of freshclam.conf; related
|
|
|
|
check was removed upstream
|
|
|
|
- removed static library
|
|
|
|
- removed %%changelog entries from before 2004
|
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
* Sat Feb 3 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.2.rc3
|
|
|
|
- updated to 0.90rc3
|
|
|
|
- splitted mandatory parts from the data-file into a separate -filesystem
|
|
|
|
subpackage
|
|
|
|
- added a -data-empty subpackage to allow a setup where database is
|
|
|
|
updated per cron-job and user does not want to download the large
|
|
|
|
-data package with outdated virus definitations (#214949)
|
|
|
|
- %%ghost'ed the files downloaded by freshclam
|
|
|
|
|
2006-12-12 08:17:53 +00:00
|
|
|
* Tue Dec 12 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.7-1
|
|
|
|
- updated to 0.88.7
|
|
|
|
|
2006-11-05 20:11:19 +00:00
|
|
|
* Sun Nov 5 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.6-1
|
|
|
|
- updated to 0.88.6
|
|
|
|
|
2006-10-18 07:22:18 +00:00
|
|
|
* Wed Oct 18 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.5-1
|
|
|
|
- updated to 0.88.5 (SECURITY); fixes CVE-2006-4182, CVE-2006-5295
|
|
|
|
- added patch to set '__attribute__ ((visibility("hidden")))' for
|
|
|
|
exported MD5_*() functions (fixes #202043)
|
|
|
|
|
2006-10-04 22:32:25 +00:00
|
|
|
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.88.4-4
|
|
|
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
|
|
2006-09-21 18:27:43 +00:00
|
|
|
* Thu Sep 21 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.4-3
|
|
|
|
- splitted SysV initscripts of -milter and -server into own subpackages
|
|
|
|
|
2006-09-15 06:21:38 +00:00
|
|
|
* Fri Sep 15 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.4-2
|
|
|
|
- rebuilt
|
|
|
|
|
2006-08-09 06:30:01 +00:00
|
|
|
* Tue Aug 8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.4-1
|
|
|
|
- updated to 0.88.4 (SECURITY)
|
|
|
|
|
|
|
|
* Wed Jul 12 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
|
|
- removed the clamdscan(1) manpage from the -server subpackage
|
|
|
|
|
2006-07-08 15:57:54 +00:00
|
|
|
* Sat Jul 8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
|
|
- removed a superfluous '}'
|
|
|
|
- removed some code which was relevant for FC-3 only
|
|
|
|
|
2006-07-08 13:17:12 +00:00
|
|
|
* Sat Jul 8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.3-1
|
|
|
|
- updated to 0.88.3
|
|
|
|
- updated to new fedora-usermgmt macros
|
|
|
|
|
|
|
|
* Tue May 16 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.2-2
|
|
|
|
- cleanups: removed unneeded curlies, use plain command instead of
|
|
|
|
%%__XXX macro, whitespace cleanup, removed unneeded versioned
|
|
|
|
dependencies
|
|
|
|
- added a 'Requires(post): group(clamav)' dependencies for -update and
|
|
|
|
added the corresponding Provides: to -data
|
|
|
|
- removed the %%_without_milter conditional; you won't gain anything
|
|
|
|
when milter would be disabled at buildtime
|
|
|
|
|
2006-04-30 10:07:15 +00:00
|
|
|
* Sun Apr 30 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.2-1
|
|
|
|
- updated to 0.88.2 (SECURITY)
|
|
|
|
- rediffed patches; most issues handled by 0.88.1-2 are fixed in
|
|
|
|
0.88.2
|
|
|
|
|
2006-04-24 22:05:45 +00:00
|
|
|
* Mon Apr 24 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.1-2
|
|
|
|
- added patch which fixes some classes of compiler warnings; at least
|
|
|
|
the using of implicitly declared functions was reported to cause
|
|
|
|
segfaults on AMD64 (brought to my attention by Marc Perkel)
|
|
|
|
- added patch which fixes wrong usage of strncpy(3) in unrarlib.c
|
|
|
|
|
2006-04-06 16:50:58 +00:00
|
|
|
* Thu Apr 06 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.1-1
|
|
|
|
- updated to 0.88.1 (SECURITY)
|
|
|
|
|
2006-02-18 09:33:59 +00:00
|
|
|
* Sat Feb 18 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88-2
|
|
|
|
- rebuilt for FC5
|
|
|
|
|
2006-01-09 23:27:46 +00:00
|
|
|
* Tue Jan 10 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88-1
|
|
|
|
- updated to 0.88
|
|
|
|
- added pseudo-versions for the 'init(...)' provides as a first step
|
|
|
|
for the support of alternative initmethods
|
|
|
|
|
|
|
|
* Tue Nov 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.87.1-2
|
|
|
|
- moved 'freshclam.conf.5' man page into the -update subpackage (#173221)
|
|
|
|
- ship 'clamd.conf.5' man page in the -server subpackage *too*. The
|
|
|
|
same file is contained in multiple packages now, but this man-page
|
|
|
|
can not be removed from the base package because it also applies to
|
|
|
|
'clamdscan' there (#173221).
|
|
|
|
|
2005-11-04 12:55:25 +00:00
|
|
|
* Fri Nov 4 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.87.1-1
|
|
|
|
- updated to 0.87.1
|
|
|
|
|
2005-09-17 09:01:24 +00:00
|
|
|
* Sat Sep 17 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.87-1
|
|
|
|
- updated to 0.87 (SECURITY)
|
|
|
|
- removed -timeout patch; it is solved upstream
|
|
|
|
- reverted the -exim changes; they add yet more complexity, their
|
|
|
|
functionality can go into an own package and they contained flaws
|
|
|
|
|
2005-09-10 11:20:26 +00:00
|
|
|
* Fri Sep 9 2005 David Woodhouse <dwmw2@infradead.org> - 0.86.2-5
|
|
|
|
- Add clamav-exim configuration package
|
|
|
|
|
2005-07-29 16:29:09 +00:00
|
|
|
* Fri Jul 29 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.2-4
|
|
|
|
- [milter] create the milter-logfile in the %%post scriptlet
|
|
|
|
- [milter] reverted the change of the default child_timeout value; it
|
|
|
|
was set to 5 minutes in 0.86.2 which conflicts with the internal
|
|
|
|
mode where a timeout must not be set. So, the clamav-milter would
|
|
|
|
not run with the default configuration
|
|
|
|
|
2005-07-28 15:35:10 +00:00
|
|
|
* Thu Jul 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.2-3
|
|
|
|
- Fixed calculation of sleep duration; on some systems/IPs, `hostid`
|
|
|
|
results in a negative number which is retained by the bash
|
|
|
|
modulo-operation. So the sleep may get a negative number of seconds
|
|
|
|
being interpreted as an option. This version makes sure that the
|
|
|
|
module-operations returns a non-negative value. [BZ #164494, James
|
|
|
|
Wilkinson]
|
|
|
|
- added support for a /usr/sbin/clamav-notify-servers.local hook; this
|
|
|
|
file will be executed (source'd) before all other actions and can
|
|
|
|
abort the entire processing by invoking 'exit'
|
|
|
|
|
2005-07-25 17:56:56 +00:00
|
|
|
* Mon Jul 25 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.2-2
|
2005-07-25 17:19:21 +00:00
|
|
|
- updated to 0.86.2 (SECURITY)
|
|
|
|
- changed the freshclam updating mechanism (again); now, it consists
|
|
|
|
of a crontab which does not need to be changed and a helper script
|
|
|
|
(freshclam-sleep). This helper script is configured by
|
|
|
|
/etc/sysconfig/freshclam
|
|
|
|
|
2005-06-25 17:38:35 +00:00
|
|
|
* Sat Jun 25 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.1-2
|
2005-06-25 17:25:50 +00:00
|
|
|
- updated to 0.86.1
|
|
|
|
- fixed randomization in %%post scriptlet: hour should be a range but
|
|
|
|
not a single number
|
|
|
|
|
2005-06-21 07:25:56 +00:00
|
|
|
* Tue Jun 21 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86-1
|
|
|
|
- updated to 0.86
|
|
|
|
- randomize freshclam startup times in -update's %%post script (suggested
|
|
|
|
by Stephen Smoogen); this requires some more Requires(post): also
|
|
|
|
|
2005-05-19 07:45:09 +00:00
|
|
|
* Wed May 18 2005 Warren Togami <wtogami@redhat.com> - 0.85.1-4
|
2005-05-19 07:35:49 +00:00
|
|
|
- fix dist tagging the way Enrico wants it
|
|
|
|
|
2005-05-19 06:27:21 +00:00
|
|
|
* Tue May 17 2005 Oliver Falk <oliver@linux-kernel.at> - 0.85.1-2
|
|
|
|
- Rebuild
|
|
|
|
|
2005-05-17 06:41:27 +00:00
|
|
|
* Tue May 17 2005 Oliver Falk <oliver@linux-kernel.at> - 0.85.1-1
|
|
|
|
- Update
|
|
|
|
|
2005-05-14 08:56:12 +00:00
|
|
|
* Sat May 14 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.85-0
|
|
|
|
- updated to 0.85
|
|
|
|
|
|
|
|
* Sun May 1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.84-0
|
2005-05-01 11:03:39 +00:00
|
|
|
- updated to 0.84
|
|
|
|
|
2005-04-06 22:11:35 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-02-15 08:40:51 +00:00
|
|
|
* Tue Feb 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.83-1
|
|
|
|
- updated to 0.83
|
|
|
|
|
2005-02-08 23:00:37 +00:00
|
|
|
* Tue Feb 8 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.82-1
|
|
|
|
- updated to 0.82
|
|
|
|
- minor spec cleanups
|
|
|
|
|
2005-02-03 08:40:44 +00:00
|
|
|
* Fri Jan 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.81-0.fdr.2
|
|
|
|
- build the package with '--disable-zlib-vcheck' because RH is unable to
|
|
|
|
apply a fix for a 5 month old and solved security issue. Please fill
|
|
|
|
your comments at https://bugzilla.redhat.com/beta/show_bug.cgi?id=131385
|
|
|
|
- added 'BuildRequires: bc' (should work without also, but ./configure
|
|
|
|
gives out ugly warnings else)
|
|
|
|
|
|
|
|
* Fri Jan 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.81-0.fdr.1
|
|
|
|
- updated to 0.81
|
|
|
|
- do not ship the 'clamd.milter' daemon anymore; clamav-milter supports
|
|
|
|
an internal mode now which is enabled by default
|
|
|
|
- updated -milter %%description
|
|
|
|
|
|
|
|
* Thu Jan 20 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.80-0.fdr.2
|
|
|
|
- s!cron.d/clamav!cron.d/clamav-update! in the %%description of the -update
|
|
|
|
subpackage (https://bugzilla.fedora.us/show_bug.cgi?id=1715#c39)
|
|
|
|
|
|
|
|
* Wed Nov 3 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.80-0.fdr.1
|
|
|
|
- updated to 0.80
|
|
|
|
- removed DMS, FreeBSD-HOWTO and localized docs as it is not shipped anymore
|
|
|
|
- buildrequire 'curl-devel'
|
|
|
|
- renamed clamav.conf to clamd.conf (upstream change)
|
|
|
|
- updated -initoff patch
|
|
|
|
|
|
|
|
* Tue Sep 14 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.75.1-0.fdr.1
|
|
|
|
- updated to 0.75.1
|
|
|
|
- use %%configure, the problems with the architecture specification
|
|
|
|
seem to have passed (probably because of an autoconf update)
|
|
|
|
- set mode 0600 for the cron-script (required by vixie-cron)
|
|
|
|
- made the cronjob a spambot and send mail about deactivated freshclam
|
|
|
|
service to nearly everybody... (root, postmaster, webmaster)
|
|
|
|
- other fixes in the notification cronjob
|
|
|
|
|
|
|
|
* Fri Jul 23 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.75-0.fdr.1
|
|
|
|
- updated to 0.75
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.74-0.fdr.2
|
|
|
|
- moved /usr/bin/clamav-config from main into -devel
|
|
|
|
|
|
|
|
* Wed Jun 30 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.74-0.fdr.1
|
|
|
|
- updated to 0.74
|
|
|
|
|
|
|
|
* Mon Jun 14 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.73-0.fdr.1
|
|
|
|
- updated to 0.73
|
|
|
|
- added pkgconfig file
|
|
|
|
|
|
|
|
* Fri Jun 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.3
|
|
|
|
- notify the user about a deactivated clamav-update service
|
|
|
|
- added clamd-gen script which generates template spec-files for
|
|
|
|
services using clamd
|
|
|
|
- copied template configuration files to %pkgdatadir/template (needed
|
|
|
|
for clamd-gen)
|
|
|
|
- moved the clamd-wrapper from %_initrddir to %{pkgdatadir}; a symlink
|
|
|
|
will be provided for compatibility reasons
|
|
|
|
- conditionalized building of the -milter subpackage ('--without
|
|
|
|
milter' switch) to enable builds on RH73 (bug #1715, comment #5/#7)
|
|
|
|
|
|
|
|
* Fri Jun 4 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.2
|
|
|
|
- removed 'BuildRequires: dietlibc'; it was a leftover from the
|
|
|
|
pre-use-signal era (before 0.70) (bug #1716)
|
|
|
|
|
|
|
|
* Thu Jun 3 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.1
|
|
|
|
- updated to 0.72
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
* Thu May 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.71-0.fdr.2
|
|
|
|
- removed the randomization in the cronjob; it seems to be impossible
|
|
|
|
to use the mod-operator (%%) there. Instead of, the user has to
|
|
|
|
replace some placeholders...
|
|
|
|
|
|
|
|
* Wed May 19 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.71-0.fdr.1
|
|
|
|
- updated to 0.71
|
|
|
|
|
|
|
|
* Fri May 7 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.1.1
|
|
|
|
- quote 'EOF' to delay $RANDOM expansion
|
|
|
|
|
|
|
|
* Tue Apr 27 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.2
|
|
|
|
- updated GECOS entry for the 'clamav' user to describe its purpose
|
|
|
|
more accurately
|
|
|
|
- use explicit '-m755' when creating directories with install
|
|
|
|
|
|
|
|
* Tue Apr 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.1
|
|
|
|
- updated to 0.70; rediffed some patches
|
|
|
|
- updated logrotate script to use signals and documented the steps
|
|
|
|
which are needed to make it work
|
|
|
|
- adapted initscript to use signals instead of sockwrite
|
|
|
|
- removed sockwrite; signals can now be used to reload the database
|
|
|
|
- added logfile to the -milter subpackage
|
|
|
|
|
|
|
|
* Tue Apr 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.2.1
|
|
|
|
- tagged some Requires:, since clamav-server is required in the milter-%%post* scriptlets
|
|
|
|
|
|
|
|
* Sat Mar 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.2
|
|
|
|
- split the double Requires(...,...): statements; see
|
|
|
|
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118773
|
|
|
|
- require the recent fedora-usermgmt package (0.7) which fixes similar
|
|
|
|
ordering issues
|
|
|
|
|
|
|
|
* Thu Mar 18 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.1
|
|
|
|
- updated to 0.68 (using the -1 version)
|
|
|
|
- ship milter-files in the -milter instead of the -server subpackage
|
|
|
|
|
|
|
|
* Tue Feb 24 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.3
|
|
|
|
- fixed ':' vs. '.' in chown
|
|
|
|
|
|
|
|
* Tue Feb 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.2
|
|
|
|
- randomize freshclam startup to prevent server peaks
|
|
|
|
|
|
|
|
* Mon Feb 16 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.1
|
|
|
|
- updated to 0.67 (using the -1 version)
|
|
|
|
|
|
|
|
* Wed Feb 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.66-0.fdr.2
|
|
|
|
- updated to 0.66; important, packaging-relevant changes are
|
|
|
|
freshclam:
|
|
|
|
* $http_proxy is not supported anymore; you have to configure it in
|
|
|
|
/etc/freshclam.conf
|
|
|
|
* the logfile has been renamed to /var/log/freshclam.log
|
|
|
|
- removed %%check section; buildroot check is implemented in local
|
|
|
|
testsuite already
|
|
|
|
- added some %%verify(not mtime) modifiers to avoid unnecessary .rpmnew
|
|
|
|
files
|
|
|
|
- added some directory-Requires:
|
|
|
|
- activated milter-package and made it work
|
|
|
|
- added patch to disable clamav-milter service by default
|
|
|
|
- renamed /var/run/clamav.<SERVICE> to /var/run/clamd.<SERVICE>; this
|
|
|
|
makes things more consistently but can break backward compatibility. The
|
|
|
|
initscript should deal with the old version too, but I would not bet on
|
|
|
|
it...
|
|
|
|
- updated some descriptions
|
|
|
|
- fixed the update-mechanism; now it happens in two stages: at first,
|
|
|
|
the files will be downloaded as user 'clamav' and then, root initiates
|
|
|
|
the daemon-reload.
|
|
|
|
|
|
|
|
* Mon Feb 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.5
|
|
|
|
- added security fix for
|
|
|
|
http://www.securityfocus.com/archive/1/353194/2004-02-06/2004-02-12/1
|