2009-03-25 22:03:44 +00:00
|
|
|
#global snapshot rc1
|
2005-02-03 08:40:44 +00:00
|
|
|
|
|
|
|
## Fedora Extras specific customization below...
|
2008-01-01 13:19:16 +00:00
|
|
|
%bcond_without fedora
|
2009-04-15 14:14:27 +00:00
|
|
|
%bcond_without upstart
|
2008-01-01 13:19:16 +00:00
|
|
|
%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 milteruser clamilt
|
2009-03-08 11:38:36 +00:00
|
|
|
%global milterlog %_var/log/clamav-milter.log
|
2005-03-29 23:52:48 +00:00
|
|
|
%global milterstatedir %_var/run/clamav-milter
|
|
|
|
%global pkgdatadir %_datadir/%name
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%global scanuser clamscan
|
|
|
|
%global scanstatedir %_var/run/clamd.scan
|
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
|
2009-06-11 07:27:31 +00:00
|
|
|
Version: 0.95.2
|
|
|
|
Release: %release_func 1%{?snapshot:.%snapshot}
|
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 17:10:12 +00:00
|
|
|
%if 0%{?with_unrar:1}
|
2008-03-05 07:30:58 +00:00
|
|
|
Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz
|
|
|
|
Source999: http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz.sig
|
2008-01-01 17:10:12 +00:00
|
|
|
%else
|
|
|
|
# Unfortunately, clamav includes support for RAR v3, derived from GPL
|
|
|
|
# incompatible unrar from RARlabs. We have to pull this code out.
|
2008-02-11 22:30:35 +00:00
|
|
|
# tarball was created by
|
2008-03-05 07:30:58 +00:00
|
|
|
# make clean-sources [TARBALL=<original-tarball>] [VERSION=<version>]
|
|
|
|
Source0: %name-%version%{?snapshot}-norar.tar.bz2
|
2008-01-01 17:10:12 +00:00
|
|
|
%endif
|
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
|
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
|
2009-03-08 11:38:36 +00:00
|
|
|
Patch26: clamav-0.95-cliopts.patch
|
2009-03-08 12:47:20 +00:00
|
|
|
Patch27: clamav-0.95rc1-umask.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
|
2009-03-25 22:03:44 +00:00
|
|
|
BuildRequires: ncurses-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
|
2009-03-08 11:38:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Provides: user(%username) = 4
|
|
|
|
Provides: group(%username) = 4
|
2007-02-03 15:16:08 +00:00
|
|
|
# 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
|
2009-03-08 11:38:36 +00:00
|
|
|
BuildArch: noarch
|
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
|
2009-02-25 08:58:23 +00:00
|
|
|
BuildArch: noarch
|
2007-02-03 15:16:08 +00:00
|
|
|
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: 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
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%package server-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
Summary: SysV initscripts for clamav server
|
|
|
|
Group: System Environment/Daemons
|
2009-02-25 08:58:23 +00:00
|
|
|
BuildArch: noarch
|
2006-09-21 18:27:43 +00:00
|
|
|
Provides: init(clamav-server) = sysv
|
|
|
|
Requires: clamav-server = %version-%release
|
2004-11-08 04:10:52 +00:00
|
|
|
Requires(pre): %_initrddir
|
|
|
|
Requires(postun): %_initrddir
|
2009-03-08 11:38:36 +00:00
|
|
|
Provides: clamav-server-sysv = %version-%release
|
|
|
|
Obsoletes: clamav-server-sysv < %version-%release
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
|
|
|
|
%package scanner
|
|
|
|
Summary: Clamav scanner daemon
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: init(clamav-scanner)
|
2009-03-08 12:53:03 +00:00
|
|
|
Provides: user(%scanuser) = 49
|
|
|
|
Provides: group(%scanuser) = 49
|
2009-03-08 11:38:36 +00:00
|
|
|
Requires: clamav-server = %version-%release
|
|
|
|
|
|
|
|
%package scanner-sysvinit
|
|
|
|
Summary: SysV initscripts for clamav scanner daemon
|
2008-01-01 17:10:12 +00:00
|
|
|
Group: System Environment/Daemons
|
2009-03-08 11:38:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Provides: init(clamav-scanner) = sysv
|
|
|
|
Requires: clamav-server-sysvinit = %version-%release
|
|
|
|
Requires: clamav-scanner = %version-%release
|
|
|
|
Requires(pre): %_initrddir
|
|
|
|
Requires(postun): %_initrddir initscripts
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig initscripts
|
2008-01-01 17:10:12 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%package scanner-upstart
|
|
|
|
Summary: Upstart initscripts for clamav scanner daemon
|
2004-11-08 04:10:52 +00:00
|
|
|
Group: System Environment/Daemons
|
2009-03-08 11:38:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Source410: clamd.scan.upstart
|
|
|
|
Provides: init(clamav-scanner) = upstart
|
|
|
|
Requires: clamav-scanner = %version-%release
|
|
|
|
# implicates a conflict with upstart 0.5+
|
|
|
|
Requires(pre): /etc/event.d
|
|
|
|
Requires(post): /usr/bin/killall
|
|
|
|
Requires(postun): /sbin/initctl
|
|
|
|
|
|
|
|
|
|
|
|
%package milter
|
|
|
|
Summary: Milter module for the Clam Antivirus scanner
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Source300: README.fedora
|
2004-11-08 04:10:52 +00:00
|
|
|
Requires: init(clamav-milter)
|
2006-07-08 13:17:12 +00:00
|
|
|
BuildRequires: sendmail-devel
|
|
|
|
BuildRequires: fedora-usermgmt-devel
|
2009-03-08 11:38:36 +00:00
|
|
|
Provides: user(%milteruser) = 5
|
|
|
|
Provides: group(%milteruser) = 5
|
2006-09-21 18:27:43 +00:00
|
|
|
Requires(post): coreutils
|
|
|
|
%{?FE_USERADD_REQ}
|
|
|
|
|
2008-01-01 17:10:12 +00:00
|
|
|
Provides: milter(clamav) = sendmail
|
2009-03-08 11:38:36 +00:00
|
|
|
Provides: milter(clamav) = postfix
|
2008-01-01 17:10:12 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
Provides: clamav-milter-core = %version-%release
|
|
|
|
Obsoletes: clamav-milter-core < %version-%release
|
|
|
|
Provides: clamav-milter-sendmail = %version-%release
|
|
|
|
Obsoletes: clamav-milter-sendmail < %version-%release
|
|
|
|
|
|
|
|
%package milter-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
Summary: SysV initscripts for the clamav sendmail-milter
|
|
|
|
Group: System Environment/Daemons
|
2009-02-25 08:58:23 +00:00
|
|
|
BuildArch: noarch
|
2009-03-08 11:38:36 +00:00
|
|
|
Source320: clamav-milter.sysv
|
|
|
|
Provides: init(clamav-milter) = sysvinit
|
|
|
|
Requires: clamav-milter = %version-%release
|
2006-09-21 18:27:43 +00:00
|
|
|
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
|
2009-04-15 14:14:27 +00:00
|
|
|
Provides: clamav-milter-sysv = %version-%release
|
|
|
|
Obsoletes: clamav-milter-sysv < %version-%release
|
2009-03-08 11:38:36 +00:00
|
|
|
|
|
|
|
%package milter-upstart
|
|
|
|
Summary: Upstart initscripts for the clamav sendmail-milter
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
BuildArch: noarch
|
|
|
|
Source310: clamav-milter.upstart
|
|
|
|
Provides: init(clamav-milter) = upstart
|
|
|
|
Requires: clamav-milter = %version-%release
|
|
|
|
# implicates a conflict with upstart 0.5+
|
|
|
|
Requires(pre): /etc/event.d
|
|
|
|
Requires(post): /usr/bin/killall
|
|
|
|
Requires(postun): /sbin/initctl
|
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
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%description server-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
SysV initscripts template for the clamav server
|
|
|
|
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%description scanner
|
|
|
|
This package contains a generic system wide clamd service which is
|
|
|
|
e.g. used by the clamav-milter package.
|
|
|
|
|
|
|
|
%description scanner-sysvinit
|
|
|
|
The SysV initscripts for clamav-scanner.
|
|
|
|
|
|
|
|
%description scanner-upstart
|
|
|
|
The Upstart initscripts for clamav-scanner.
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%description milter-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
The SysV initscripts for clamav-milter.
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%description milter-upstart
|
|
|
|
The Upstart initscripts for clamav-milter.
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
## ------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
2008-03-05 07:30:58 +00:00
|
|
|
%setup -q -n %{name}-%{version}%{?snapshot}
|
2006-04-24 22:05:45 +00:00
|
|
|
|
2007-02-04 11:57:35 +00:00
|
|
|
%patch24 -p1 -b .private
|
2007-08-25 10:40:56 +00:00
|
|
|
%patch25 -p1 -b .open
|
2009-03-08 11:38:36 +00:00
|
|
|
%patch26 -p1 -b .cliopts
|
2009-03-08 12:47:20 +00:00
|
|
|
%patch27 -p1 -b .umask
|
2008-01-01 13:19:16 +00:00
|
|
|
|
|
|
|
install -p -m0644 %SOURCE300 clamav-milter/
|
|
|
|
|
2008-01-01 17:10:12 +00:00
|
|
|
mkdir -p libclamunrar{,_iface}
|
2008-02-11 22:30:35 +00:00
|
|
|
%{!?with_unrar:touch libclamunrar/{Makefile.in,all,install}}
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
sed -ri \
|
|
|
|
-e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g' \
|
|
|
|
-e 's!^(#?LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g' \
|
|
|
|
-e 's!^(#?PidFile ).*!\1/var/run/clamd.<SERVICE>/clamd.pid!g' \
|
|
|
|
-e 's!^#?(User ).*!\1<USER>!g' \
|
|
|
|
-e 's!^#?(AllowSupplementaryGroups|LogSyslog).*!\1 yes!g' \
|
|
|
|
-e 's! /usr/local/share/clamav,! %homedir,!g' \
|
|
|
|
etc/clamd.conf
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
sed -ri -e 's!^#(UpdateLogFile )!\1!g;' etc/freshclam.conf
|
2004-11-08 04:10:52 +00:00
|
|
|
|
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'
|
2009-03-25 22:03:44 +00:00
|
|
|
# IPv6 check is buggy and does not work when there are no IPv6 interface on build machine
|
|
|
|
export have_cv_ipv6=yes
|
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-03-05 07:30:58 +00:00
|
|
|
--disable-rpath \
|
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-03-05 07:30:58 +00:00
|
|
|
-e '/sys_lib_dlsearch_path_spec=\"\/lib \/usr\/lib /s!\"\/lib \/usr\/lib !/\"/%_lib /usr/%_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 \
|
2009-03-08 11:38:36 +00:00
|
|
|
${RPM_BUILD_ROOT}%_sysconfdir/{mail,clamd.d,cron.d,logrotate.d,sysconfig,event.d} \
|
2006-07-08 13:17:12 +00:00
|
|
|
${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 \
|
2009-03-08 11:38:36 +00:00
|
|
|
${RPM_BUILD_ROOT}%homedir \
|
|
|
|
${RPM_BUILD_ROOT}%scanstatedir
|
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
|
|
|
|
2008-04-14 18:36:29 +00:00
|
|
|
touch ${RPM_BUILD_ROOT}%homedir/daily.cld
|
|
|
|
touch ${RPM_BUILD_ROOT}%homedir/main.cld
|
2008-01-01 13:19:16 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
### The scanner stuff
|
|
|
|
sed -e 's!<SERVICE>!scan!g;s!<USER>!%scanuser!g' \
|
2009-03-08 12:47:20 +00:00
|
|
|
etc/clamd.conf > $RPM_BUILD_ROOT%_sysconfdir/clamd.d/scan.conf
|
2009-03-08 11:38:36 +00:00
|
|
|
|
|
|
|
sed -e 's!<SERVICE>!scan!g;' $RPM_BUILD_ROOT%pkgdatadir/template/clamd.init \
|
|
|
|
> $RPM_BUILD_ROOT%_initrddir/clamd.scan
|
|
|
|
|
|
|
|
install -p -m 644 %SOURCE410 $RPM_BUILD_ROOT%_sysconfdir/event.d/clamd.scan
|
|
|
|
|
|
|
|
touch $RPM_BUILD_ROOT%scanstatedir/clamd.sock
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2005-07-25 17:19:21 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
### The milter stuff
|
|
|
|
sed -r \
|
|
|
|
-e 's!^#?(User).*!\1 %milteruser!g' \
|
|
|
|
-e 's!^#?(AllowSupplementaryGroups|LogSyslog) .*!\1 yes!g' \
|
|
|
|
-e 's! /tmp/clamav-milter.socket! %milterstatedir/clamav-milter.socket!g' \
|
|
|
|
-e 's! /var/run/clamav-milter.pid! %milterstatedir/clamav-milter.pid!g' \
|
|
|
|
-e 's! /tmp/clamav-milter.log! %milterlog!g' \
|
|
|
|
etc/clamav-milter.conf > $RPM_BUILD_ROOT%_sysconfdir/mail/clamav-milter.conf
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
install -p -m 644 %SOURCE310 $RPM_BUILD_ROOT%_sysconfdir/event.d/clamav-milter
|
|
|
|
install -p -m 755 %SOURCE320 $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
2004-11-08 04:10:52 +00:00
|
|
|
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%_sysconfdir/clamav-milter.conf
|
|
|
|
touch $RPM_BUILD_ROOT{%milterstatedir/clamav-milter.socket,%milterlog}
|
2005-02-03 08:40:44 +00:00
|
|
|
|
2009-04-19 10:31:25 +00:00
|
|
|
%{!?with_upstart:rm -rf $RPM_BUILD_ROOT%_sysconfdir/event.d}
|
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 || :
|
|
|
|
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%pre scanner
|
|
|
|
%__fe_groupadd 49 -r %scanuser &>/dev/null || :
|
|
|
|
%__fe_useradd 49 -r -s /sbin/nologin -d / -M \
|
|
|
|
-g %scanuser %scanuser &>/dev/null || :
|
|
|
|
|
|
|
|
%postun scanner
|
|
|
|
%__fe_userdel %scanuser &>/dev/null || :
|
|
|
|
%__fe_groupdel %scanuser &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
%post scanner-sysvinit
|
|
|
|
/sbin/chkconfig --add clamd.scan
|
|
|
|
|
|
|
|
%preun scanner-sysvinit
|
|
|
|
test "$1" != 0 || %_initrddir/clamd.scan stop &>/dev/null || :
|
|
|
|
test "$1" != 0 || /sbin/chkconfig --del clamd.scan
|
|
|
|
|
|
|
|
%postun scanner-sysvinit
|
|
|
|
test "$1" = 0 || %_initrddir/clamd.scan condrestart >/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
%post scanner-upstart
|
|
|
|
/usr/bin/killall -u %scanuser clamd 2>/dev/null || :
|
|
|
|
|
|
|
|
%preun scanner-upstart
|
|
|
|
test "$1" != "0" || /sbin/initctl -q stop clamd.scan || :
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2009-03-08 11:38:36 +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
|
|
|
|
2009-03-08 11:38:36 +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
|
|
|
|
2009-03-08 11:38:36 +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
|
|
|
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%post milter-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
/sbin/chkconfig --add clamav-milter
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%preun milter-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
test "$1" != 0 || %_initrddir/clamav-milter stop &>/dev/null || :
|
|
|
|
test "$1" != 0 || /sbin/chkconfig --del clamav-milter
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%postun milter-sysvinit
|
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
|
|
|
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%post milter-upstart
|
|
|
|
/usr/bin/killall -u %milteruser clamav-milter 2>/dev/null || :
|
|
|
|
|
|
|
|
%preun milter-upstart
|
|
|
|
test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
|
|
|
|
|
|
|
|
|
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(-,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,-)
|
2008-04-14 18:36:29 +00:00
|
|
|
%ghost %attr(0664,%username,%username) %homedir/*.cvd
|
|
|
|
|
2007-02-03 15:16:08 +00:00
|
|
|
|
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
|
2008-04-14 18:36:29 +00:00
|
|
|
%ghost %attr(0664,%username,%username) %homedir/*.cld
|
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
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%files server-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%_initrddir/clamd-wrapper
|
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
## -----------------------
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%files scanner
|
2004-11-08 04:10:52 +00:00
|
|
|
%defattr(-,root,root,-)
|
2009-03-08 11:38:36 +00:00
|
|
|
%dir %attr(0710,%scanuser,%scanuser) %scanstatedir
|
2009-03-08 12:47:20 +00:00
|
|
|
%config(noreplace) %_sysconfdir/clamd.d/scan.conf
|
2009-03-08 11:38:36 +00:00
|
|
|
%ghost %scanstatedir/clamd.sock
|
2008-01-01 17:10:12 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%files scanner-sysvinit
|
|
|
|
%attr(0755,root,root) %config %_initrddir/clamd.scan
|
|
|
|
|
2009-04-15 14:14:27 +00:00
|
|
|
%if 0%{?with_upstart:1}
|
2009-03-08 11:38:36 +00:00
|
|
|
%files scanner-upstart
|
2008-01-01 17:10:12 +00:00
|
|
|
%defattr(-,root,root,-)
|
2009-03-08 11:38:36 +00:00
|
|
|
%config(noreplace) %_sysconfdir/event.d/clamd.scan
|
2009-04-15 14:14:27 +00:00
|
|
|
%endif
|
2009-03-08 11:38:36 +00:00
|
|
|
|
|
|
|
## -----------------------
|
2004-11-08 04:10:52 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%files milter
|
2008-01-01 17:10:12 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc clamav-milter/README.fedora
|
2009-03-08 11:38:36 +00:00
|
|
|
%_sbindir/*milter*
|
|
|
|
%_mandir/man8/clamav-milter*
|
|
|
|
%config(noreplace) %_sysconfdir/mail/clamav-milter.conf
|
|
|
|
%ghost %attr(0620,root,%milteruser) %verify(not size md5 mtime) %milterlog
|
|
|
|
%attr(0710,%milteruser,%milteruser) %dir %milterstatedir
|
2008-01-01 17:10:12 +00:00
|
|
|
%ghost %milterstatedir/*
|
2006-09-21 18:27:43 +00:00
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
%files milter-sysvinit
|
2006-09-21 18:27:43 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config %_initrddir/clamav-milter
|
2009-03-08 11:38:36 +00:00
|
|
|
|
2009-04-15 14:14:27 +00:00
|
|
|
%if 0%{?with_upstart:1}
|
2009-03-08 11:38:36 +00:00
|
|
|
%files milter-upstart
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config(noreplace) %_sysconfdir/event.d/clamav-milter
|
2009-04-15 14:14:27 +00:00
|
|
|
%endif
|
2006-09-21 18:27:43 +00:00
|
|
|
|
|
|
|
|
2004-11-08 04:10:52 +00:00
|
|
|
%changelog
|
2009-06-11 07:27:31 +00:00
|
|
|
* Thu Jun 11 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-1
|
|
|
|
- updated to 0.95.2
|
|
|
|
|
2009-04-19 10:31:25 +00:00
|
|
|
* Sun Apr 19 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.1-3
|
|
|
|
- fixed '--without upstart' operation
|
|
|
|
|
2009-04-15 14:14:27 +00:00
|
|
|
* Wed Apr 15 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.1-2
|
|
|
|
- added '%%bcond_without upstart' conditional to ease skipping of
|
|
|
|
-upstart subpackage creation e.g. on EL5 systems
|
|
|
|
- fixed Provides/Obsoletes: typo in -milter-sysvinit subpackage which
|
|
|
|
broke update path
|
|
|
|
|
2009-04-10 20:17:31 +00:00
|
|
|
* Fri Apr 10 2009 Robert Scheck <robert@fedoraproject.org> - 0.95.1-1
|
|
|
|
- Upgrade to 0.95.1 (#495039)
|
|
|
|
|
2009-03-25 22:03:44 +00:00
|
|
|
* Wed Mar 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95-1
|
|
|
|
- updated to final 0.95
|
|
|
|
- added ncurses-devel (-> clamdtop) BR
|
|
|
|
- enforced IPv6 support
|
|
|
|
|
2009-03-08 11:38:36 +00:00
|
|
|
* Sun Mar 8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95-0.1.rc1
|
|
|
|
- updated to 0.95rc1
|
|
|
|
- added -upstart subpackages
|
|
|
|
- renamed -sysv to -sysvinit to make -upstart win the default dep resolving
|
|
|
|
- reworked complete milter stuff
|
|
|
|
- added -scanner subpackage which contains a preconfigured daemon
|
|
|
|
(e.g. for use by -milter)
|
|
|
|
- moved %%changelog entries from 2006 and before into ChangeLog-rpm.old
|
|
|
|
|
2009-02-25 08:58:23 +00:00
|
|
|
* Wed Feb 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.94.2-3
|
|
|
|
- made some subpackages noarch
|
|
|
|
- fixed typo in SysV initscript which removes 'touch' file (#473513)
|
|
|
|
|
2009-02-24 07:37:58 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.94.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-02 22:26:31 +00:00
|
|
|
* Tue Dec 02 2008 Robert Scheck <robert@fedoraproject.org> - 0.94.2-1
|
|
|
|
- Upgrade to 0.94.2 (#474002)
|
|
|
|
|
2008-11-05 19:50:09 +00:00
|
|
|
* Wed Nov 05 2008 Robert Scheck <robert@fedoraproject.org> - 0.94.1-1
|
|
|
|
- Upgrade to 0.94.1
|
|
|
|
|
2008-10-26 17:48:00 +00:00
|
|
|
* Sun Oct 26 2008 Robert Scheck <robert@fedoraproject.org> - 0.94-1
|
|
|
|
- Upgrade to 0.94 (SECURITY), fixes #461461:
|
|
|
|
- CVE-2008-1389 Invalid memory access in the CHM unpacker
|
|
|
|
- CVE-2008-3912 Out-of-memory NULL pointer dereference in mbox/msg
|
|
|
|
- CVE-2008-3913 Memory leak in code path in freshclam's manager.c
|
|
|
|
- CVE-2008-3914 Multiple file descriptor leaks on the code paths
|
|
|
|
|
2008-07-13 19:20:40 +00:00
|
|
|
* Sun Jul 13 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93.3-1
|
|
|
|
- updated to 0.93.3; another fix for CVE-2008-2713 (out-of-bounds read
|
|
|
|
on petite files)
|
|
|
|
- put pid instead of pgrp into pidfile of clamav-milter (bz #452359)
|
2008-07-13 19:36:07 +00:00
|
|
|
- rediffed patches
|
2008-07-13 19:20:40 +00:00
|
|
|
|
2008-06-17 20:03:53 +00:00
|
|
|
* Tue Jun 17 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93.1-1
|
|
|
|
- updated to 0.93.1
|
|
|
|
- rediffed -path patch
|
|
|
|
- CVE-2008-2713 Invalid Memory Access Denial Of Service Vulnerability
|
|
|
|
|
2008-04-14 18:36:29 +00:00
|
|
|
* Mon Apr 14 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-1
|
|
|
|
- updated to final 0.93
|
|
|
|
- removed daily.inc + main.inc directories; they are now replaced by
|
|
|
|
*.cld containers
|
|
|
|
- trimmed down MAILTO list of cronjob to 'root' again; every well
|
|
|
|
configured system has an alias for this recipient
|
|
|
|
|
2008-03-12 08:40:04 +00:00
|
|
|
* Wed Mar 12 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-0.1.rc1
|
2008-03-12 08:38:02 +00:00
|
|
|
- moved -milter scriptlets into -milter-core subpackage
|
|
|
|
- added a requirement on the milteruser to the -milter-sendmail
|
|
|
|
subpackage (reported by Bruce Jerrick)
|
|
|
|
|
2008-03-05 07:30:58 +00:00
|
|
|
* Tue Mar 4 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-0.0.rc1
|
|
|
|
- updated to 0.93rc1
|
|
|
|
- fixed rpath issues
|
|
|
|
|
2008-02-11 22:30:35 +00:00
|
|
|
* Mon Feb 11 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92.1-1
|
|
|
|
- updated to 0.92.1
|
|
|
|
|
2008-01-01 17:10:12 +00:00
|
|
|
* Tue Jan 1 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-6
|
|
|
|
- redisabled unrar stuff completely by using clean sources
|
|
|
|
- splitted -milter subpackage into pieces to allow use without sendmail
|
|
|
|
(#239037)
|
|
|
|
|
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
|