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