Enrico Scholz c12c29
#global prerelease	rc1
6151a2
6151a2
## Fedora Extras specific customization below...
11ed44
%bcond_without		fedora
Enrico Scholz 3b4009
%bcond_with		upstart
Enrico Scholz 69c6c9
%bcond_without		systemd
Enrico Scholz 69c6c9
%bcond_with		sysv
Enrico Scholz 69c6c9
%bcond_without		tmpfiles
93ac5c
%bcond_with		unrar
11ed44
%bcond_without		noarch
1c5ca0
%bcond_without		bytecode
6151a2
##
6151a2
Enrico Scholz 6a1f66
%global _hardened_build	1
Enrico Scholz 6a1f66
Enrico Scholz c12c29
%ifnarch s390 s390x
Enrico Scholz c12c29
%global have_ocaml	1
Enrico Scholz c12c29
%else
Enrico Scholz c12c29
%global have_ocaml	0
Enrico Scholz c12c29
%endif
Enrico Scholz c12c29
42e36a
%global username	clamupdate
8dcc3a
%global homedir		%_var/lib/clamav
8dcc3a
%global freshclamlog	%_var/log/freshclam.log
8dcc3a
%global milteruser	clamilt
e939bc
%global milterlog	%_var/log/clamav-milter.log
8dcc3a
%global milterstatedir	%_var/run/clamav-milter
8dcc3a
%global pkgdatadir	%_datadir/%name
cvsextras 47272f
e939bc
%global scanuser	clamscan
e939bc
%global scanstatedir	%_var/run/clamd.scan
bd5909
11ed44
%{?with_noarch:%global noarch	BuildArch:	noarch}
Enrico Scholz 69c6c9
%{!?_unitdir:%global _unitdir /lib/systemd/system}
Enrico Scholz c12c29
%{!?release_func:%global release_func() %%{?prerelease:0.}%1%%{?prerelease:.%%prerelease}%%{?dist}}
Enrico Scholz c12c29
%{!?apply:%global  apply(p:n:b:) %patch%%{-n:%%{-n*}} %%{-p:-p %%{-p*}} %%{-b:-b %%{-b*}} \
Enrico Scholz c12c29
%nil}
Enrico Scholz 55ae14
%{!?systemd_reqs:%global systemd_reqs \
Enrico Scholz 55ae14
Requires(post):		 /bin/systemctl\
Enrico Scholz 55ae14
Requires(preun):	 /bin/systemctl\
Enrico Scholz 55ae14
Requires(postun):	 /bin/systemctl\
Enrico Scholz 55ae14
%nil}
Enrico Scholz 55ae14
%{!?systemd_install:%global systemd_install()\
Enrico Scholz 55ae14
%post %1\
Enrico Scholz 83f132
%systemd_post %2 \
Enrico Scholz 55ae14
%preun %1\
Enrico Scholz 83f132
%systemd_preun %2 \
Enrico Scholz 55ae14
%postun %1\
Enrico Scholz 83f132
%systemd_postun_with_restart %2 \
Enrico Scholz 55ae14
%nil}
Enrico Scholz 55ae14
bd5909
cvsextras 47272f
Summary:	End-user tools for the Clam Antivirus scanner
cvsextras 47272f
Name:		clamav
56d62e
Version:	0.98.1
57cb74
Release:	1%{?dist}
93ac5c
License:	%{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
cvsextras 47272f
Group:		Applications/File
cvsextras 47272f
URL:		http://www.clamav.net
9ee1c3
%if 0%{?with_unrar:1}
Enrico Scholz c12c29
Source0:	http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?prerelease}.tar.gz
Enrico Scholz c12c29
Source999:	http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?prerelease}.tar.gz.sig
9ee1c3
%else
11ed44
# Unfortunately, clamav includes support for RAR v3, derived from GPL
9ee1c3
# incompatible unrar from RARlabs. We have to pull this code out.
240e0e
# tarball was created by
c5e468
#   make clean-sources [TARBALL=<original-tarball>] [VERSION=<version>]
Enrico Scholz c12c29
Source0:	%name-%version%{?prerelease}-norar.tar.xz
9ee1c3
%endif
57cb74
# To download the *.cvd, go to http://www.clamav.net and use the links
57cb74
# there (I renamed the files to add the -version suffix for verifying).
57cb74
Source10:	http://db.local.clamav.net/main-55.cvd
56d62e
Source11:	http://db.local.clamav.net/daily-18353.cvd
Enrico Scholz 590f97
93ac5c
Patch24:	clamav-0.92-private.patch
57cb74
Patch26:	clamav-0.98-cliopts.patch
57cb74
Patch27:	clamav-0.98-umask.patch
1c5ca0
# https://bugzilla.redhat.com/attachment.cgi?id=403775&action=diff&context=patch&collapsed=&headers=1&format=raw
57cb74
Patch29:	clamav-0.98-jitoff.patch
Enrico Scholz 6134d1
# https://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp?r1=128086&r2=137567
Enrico Scholz 6134d1
Patch30:	llvm-glibc.patch
114a6b
# use glibc fanotify instead of limited hand-crafted support
114a6b
# https://bugzilla.clamav.net/show_bug.cgi?id=9156
114a6b
Patch31:	clamav-0.98-glibc-fanotify.patch
f294c9
BuildRoot:	%_tmppath/%name-%version-%release-root
f294c9
Requires:	clamav-lib = %version-%release
cvsextras 47272f
Requires:	data(clamav)
319d6e
BuildRequires:	zlib-devel bzip2-devel gmp-devel curl-devel
0e899a
BuildRequires:	ncurses-devel
491e54
BuildRequires:	%_includedir/tcpd.h
Enrico Scholz c12c29
%{?with_bytecode:BuildRequires:	bc tcl groff graphviz}
Enrico Scholz c12c29
%if %{have_ocaml}
Enrico Scholz c12c29
%{?with_bytecode:BuildRequires:	ocaml}
Enrico Scholz c12c29
%endif
cvsextras 47272f
36c1bd
%package filesystem
36c1bd
Summary:	Filesystem structure for clamav
36c1bd
Group:		Applications/File
e939bc
Provides:	user(%username)  = 4
e939bc
Provides:	group(%username) = 4
36c1bd
# Prevent version mix
36c1bd
Conflicts:	%name < %version-%release
36c1bd
Conflicts:	%name > %version-%release
d2c5bf
Requires(pre):  shadow-utils
11ed44
%{?noarch}
36c1bd
cvsextras 47272f
%package lib
cvsextras 47272f
Summary:	Dynamic libraries for the Clam Antivirus scanner
cvsextras 47272f
Group:		System Environment/Libraries
cvsextras 47272f
Requires:	data(clamav)
cvsextras 47272f
cvsextras 47272f
%package devel
d65706
Summary:	Header files and libraries for the Clam Antivirus scanner
cvsextras 47272f
Group:		Development/Libraries
6151a2
Source100:	clamd-gen
36c1bd
Requires:	clamav-lib        = %version-%release
36c1bd
Requires:	clamav-filesystem = %version-%release
cvsextras 47272f
cvsextras 47272f
%package data
d65706
Summary:	Virus signature data for the Clam Antivirus scanner
cvsextras 47272f
Group:		Applications/File
36c1bd
Requires(pre):		clamav-filesystem = %version-%release
36c1bd
Requires(postun):	clamav-filesystem = %version-%release
36c1bd
Provides:		data(clamav) = full
36c1bd
Conflicts:		data(clamav) < full
36c1bd
Conflicts:		data(clamav) > full
11ed44
%{?noarch}
36c1bd
36c1bd
%package data-empty
36c1bd
Summary:	Empty data package for the Clam Antivirus scanner
36c1bd
Group:		Applications/File
36c1bd
Provides:	data(clamav) = empty
36c1bd
Conflicts:	data(clamav) < empty
36c1bd
Conflicts:	data(clamav) > empty
11ed44
%{?noarch}
cvsextras 47272f
cvsextras 47272f
%package update
d65706
Summary:	Auto-updater for the Clam Antivirus scanner data-files
cvsextras 47272f
Group:		Applications/File
3e396f
Source200:	freshclam-sleep
3e396f
Source201:	freshclam.sysconfig
d91006
Source202:	clamav-update.crond
Enrico Scholz 358f07
Source203:	clamav-update.logrotate
5a2b15
Requires:	clamav-filesystem = %version-%release
5a2b15
Requires:	crontabs
cvsextras 47272f
Requires(pre):		/etc/cron.d
cvsextras 47272f
Requires(postun):	/etc/cron.d
3e396f
Requires(post):		%__chown %__chmod
42e36a
Requires(post):		group(%username)
cvsextras 47272f
cvsextras 47272f
%package server
d65706
Summary:	Clam Antivirus scanner server
cvsextras 47272f
Group:		System Environment/Daemons
Enrico Scholz 358f07
Source2:	clamd.sysconfig
Enrico Scholz 358f07
Source3:	clamd.logrotate
Enrico Scholz 358f07
Source5:	clamd-README
Enrico Scholz 358f07
Source7:	clamd.SERVICE.init
Enrico Scholz 358f07
Source8:	clamav-notify-servers
cvsextras 47272f
Requires:	data(clamav)
36c1bd
Requires:	clamav-filesystem = %version-%release
36c1bd
Requires:	clamav-lib        = %version-%release
Enrico Scholz adba5c
Requires:	nc coreutils
cbeb9f
e939bc
%package server-sysvinit
cbeb9f
Summary:	SysV initscripts for clamav server
cbeb9f
Group:		System Environment/Daemons
cbeb9f
Provides:	init(clamav-server) = sysv
cbeb9f
Requires:	clamav-server = %version-%release
cvsextras 47272f
Requires(pre):		%_initrddir
cvsextras 47272f
Requires(postun):	%_initrddir
e939bc
Provides:	clamav-server-sysv = %version-%release
e939bc
Obsoletes:	clamav-server-sysv < %version-%release
Enrico Scholz acfec6
Source520:	clamd-wrapper
11ed44
%{?noarch}
cvsextras 47272f
Enrico Scholz 09cf83
%package server-systemd
Enrico Scholz 09cf83
Summary:	SysV initscripts for clamav server
Enrico Scholz 09cf83
Group:		System Environment/Daemons
Enrico Scholz 09cf83
Provides:	init(clamav-server) = systemd
Enrico Scholz 09cf83
Requires:	clamav-server = %version-%release
Enrico Scholz 09cf83
Source530:	clamd@.service
Enrico Scholz 09cf83
%{?systemd_reqs}
Enrico Scholz 09cf83
%{?noarch}
Enrico Scholz 09cf83
e939bc
e939bc
%package scanner
e939bc
Summary:	Clamav scanner daemon
e939bc
Group:		System Environment/Daemons
e939bc
Requires:	init(clamav-scanner)
7c8477
Provides:	user(%scanuser)  = 49
7c8477
Provides:	group(%scanuser) = 49
e939bc
Requires:	clamav-server = %version-%release
11ed44
%{?noarch}
e939bc
Enrico Scholz 69c6c9
# Remove me after EOL of RHEL5
e939bc
%package scanner-sysvinit
e939bc
Summary:	SysV initscripts for clamav scanner daemon
9ee1c3
Group:		System Environment/Daemons
e939bc
Provides:	init(clamav-scanner) = sysv
e939bc
Requires:	clamav-server-sysvinit = %version-%release
e939bc
Requires:	clamav-scanner = %version-%release
e939bc
Requires(pre):		%_initrddir
e939bc
Requires(postun):	%_initrddir initscripts
e939bc
Requires(post):		chkconfig
e939bc
Requires(preun):	chkconfig initscripts
11ed44
%{?noarch}
9ee1c3
Enrico Scholz eed51b
# Remove me after EOL of RHEL6
e939bc
%package scanner-upstart
e939bc
Summary:	Upstart initscripts for clamav scanner daemon
cvsextras 47272f
Group:		System Environment/Daemons
e939bc
Source410:	clamd.scan.upstart
e939bc
Provides:	init(clamav-scanner) = upstart
e939bc
Requires:	clamav-scanner = %version-%release
Enrico Scholz c12c29
Requires(pre):		/etc/init
e939bc
Requires(post):		/usr/bin/killall
Enrico Scholz 652b40
Requires(preun):	/sbin/initctl
11ed44
%{?noarch}
e939bc
Enrico Scholz 69c6c9
%package scanner-systemd
Enrico Scholz 69c6c9
Summary:	Systemd initscripts for clamav scanner daemon
Enrico Scholz 69c6c9
Group:		System Environment/Daemons
Enrico Scholz ff790d
Source430:	clamd@scan.service
Enrico Scholz 69c6c9
Provides:	init(clamav-scanner) = systemd
Enrico Scholz 69c6c9
Requires:	clamav-scanner = %version-%release
Enrico Scholz ff790d
Requires:	clamav-server-systemd = %version-%release
Enrico Scholz 55ae14
%{?systemd_reqs}
Enrico Scholz 69c6c9
%{?noarch}
Enrico Scholz 69c6c9
e939bc
%package milter
e939bc
Summary:	Milter module for the Clam Antivirus scanner
e939bc
Group:		System Environment/Daemons
e939bc
Source300:	README.fedora
cvsextras 47272f
Requires:	init(clamav-milter)
f294c9
BuildRequires:	sendmail-devel
e939bc
Provides:	user(%milteruser)  = 5
e939bc
Provides:	group(%milteruser) = 5
cbeb9f
Requires(post):	coreutils
d2c5bf
Requires(pre):  shadow-utils
cbeb9f
9ee1c3
Provides:	milter(clamav) = sendmail
e939bc
Provides:	milter(clamav) = postfix
9ee1c3
e939bc
Provides:	clamav-milter-core = %version-%release
e939bc
Obsoletes:	clamav-milter-core < %version-%release
e939bc
Provides:	clamav-milter-sendmail = %version-%release
e939bc
Obsoletes:	clamav-milter-sendmail < %version-%release
e939bc
Enrico Scholz 69c6c9
# Remove me after EOL of RHEL5
e939bc
%package milter-sysvinit
cbeb9f
Summary:	SysV initscripts for the clamav sendmail-milter
cbeb9f
Group:		System Environment/Daemons
e939bc
Source320:	clamav-milter.sysv
e939bc
Provides:	init(clamav-milter) = sysvinit
e939bc
Requires:	clamav-milter = %version-%release
cbeb9f
Requires(post):		user(%milteruser) clamav-milter
cbeb9f
Requires(preun):	user(%milteruser) clamav-milter
cvsextras 47272f
Requires(pre):		%_initrddir
9a1369
Requires(postun):	%_initrddir initscripts
cbeb9f
Requires(post):		chkconfig
9a1369
Requires(preun):	chkconfig initscripts
0b8f60
Provides:		clamav-milter-sysv = %version-%release
0b8f60
Obsoletes:		clamav-milter-sysv < %version-%release
11ed44
%{?noarch}
e939bc
Enrico Scholz eed51b
# Remove me after EOL of RHEL6
e939bc
%package milter-upstart
e939bc
Summary:	Upstart initscripts for the clamav sendmail-milter
e939bc
Group:		System Environment/Daemons
e939bc
Source310:	clamav-milter.upstart
e939bc
Provides:	init(clamav-milter) = upstart
e939bc
Requires:	clamav-milter = %version-%release
Enrico Scholz c12c29
Requires(pre):		/etc/init
e939bc
Requires(post):		/usr/bin/killall
Enrico Scholz 652b40
Requires(preun):	/sbin/initctl
11ed44
%{?noarch}
cvsextras 47272f
Enrico Scholz 69c6c9
%package milter-systemd
Enrico Scholz 69c6c9
Summary:	Systemd initscripts for the clamav sendmail-milter
Enrico Scholz 69c6c9
Group:		System Environment/Daemons
Enrico Scholz 69c6c9
Source330:	clamav-milter.systemd
Enrico Scholz 69c6c9
Provides:	init(clamav-milter) = systemd
Enrico Scholz 69c6c9
Requires:	clamav-milter = %version-%release
Enrico Scholz 55ae14
%{?systemd_reqs}
Enrico Scholz 69c6c9
%{?noarch}
Enrico Scholz 69c6c9
cvsextras 47272f
cvsextras 47272f
%description
cvsextras 47272f
Clam AntiVirus is an anti-virus toolkit for UNIX. The main purpose of this
cvsextras 47272f
software is the integration with mail servers (attachment scanning). The
cvsextras 47272f
package provides a flexible and scalable multi-threaded daemon, a command
cvsextras 47272f
line scanner, and a tool for automatic updating via Internet. The programs
cvsextras 47272f
are based on a shared library distributed with the Clam AntiVirus package,
cvsextras 47272f
which you can use with your own software. The virus database is based on
cvsextras 47272f
the virus database from OpenAntiVirus, but contains additional signatures
cvsextras 47272f
(including signatures for popular polymorphic viruses, too) and is KEPT UP
cvsextras 47272f
TO DATE.
cvsextras 47272f
36c1bd
%description filesystem
36c1bd
This package provides the filesystem structure and contains the
36c1bd
user-creation scripts required by clamav.
6151a2
cvsextras 47272f
%description lib
cvsextras 47272f
This package contains dynamic libraries shared between applications
cvsextras 47272f
using the Clam Antivirus scanner.
cvsextras 47272f
cvsextras 47272f
%description devel
cvsextras 47272f
This package contains headerfiles and libraries which are needed to
cvsextras 47272f
build applications using clamav.
cvsextras 47272f
cvsextras 47272f
%description data
cvsextras 47272f
This package contains the virus-database needed by clamav. This
cvsextras 47272f
database should be updated regularly; the 'clamav-update' package
36c1bd
ships a corresponding cron-job. This package and the
36c1bd
'clamav-data-empty' package are mutually exclusive.
36c1bd
36c1bd
Use -data when you want a working (but perhaps outdated) virus scanner
36c1bd
immediately after package installation.
36c1bd
36c1bd
Use -data-empty when you are updating the virus database regulary and
36c1bd
do not want to download a >5MB sized rpm-package with outdated virus
36c1bd
definitions.
36c1bd
36c1bd
36c1bd
%description data-empty
36c1bd
This is an empty package to fulfill inter-package dependencies of the
36c1bd
clamav suite. This package and the 'clamav-data' package are mutually
36c1bd
exclusive.
36c1bd
36c1bd
Use -data when you want a working (but perhaps outdated) virus scanner
36c1bd
immediately after package installation.
36c1bd
36c1bd
Use -data-empty when you are updating the virus database regulary and
36c1bd
do not want to download a >5MB sized rpm-package with outdated virus
36c1bd
definitions.
36c1bd
cvsextras 47272f
cvsextras 47272f
%description update
cvsextras 47272f
This package contains programs which can be used to update the clamav
cvsextras 47272f
anti-virus database automatically. It uses the freshclam(1) utility for
6151a2
this task. To activate it, uncomment the entry in /etc/cron.d/clamav-update.
cvsextras 47272f
cvsextras 47272f
%description server
cvsextras 47272f
ATTENTION: most users do not need this package; the main package has
cvsextras 47272f
everything (or depends on it) which is needed to scan for virii on
cvsextras 47272f
workstations.
cvsextras 47272f
cvsextras 47272f
This package contains files which are needed to execute the clamd-daemon.
cvsextras 47272f
This daemon does not provide a system-wide service. Instead of, an instance
cvsextras 47272f
of this daemon should be started for each service requiring it.
cvsextras 47272f
cvsextras 47272f
See the README file how this can be done with a minimum of effort.
cvsextras 47272f
cbeb9f
e939bc
%description server-sysvinit
cbeb9f
SysV initscripts template for the clamav server
cbeb9f
Enrico Scholz 09cf83
%description server-systemd
Enrico Scholz 09cf83
Systemd template for the clamav server
Enrico Scholz 09cf83
cbeb9f
e939bc
%description scanner
e939bc
This package contains a generic system wide clamd service which is
e939bc
e.g. used by the clamav-milter package.
e939bc
e939bc
%description scanner-sysvinit
e939bc
The SysV initscripts for clamav-scanner.
e939bc
e939bc
%description scanner-upstart
e939bc
The Upstart initscripts for clamav-scanner.
e939bc
Enrico Scholz 69c6c9
%description scanner-systemd
Enrico Scholz 69c6c9
The systemd initscripts for clamav-scanner.
Enrico Scholz 69c6c9
e939bc
cvsextras 47272f
%description milter
93ac5c
This package contains files which are needed to run the clamav-milter.
cvsextras 47272f
e939bc
%description milter-sysvinit
cbeb9f
The SysV initscripts for clamav-milter.
cbeb9f
e939bc
%description milter-upstart
e939bc
The Upstart initscripts for clamav-milter.
cvsextras 47272f
Enrico Scholz 69c6c9
%description milter-systemd
Enrico Scholz 69c6c9
The systemd initscripts for clamav-scanner.
Enrico Scholz 69c6c9
cvsextras 47272f
## ------------------------------------------------------------
cvsextras 47272f
cvsextras 47272f
%prep
Enrico Scholz c12c29
%setup -q -n %{name}-%{version}%{?prerelease}
a4a6d2
Enrico Scholz c12c29
%apply -n24 -p1 -b .private
Enrico Scholz c12c29
%apply -n26 -p1 -b .cliopts
Enrico Scholz c12c29
%apply -n27 -p1 -b .umask
Enrico Scholz c12c29
%apply -n29 -p1 -b .jitoff
Enrico Scholz 6134d1
%apply -n30 -p1
114a6b
%apply -n31 -p1 -b .glibc-fanotify
Enrico Scholz fdd340
%{?apply_end}
93ac5c
93ac5c
install -p -m0644 %SOURCE300 clamav-milter/
93ac5c
9ee1c3
mkdir -p libclamunrar{,_iface}
240e0e
%{!?with_unrar:touch libclamunrar/{Makefile.in,all,install}}
cvsextras 47272f
e939bc
sed -ri \
3ec030
    -e 's!^#?(LogFile ).*!#\1/var/log/clamd.<service>!g' \
3ec030
    -e 's!^#?(LocalSocket ).*!#\1/var/run/clamd.<service>/clamd.sock!g' \
e939bc
    -e 's!^(#?PidFile ).*!\1/var/run/clamd.<service>/clamd.pid!g' \
e939bc
    -e 's!^#?(User ).*!\1<user>!g' \
e939bc
    -e 's!^#?(AllowSupplementaryGroups|LogSyslog).*!\1 yes!g' \
e939bc
    -e 's! /usr/local/share/clamav,! %homedir,!g' \
57cb74
    etc/clamd.conf.sample
cvsextras 47272f
3ec030
sed -ri \
3ec030
    -e 's!^#?(UpdateLogFile )!#\1!g;' \
3ec030
    -e 's!^#?(LogSyslog).*!\1 yes!g' \
57cb74
    -e 's!(DatabaseOwner *)clamav$!\1%username!g' etc/freshclam.conf.sample
cvsextras 47272f
9a1369
cvsextras 47272f
## ------------------------------------------------------------
cvsextras 47272f
cvsextras 47272f
%build
05a209
CFLAGS="$RPM_OPT_FLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -std=gnu99"
8aa983
export LDFLAGS='-Wl,--as-needed'
e1a9be
# HACK: remove me...
e1a9be
export FRESHCLAM_LIBS='-lz'
0e899a
# IPv6 check is buggy and does not work when there are no IPv6 interface on build machine
0e899a
export have_cv_ipv6=yes
9c067d
%configure \
9c067d
	--disable-static \
9c067d
	--disable-rpath \
9c067d
	--disable-silent-rules \
9c067d
	--disable-clamav \
9c067d
	--with-user=%username \
9c067d
	--with-group=%username \
9c067d
	--with-dbdir=/var/lib/clamav \
9c067d
	--enable-milter \
9c067d
	--enable-clamdtop \
9c067d
	%{!?with_bytecode:--disable-llvm} \
93ac5c
	%{!?with_unrar:--disable-unrar}
93ac5c
42e36a
# TODO: check periodically that CLAMAVUSER is used for freshclam only
42e36a
42e36a
93ac5c
# build with --as-needed and disable rpath
93ac5c
sed -i \
11ed44
	-e 's! -shared ! -Wl,--as-needed\0!g'					\
c5e468
	-e '/sys_lib_dlsearch_path_spec=\"\/lib \/usr\/lib /s!\"\/lib \/usr\/lib !/\"/%_lib /usr/%_lib !g'	\
93ac5c
	libtool
6a05c5
cvsextras 47272f
f294c9
make %{?_smp_mflags}
cvsextras 47272f
cvsextras 47272f
cvsextras 47272f
## ------------------------------------------------------------
cvsextras 47272f
cvsextras 47272f
%install
cvsextras 47272f
rm -rf "$RPM_BUILD_ROOT" _doc*
f294c9
make DESTDIR="$RPM_BUILD_ROOT" install
cvsextras 47272f
3e396f
function smartsubst() {
3e396f
	local tmp
3e396f
	local regexp=$1
3e396f
	shift
3e396f
3e396f
	tmp=$(mktemp /tmp/%name-subst.XXXXXX)
3e396f
	for i; do
3e396f
		sed -e "$regexp" "$i" >$tmp
3e396f
		cmp -s $tmp "$i" || cat $tmp >"$i"
3e396f
		rm -f $tmp
3e396f
	done
3e396f
}
3e396f
3e396f
Enrico Scholz 69c6c9
install -d -m 0755 \
d91006
	$RPM_BUILD_ROOT%_sysconfdir/{mail,clamd.d,logrotate.d,tmpfiles.d} \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%_var/{log,run} \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%milterstatedir \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%pkgdatadir/template \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%_initrddir \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%homedir \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%scanstatedir
cvsextras 47272f
57cb74
rm -f	$RPM_BUILD_ROOT%_sysconfdir/clamd.conf.sample \
Enrico Scholz 69c6c9
	$RPM_BUILD_ROOT%_libdir/*.la
6151a2
93ac5c
Enrico Scholz 69c6c9
touch $RPM_BUILD_ROOT%homedir/daily.cld
Enrico Scholz 69c6c9
touch $RPM_BUILD_ROOT%homedir/main.cld
93ac5c
Enrico Scholz 590f97
install -D -m 0644 -p %SOURCE10		$RPM_BUILD_ROOT%homedir/main.cvd
Enrico Scholz 590f97
install -D -m 0644 -p %SOURCE11		$RPM_BUILD_ROOT%homedir/daily.cvd
cvsextras 47272f
cvsextras 47272f
## prepare the server-files
Enrico Scholz 69c6c9
install -D -m 0644 -p %SOURCE2		_doc_server/clamd.sysconfig
Enrico Scholz 69c6c9
install -D -m 0644 -p %SOURCE3		_doc_server/clamd.logrotate
Enrico Scholz 69c6c9
install -D -m 0755 -p %SOURCE7		_doc_server/clamd.init
Enrico Scholz 69c6c9
install -D -m 0644 -p %SOURCE5		_doc_server/README
57cb74
install -D -m 0644 -p etc/clamd.conf.sample	_doc_server/clamd.conf
Enrico Scholz 69c6c9
Enrico Scholz acfec6
install -m 0644 -p %SOURCE520		$RPM_BUILD_ROOT%pkgdatadir/
Enrico Scholz 69c6c9
install -m 0755 -p %SOURCE100		$RPM_BUILD_ROOT%pkgdatadir/
Enrico Scholz 69c6c9
cp -pa _doc_server/*			$RPM_BUILD_ROOT%pkgdatadir/template
6151a2
3e396f
smartsubst 's!/usr/share/clamav!%pkgdatadir!g' $RPM_BUILD_ROOT%pkgdatadir/clamd-wrapper
Enrico Scholz 09cf83
install -D -p -m 0644 %SOURCE530        $RPM_BUILD_ROOT%_unitdir/clamd@.service
6151a2
cvsextras 47272f
cvsextras 47272f
## prepare the update-files
Enrico Scholz 358f07
install -D -m 0644 -p %SOURCE203	$RPM_BUILD_ROOT%_sysconfdir/logrotate.d/clamav-update
Enrico Scholz 69c6c9
install -D -m 0755 -p %SOURCE8		$RPM_BUILD_ROOT%_sbindir/clamav-notify-servers
Enrico Scholz 69c6c9
touch $RPM_BUILD_ROOT%freshclamlog
cvsextras 47272f
Enrico Scholz 69c6c9
install -D -p -m 0755 %SOURCE200	$RPM_BUILD_ROOT%pkgdatadir/freshclam-sleep
Enrico Scholz 69c6c9
install -D -p -m 0644 %SOURCE201	$RPM_BUILD_ROOT%_sysconfdir/sysconfig/freshclam
Enrico Scholz 69c6c9
install -D -p -m 0600 %SOURCE202	$RPM_BUILD_ROOT%_sysconfdir/cron.d/clamav-update
57cb74
mv -f $RPM_BUILD_ROOT%_sysconfdir/freshclam.conf{.sample,}
6151a2
3e396f
smartsubst 's!webmaster,clamav!webmaster,%username!g;
3e396f
	    s!/usr/share/clamav!%pkgdatadir!g;
3e396f
	    s!/usr/bin!%_bindir!g;
3e396f
            s!/usr/sbin!%_sbindir!g;' \
3e396f
   $RPM_BUILD_ROOT%_sysconfdir/cron.d/clamav-update \
3e396f
   $RPM_BUILD_ROOT%pkgdatadir/freshclam-sleep
cvsextras 47272f
cvsextras 47272f
e939bc
### The scanner stuff
e939bc
sed -e 's!<service>!scan!g;s!<user>!%scanuser!g' \
57cb74
    etc/clamd.conf.sample > $RPM_BUILD_ROOT%_sysconfdir/clamd.d/scan.conf
e939bc
e939bc
sed -e 's!<service>!scan!g;' $RPM_BUILD_ROOT%pkgdatadir/template/clamd.init \
e939bc
    > $RPM_BUILD_ROOT%_initrddir/clamd.scan
e939bc
Enrico Scholz 69c6c9
install -D -p -m 0644 %SOURCE410 $RPM_BUILD_ROOT%_sysconfdir/init/clamd.scan.conf
Enrico Scholz ff790d
install -D -p -m 0644 %SOURCE430 $RPM_BUILD_ROOT%_unitdir/clamd@scan.service
e939bc
Enrico Scholz 69c6c9
cat << EOF > $RPM_BUILD_ROOT%_sysconfdir/tmpfiles.d/clamd.scan.conf
Enrico Scholz 9fe7b8
d %scanstatedir 0710 %scanuser %scanuser
Enrico Scholz 69c6c9
EOF
Enrico Scholz 69c6c9
Enrico Scholz 69c6c9
touch $RPM_BUILD_ROOT%scanstatedir/clamd.{sock,pid}
cvsextras 47272f
3e396f
e939bc
### The milter stuff
e939bc
sed -r \
e939bc
    -e 's!^#?(User).*!\1 %milteruser!g' \
e939bc
    -e 's!^#?(AllowSupplementaryGroups|LogSyslog) .*!\1 yes!g' \
e939bc
    -e 's! /tmp/clamav-milter.socket! %milterstatedir/clamav-milter.socket!g' \
e939bc
    -e 's! /var/run/clamav-milter.pid! %milterstatedir/clamav-milter.pid!g' \
e939bc
    -e 's! /tmp/clamav-milter.log! %milterlog!g' \
57cb74
    etc/clamav-milter.conf.sample > $RPM_BUILD_ROOT%_sysconfdir/mail/clamav-milter.conf
cvsextras 47272f
Enrico Scholz 69c6c9
install -D -p -m 0644 %SOURCE310 $RPM_BUILD_ROOT%_sysconfdir/init/clamav-milter.conf
Enrico Scholz 69c6c9
install -D -p -m 0755 %SOURCE320 $RPM_BUILD_ROOT%_initrddir/clamav-milter
Enrico Scholz 69c6c9
install -D -p -m 0644 %SOURCE330 $RPM_BUILD_ROOT%_unitdir/clamav-milter.service
cvsextras 47272f
Enrico Scholz 69c6c9
cat << EOF > $RPM_BUILD_ROOT%_sysconfdir/tmpfiles.d/clamav-milter.conf
Enrico Scholz 9fe7b8
d %milterstatedir 0710 %milteruser %milteruser
Enrico Scholz 69c6c9
EOF
cvsextras 47272f
57cb74
rm -f $RPM_BUILD_ROOT%_sysconfdir/clamav-milter.conf.sample
Enrico Scholz 69c6c9
touch $RPM_BUILD_ROOT{%milterstatedir/clamav-milter.{socket,pid},%milterlog}
Enrico Scholz 69c6c9
Enrico Scholz 69c6c9
%{!?with_upstart:  rm -rf $RPM_BUILD_ROOT%_sysconfdir/init}
Enrico Scholz 69c6c9
%{!?with_systemd:  rm -rf $RPM_BUILD_ROOT%_unitdir}
Enrico Scholz 69c6c9
%{!?with_sysv:     rm -f  $RPM_BUILD_ROOT%_initrddir/*}
Enrico Scholz 69c6c9
%{!?with_sysv:     rm -rf $RPM_BUILD_ROOT%_var/run/*/*.pid}
Enrico Scholz 69c6c9
%{!?with_tmpfiles: rm -rf $RPM_BUILD_ROOT%_sysconfdir/tmpfiles.d}
6151a2
Enrico Scholz 69c6c9
# keep clamd-wrapper in every case because it might be needed by other
Enrico Scholz 69c6c9
# packages
Enrico Scholz 69c6c9
ln -s %pkgdatadir/clamd-wrapper		$RPM_BUILD_ROOT%_initrddir/clamd-wrapper
cvsextras 47272f
cvsextras 47272f
## ------------------------------------------------------------
cvsextras 47272f
Enrico Scholz 35bfd9
%check
Enrico Scholz 69c6c9
make check
Enrico Scholz 35bfd9
Enrico Scholz 35bfd9
## ------------------------------------------------------------
Enrico Scholz 35bfd9
cvsextras 47272f
%clean
cvsextras 47272f
rm -rf "$RPM_BUILD_ROOT"
cvsextras 47272f
cvsextras 47272f
## ------------------------------------------------------------
cvsextras 47272f
36c1bd
%pre filesystem
Nick Bebout f3d1b8
getent group %{username} >/dev/null || groupadd -r %{username}
d2c5bf
getent passwd %{username} >/dev/null || \
Nick Bebout f3d1b8
    useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \
d2c5bf
    -c "Clamav database update user" %{username}
d2c5bf
exit 0
36c1bd
36c1bd
e939bc
%pre scanner
Nick Bebout f3d1b8
getent group %{scanuser} >/dev/null || groupadd -r %{scanuser}
d2c5bf
getent passwd %{scanuser} >/dev/null || \
Nick Bebout f3d1b8
    useradd -r -g %{scanuser} -d / -s /sbin/nologin \
d2c5bf
    -c "Clamav scanner user" %{scanuser}
d2c5bf
exit 0
d2c5bf
e939bc
Enrico Scholz df4373
%{?with_tmpfiles:
Enrico Scholz df4373
%post scanner
Enrico Scholz df4373
%{?with_systemd:/bin/systemd-tmpfiles --create %_sysconfdir/tmpfiles.d/clamd.scan.conf || :}}
Enrico Scholz df4373
e939bc
Enrico Scholz 09cf83
%post server-systemd
Enrico Scholz 09cf83
test "$1" != "1" || /bin/systemctl daemon-reload >/dev/null 2>&1 || :
Enrico Scholz 09cf83
Enrico Scholz 09cf83
%postun server-systemd
Enrico Scholz 09cf83
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
Enrico Scholz 09cf83
Enrico Scholz 09cf83
e939bc
%post scanner-sysvinit
e939bc
/sbin/chkconfig --add clamd.scan
e939bc
e939bc
%preun scanner-sysvinit
e939bc
test "$1" != 0 || %_initrddir/clamd.scan stop &>/dev/null || :
e939bc
test "$1" != 0 || /sbin/chkconfig --del clamd.scan
e939bc
e939bc
%postun scanner-sysvinit
e939bc
test "$1"  = 0 || %_initrddir/clamd.scan condrestart >/dev/null || :
e939bc
e939bc
e939bc
%post scanner-upstart
e939bc
/usr/bin/killall -u %scanuser clamd 2>/dev/null || :
e939bc
e939bc
%preun scanner-upstart
e939bc
test "$1" != "0" || /sbin/initctl -q stop clamd.scan || :
e939bc
e939bc
Enrico Scholz ff790d
%systemd_install scanner-systemd clamd@scan.service
Enrico Scholz 55ae14
e939bc
cvsextras 47272f
%post update
f294c9
test -e %freshclamlog || {
f294c9
	touch %freshclamlog
f294c9
	%__chmod 0664 %freshclamlog
f294c9
	%__chown root:%username %freshclamlog
Enrico Scholz 288f02
	! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog
cvsextras 47272f
}
cvsextras 47272f
Enrico Scholz a1f6a7
%triggerin update -- %name-update < 0.97.3-1704
Enrico Scholz 57ac72
# remove me after F19
Enrico Scholz 57ac72
! test -x /sbin/restorecon || /sbin/restorecon %freshclamlog &>/dev/null || :
Enrico Scholz 57ac72
42e36a
42e36a
%triggerin milter -- clamav-scanner
42e36a
# Add the milteruser to the scanuser group; this is required when
42e36a
# milter and clamd communicate through local sockets
Enrico Scholz 1b9c20
/usr/sbin/groupmems -g %scanuser -a %milteruser &>/dev/null || :
42e36a
e939bc
%pre milter
Nick Bebout f3d1b8
getent group %{milteruser} >/dev/null || groupadd -r %{milteruser}
d2c5bf
getent passwd %{milteruser} >/dev/null || \
Nick Bebout f3d1b8
    useradd -r -g %{milteruser} -d %{milterstatedir} -s /sbin/nologin \
d2c5bf
    -c "Clamav Milter user" %{milteruser}
d2c5bf
exit 0
d2c5bf
cvsextras 47272f
e939bc
%post milter
9a1369
test -e %milterlog || {
9a1369
	touch %milterlog
9a1369
	chmod 0620             %milterlog
9a1369
	chown root:%milteruser %milterlog
Enrico Scholz 288f02
	! test -x /sbin/restorecon || /sbin/restorecon %milterlog
9a1369
}
Enrico Scholz bc6f65
%{?with_systemd:/bin/systemd-tmpfiles --create %_sysconfdir/tmpfiles.d/clamav-milter.conf || :}
cvsextras 47272f
cbeb9f
Enrico Scholz a1f6a7
%triggerin milter -- %name-milter < 0.97.3-1704
Enrico Scholz 57ac72
# remove me after F19
Enrico Scholz 57ac72
! test -x /sbin/restorecon || /sbin/restorecon %milterlog &>/dev/null || :
Enrico Scholz 57ac72
cbeb9f
e939bc
%post milter-sysvinit
cbeb9f
/sbin/chkconfig --add clamav-milter
cbeb9f
e939bc
%preun milter-sysvinit
cbeb9f
test "$1" != 0 || %_initrddir/clamav-milter stop &>/dev/null || :
cbeb9f
test "$1" != 0 || /sbin/chkconfig --del clamav-milter
cbeb9f
e939bc
%postun milter-sysvinit
f294c9
test "$1"  = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
cvsextras 47272f
cvsextras 47272f
e939bc
%post milter-upstart
e939bc
/usr/bin/killall -u %milteruser clamav-milter 2>/dev/null || :
e939bc
e939bc
%preun milter-upstart
e939bc
test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
e939bc
e939bc
Enrico Scholz 55ae14
%systemd_install milter-systemd clamav-milter.service
Enrico Scholz 55ae14
Enrico Scholz 55ae14
cvsextras 47272f
%post   lib -p /sbin/ldconfig
cvsextras 47272f
%postun lib -p /sbin/ldconfig
cvsextras 47272f
cvsextras 47272f
cvsextras 47272f
%files
cvsextras 47272f
%defattr(-,root,root,-)
00f644
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README UPGRADE
cvsextras 47272f
%doc docs/*.pdf
f294c9
%_bindir/*
e99b95
%_mandir/man[15]/*
6151a2
%exclude %_bindir/clamav-config
cvsextras 47272f
%exclude %_bindir/freshclam
ecfc3d
%exclude %_mandir/*/freshclam*
cvsextras 47272f
cvsextras 47272f
## -----------------------
cvsextras 47272f
cvsextras 47272f
%files lib
cvsextras 47272f
%defattr(-,root,root,-)
f294c9
%_libdir/*.so.*
cvsextras 47272f
cvsextras 47272f
## -----------------------
cvsextras 47272f
cvsextras 47272f
%files devel
cvsextras 47272f
%defattr(-,root,root,-)
f294c9
%_includedir/*
f294c9
%_libdir/*.so
6151a2
%pkgdatadir/template
6151a2
%pkgdatadir/clamd-gen
6151a2
%_libdir/pkgconfig/*
6151a2
%_bindir/clamav-config
cvsextras 47272f
cvsextras 47272f
## -----------------------
cvsextras 47272f
36c1bd
%files filesystem
36c1bd
%attr(-,%username,%username) %dir %homedir
36c1bd
%attr(-,root,root)           %dir %pkgdatadir
36c1bd
36c1bd
## -----------------------
36c1bd
cvsextras 47272f
%files data
f294c9
%defattr(-,%username,%username,-)
6151a2
# use %%config to keep files which were updated by 'freshclam'
6151a2
# already. Without this tag, they would be overridden with older
6151a2
# versions whenever a new -data package is installed.
f294c9
%config %verify(not size md5 mtime) %homedir/*.cvd
cvsextras 47272f
36c1bd
36c1bd
%files data-empty
36c1bd
%defattr(-,%username,%username,-)
380782
%ghost %attr(0664,%username,%username) %homedir/*.cvd
380782
36c1bd
cvsextras 47272f
## -----------------------
cvsextras 47272f
cvsextras 47272f
%files update
cvsextras 47272f
%defattr(-,root,root,-)
cvsextras 47272f
%_bindir/freshclam
ecfc3d
%_mandir/*/freshclam*
3e396f
%pkgdatadir/freshclam-sleep
3e396f
%config(noreplace) %verify(not mtime)    %_sysconfdir/freshclam.conf
3e396f
%config(noreplace) %verify(not mtime)    %_sysconfdir/logrotate.d/*
d91006
%config(noreplace) %_sysconfdir/cron.d/clamav-update
3e396f
%config(noreplace) %_sysconfdir/sysconfig/freshclam
cvsextras 47272f
f294c9
%ghost %attr(0664,root,%username) %verify(not size md5 mtime) %freshclamlog
380782
%ghost %attr(0664,%username,%username) %homedir/*.cld
36c1bd
36c1bd
cvsextras 47272f
## -----------------------
cvsextras 47272f
cvsextras 47272f
%files server
cvsextras 47272f
%defattr(-,root,root,-)
cvsextras 47272f
%doc _doc_server/*
8c82b2
%_mandir/man[58]/clamd*
f294c9
%_sbindir/*
cbeb9f
%dir %_sysconfdir/clamd.d
cvsextras 47272f
cvsextras 47272f
%exclude %_sbindir/*milter*
cvsextras 47272f
%exclude %_mandir/man8/clamav-milter*
cvsextras 47272f
cbeb9f
e939bc
%files server-sysvinit
cbeb9f
%defattr(-,root,root,-)
cbeb9f
%_initrddir/clamd-wrapper
Enrico Scholz 561d35
%pkgdatadir/clamd-wrapper
cbeb9f
Enrico Scholz 09cf83
%if 0%{?with_systemd:1}
Enrico Scholz 09cf83
%files server-systemd
Enrico Scholz 09cf83
 %defattr(-,root,root,-)
Enrico Scholz 09cf83
 %_unitdir/clamd@.service
Enrico Scholz 09cf83
%endif
cbeb9f
cvsextras 47272f
## -----------------------
cvsextras 47272f
e939bc
%files scanner
cvsextras 47272f
%defattr(-,root,root,-)
c7190e
%config(noreplace) %_sysconfdir/clamd.d/scan.conf
e939bc
%ghost %scanstatedir/clamd.sock
9ee1c3
Enrico Scholz 69c6c9
%if 0%{?with_tmpfiles:1}
Enrico Scholz 69c6c9
  %_sysconfdir/tmpfiles.d/clamd.scan.conf
Enrico Scholz 69c6c9
  %ghost %dir %attr(0710,%scanuser,%scanuser) %scanstatedir
Enrico Scholz 69c6c9
%else
Enrico Scholz 69c6c9
  %dir %attr(0710,%scanuser,%scanuser) %scanstatedir
Enrico Scholz 69c6c9
%endif
Enrico Scholz 69c6c9
Enrico Scholz 69c6c9
%if 0%{?with_sysv:1}
e939bc
%files scanner-sysvinit
Enrico Scholz 69c6c9
  %attr(0755,root,root) %config %_initrddir/clamd.scan
Enrico Scholz 69c6c9
  %ghost %scanstatedir/clamd.pid
Enrico Scholz 69c6c9
%endif
e939bc
0b8f60
%if 0%{?with_upstart:1}
e939bc
%files scanner-upstart
Enrico Scholz 69c6c9
  %defattr(-,root,root,-)
Enrico Scholz 69c6c9
  %config(noreplace) %_sysconfdir/init/clamd.scan*
Enrico Scholz 69c6c9
%endif
Enrico Scholz 69c6c9
Enrico Scholz 69c6c9
%if 0%{?with_systemd:1}
Enrico Scholz 69c6c9
%files scanner-systemd
Enrico Scholz 69c6c9
  %defattr(-,root,root,-)
Enrico Scholz ff790d
  %_unitdir/clamd@scan.service
0b8f60
%endif
e939bc
e939bc
## -----------------------
cvsextras 47272f
e939bc
%files milter
9ee1c3
%defattr(-,root,root,-)
9ee1c3
%doc clamav-milter/README.fedora
e939bc
%_sbindir/*milter*
e939bc
%_mandir/man8/clamav-milter*
e939bc
%config(noreplace) %_sysconfdir/mail/clamav-milter.conf
e939bc
%ghost %attr(0620,root,%milteruser) %verify(not size md5 mtime) %milterlog
Enrico Scholz 69c6c9
%ghost %milterstatedir/clamav-milter.socket
Enrico Scholz 69c6c9
Enrico Scholz 69c6c9
%if 0%{?with_tmpfiles:1}
Enrico Scholz 69c6c9
  %_sysconfdir/tmpfiles.d/clamav-milter.conf
Enrico Scholz 69c6c9
  %ghost %dir %attr(0710,%milteruser,%milteruser) %milterstatedir
Enrico Scholz 69c6c9
%else
Enrico Scholz 69c6c9
  %dir %attr(0710,%milteruser,%milteruser) %milterstatedir
Enrico Scholz 69c6c9
%endif
cbeb9f
Enrico Scholz 69c6c9
%if 0%{?with_sysv:1}
e939bc
%files milter-sysvinit
Enrico Scholz 69c6c9
  %defattr(-,root,root,-)
Enrico Scholz 69c6c9
  %config %_initrddir/clamav-milter
Enrico Scholz 69c6c9
  %ghost %milterstatedir/clamav-milter.pid
Enrico Scholz 69c6c9
%endif
e939bc
0b8f60
%if 0%{?with_upstart:1}
e939bc
%files milter-upstart
Enrico Scholz 69c6c9
  %defattr(-,root,root,-)
Enrico Scholz 69c6c9
  %config(noreplace) %_sysconfdir/init/clamav-milter*
Enrico Scholz 69c6c9
%endif
Enrico Scholz 69c6c9
Enrico Scholz 69c6c9
%if 0%{?with_systemd:1}
Enrico Scholz 69c6c9
%files milter-systemd
Enrico Scholz 69c6c9
  %defattr(-,root,root,-)
Enrico Scholz 69c6c9
  %_unitdir/clamav-milter.service
0b8f60
%endif
cbeb9f
cbeb9f
cvsextras 47272f
%changelog
56d62e
* Wed Jan 15 2014 Robert Scheck <robert@fedoraproject.org> - 0.98.1-1
56d62e
- Upgrade to 0.98.1 and updated daily.cvd (#1053400)
56d62e
114a6b
* Wed Oct 09 2013 Dan Horรกk <dan[at]danny.cz> - 0.98-2
114a6b
- Use fanotify from glibc instead of the limited hand-crafted version
114a6b
57cb74
* Sun Oct 06 2013 Robert Scheck <robert@fedoraproject.org> - 0.98-1
57cb74
- Upgrade to 0.98 and updated main.cvd and daily.cvd (#1010168)
57cb74
5a2b15
* Wed Aug 07 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.97.8-4
5a2b15
- Add a missing requirement on crontabs to spec file
5a2b15
- Fix RHBZ#988605
5a2b15
bfe151
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.97.8-3
bfe151
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bfe151
d91006
* Thu May 2 2013 Nick Bebout <nb@fedoraproject.org> - 0.97.8-1
d91006
- Update to 0.97.8
d91006
d2c5bf
* Wed Apr 10 2013 Jon Ciesla <limburgher@gmail.com> - 0.97.7-2
d2c5bf
- Migrate from fedora-usermgmt to guideline scriptlets.
d2c5bf
84f95c
* Sat Mar 23 2013 Nick Bebout <nb@fedoraproject.org> - 0.97.7-1
84f95c
- Update to 0.97.7
84f95c
178297
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.97.6-1901
178297
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
178297
Enrico Scholz 62e973
* Sat Sep 22 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.6-1900
Enrico Scholz 62e973
- updated to 0.97.6
Enrico Scholz 83f132
- use %%systemd macros
Enrico Scholz 62e973
Enrico Scholz 3b4009
* Tue Aug 14 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.5-1900
Enrico Scholz 3b4009
- disabled upstart support
Enrico Scholz 3b4009
435949
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.97.5-1801
435949
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
435949
Enrico Scholz 2d0fed
* Sat Jun 16 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.5-1800
Enrico Scholz 2d0fed
- updated to 0.97.5
Enrico Scholz 2d0fed
- CVE-2012-1457: allows to bypass malware detection via a TAR archive
Enrico Scholz 2d0fed
  entry with a length field that exceeds the total TAR file size
Enrico Scholz 2d0fed
- CVE-2012-1458: allows to bypass malware detection via a crafted
Enrico Scholz 2d0fed
  reset interval in the LZXC header of a CHM file
Enrico Scholz 2d0fed
- CVE-2012-1459: allows to bypass malware detection via a TAR archive
Enrico Scholz 2d0fed
  entry with a length field corresponding to that entire entry, plus
Enrico Scholz 2d0fed
  part of the header of the next entry
Enrico Scholz 590f97
- ship local copy of virus database; it was removed by accident from
Enrico Scholz 590f97
  0.97.5 tarball
Enrico Scholz 7a283c
- removed sysv compat stuff
Enrico Scholz 2d0fed
Enrico Scholz 6a1f66
* Fri Apr 13 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.4-1801
Enrico Scholz 6a1f66
- build with -fPIE
Enrico Scholz 6a1f66
Enrico Scholz 171217
* Fri Mar 16 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.4-1800
Enrico Scholz 171217
- updated to 0.97.4
Enrico Scholz 171217
Enrico Scholz 05b60d
* Sun Feb  5 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.3-1703
Enrico Scholz 288f02
- fixed SELinux restorecon invocation
Enrico Scholz 57ac72
- added trigger to fix SELinux contexts of logfiles created by old
Enrico Scholz 57ac72
  packages
Enrico Scholz 6134d1
- fixed build with recent gcc/glibc toolchain
Enrico Scholz 288f02
Enrico Scholz a11aee
* Sat Jan 21 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.3-1703
Enrico Scholz adba5c
- rewrote clamav-notify-servers to be init system neutral
Enrico Scholz 60764c
- set PrivateTmp systemd option (#782488)
Enrico Scholz adba5c
Enrico Scholz 754437
* Sun Jan  8 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.3-1702
Enrico Scholz 576259
- set correct SELinux context for logfiles generated in %%post (#754555)
Enrico Scholz df4373
- create systemd tmpfiles in %%post
Enrico Scholz 09cf83
- created -server-systemd subpackage providing a clamd@.service template
Enrico Scholz ff790d
- made script in -scanner-systemd an instance of clamd@.service
Enrico Scholz 576259
f5c3f1
* Tue Oct 18 2011 Nick Bebout <nb@fedoraproject.org> - 0.97.3-1700
f5c3f1
- updated to 0.97.3
f5c3f1
- CVE-2011-3627 clamav: Recursion level crash fixed in v0.97.3
f5c3f1
Enrico Scholz ec71ab
* Thu Aug  4 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.2-1700
Enrico Scholz 561d35
- moved sysv wrapper script into -sysv subpackage
Enrico Scholz ec71ab
- start systemd services after network.target and nss-lookup.target
Enrico Scholz ec71ab
Enrico Scholz 85dd73
* Tue Jul 26 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.2-1600
Enrico Scholz 85dd73
- updated to 0.97.2
Enrico Scholz 1747f4
- CVE-2011-2721 Off-by-one error by scanning message hashes (#725694)
Enrico Scholz 55ae14
- fixed systemd scripts and their installation
Enrico Scholz 85dd73
Enrico Scholz 2b2f95
* Thu Jun  9 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97.1-1600
Enrico Scholz 2b2f95
- updated to 0.97.1
Enrico Scholz 652b40
- fixed Requires(preun) vs. Requires(postun) inconsistency
Enrico Scholz 2b2f95
Enrico Scholz 9fe7b8
* Sat Apr 23 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97-1601
Enrico Scholz 9fe7b8
- fixed tmpfiles.d syntax (#696812)
Enrico Scholz 9fe7b8
Enrico Scholz e3d4e0
* Sun Feb 20 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.97-1600
Enrico Scholz e3d4e0
- updated to 0.97
Enrico Scholz e3d4e0
- rediffed some patches
Enrico Scholz e3d4e0
788561
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96.5-1503
788561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
788561
Enrico Scholz 77795d
* Sat Jan  8 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.5-1502
Enrico Scholz 77795d
- fixed signal specifier in clamd-wrapper (#668131, James Ralston)
Enrico Scholz 77795d
Enrico Scholz 69c6c9
* Fri Dec 24 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.5-1501
Enrico Scholz 69c6c9
- added systemd init scripts which obsolete to old sysvinit ones
Enrico Scholz 69c6c9
- added tmpfiles.d/ descriptions
Enrico Scholz 69c6c9
Enrico Scholz d4f86f
* Sat Dec  4 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.5-1500
Enrico Scholz d4f86f
- updated to 0.96.5
Enrico Scholz d4f86f
- CVE-2010-4260 Multiple errors within the processing of PDF files can
Enrico Scholz d4f86f
  be exploited to e.g. cause a crash.
Enrico Scholz d4f86f
- CVE-2010-4261 An off-by-one error within the "icon_cb()" function
Enrico Scholz d4f86f
  can be exploited to cause a memory corruption.
Enrico Scholz d4f86f
Enrico Scholz ba25ad
* Sun Oct 31 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.4-1500
Enrico Scholz ba25ad
- updated to 0.96.4
Enrico Scholz 35bfd9
- execute 'make check' (#640347) but ignore errors for now because
Enrico Scholz 35bfd9
  four checks are failing on f13
Enrico Scholz ba25ad
Enrico Scholz 2528e9
* Wed Sep 29 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.3-1501
Enrico Scholz 2528e9
- lowered stop priority of sysv initscripts (#629435)
Enrico Scholz 2528e9
Enrico Scholz a83f24
* Wed Sep 22 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.3-1500
Enrico Scholz a83f24
- updated to 0.96.3
Enrico Scholz a83f24
- fixes CVE-2010-0405 in shipped bzlib.c copy
Enrico Scholz a83f24
Enrico Scholz d2913c
* Sun Aug 15 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.2-1500
Enrico Scholz d2913c
- updated to 0.96.2
Enrico Scholz d2913c
- rediffed patches
Enrico Scholz d2913c
- removed the -jit-disable patch which is replaced upstream by a more
Enrico Scholz d2913c
  detailed configuration option.
Enrico Scholz d2913c
Enrico Scholz 2e749a
* Wed Aug 11 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Enrico Scholz 2e749a
- removed old %%trigger which renamed the 'clamav' user- and groupnames
Enrico Scholz 2e749a
  to 'clamupdate'
Enrico Scholz 1b9c20
- use 'groupmems', not 'usermod' to add a user to a group because
Enrico Scholz 1b9c20
  'usermod' does not work when user does not exist in local /etc/passwd
Enrico Scholz 2e749a
Enrico Scholz c12c29
* Tue Jul 13 2010 Dan Horรกk <dan[at]danny.cz> - 0.96.1-1401
Enrico Scholz c12c29
- ocaml not available (at least) on s390(x)
Enrico Scholz c12c29
Enrico Scholz c12c29
* Tue Jun  1 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96.1-1400
dc6c42
- updated to 0.96.1
Enrico Scholz c12c29
- rediffed patches
Enrico Scholz c12c29
57cb74
* Sat May 29 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 0.96.1403
Enrico Scholz c12c29
- CVE-2010-1639 Clam AntiVirus: Heap-based overflow, when processing malicious PDF file(s)
Enrico Scholz c12c29
Enrico Scholz c12c29
* Wed Apr 21 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96-1402
Enrico Scholz c12c29
- updated to final 0.96
1c5ca0
- applied upstream patch which allows to disable JIT compiler (#573191)
Enrico Scholz c12c29
- build JIT compiler again
1c5ca0
- disabled JIT compiler by default
1c5ca0
- removed explicit 'pkgconfig' requirements in -devel (#533956)
Enrico Scholz c12c29
Enrico Scholz c12c29
* Sat Mar 20 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96-0.1401.rc1
Enrico Scholz c12c29
- do not build the bytecode JIT compiler for now until it can be disabled
Enrico Scholz c12c29
  at runtime (#573191)
Enrico Scholz c12c29
Enrico Scholz c12c29
* Thu Mar 11 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96-1400.rc1
Enrico Scholz c12c29
- updated to 0.96rc1
95227b
- added some BRs
Enrico Scholz c12c29
Enrico Scholz c12c29
* Sun Dec  6 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.3-1301
Enrico Scholz c12c29
- updated -upstart to upstart 0.6.3
18c2da
5a59f0
* Sat Nov 21 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5a59f0
- adjusted chkconfig positions for clamav-milter (#530101)
Enrico Scholz c12c29
- use %%apply instead of %%patch
5a59f0
Enrico Scholz c12c29
* Thu Oct 29 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.3-1300
e0ec3f
- updated to 0.95.3
e0ec3f
11ed44
* Sun Sep 13 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
11ed44
- conditionalized build of noarch subpackages to ease packaging under RHEL5
11ed44
3ec030
* Sun Aug  9 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-5
3ec030
- modified freshclam configuration to log by syslog by default
3ec030
- disabled LocalSocket option in sample configuration
3ec030
- fixed clamav-milter sysv initscript to use bash interpreter and to
3ec030
  be disabled by default
3ec030
42e36a
* Sat Aug  8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-4
42e36a
- renamed 'clamav' user/group to 'clamupdate'
42e36a
- add the '%milteruser' user to the '%scanuser' group when the -scanner
42e36a
  subpackage is installed
42e36a
44d245
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95.2-2
44d245
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
44d245
f3f746
* Thu Jun 11 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-1
f3f746
- updated to 0.95.2
f3f746
d41bb5
* Sun Apr 19 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.1-3
d41bb5
- fixed '--without upstart' operation
d41bb5
0b8f60
* Wed Apr 15 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.1-2
0b8f60
- added '%%bcond_without upstart' conditional to ease skipping of
0b8f60
  -upstart subpackage creation e.g. on EL5 systems
0b8f60
- fixed Provides/Obsoletes: typo in -milter-sysvinit subpackage which
0b8f60
  broke update path
0b8f60
4939cb
* Fri Apr 10 2009 Robert Scheck <robert@fedoraproject.org> - 0.95.1-1
4939cb
- Upgrade to 0.95.1 (#495039)
4939cb
0e899a
* Wed Mar 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95-1
0e899a
- updated to final 0.95
0e899a
- added ncurses-devel (-> clamdtop) BR
0e899a
- enforced IPv6 support
0e899a
e939bc
* Sun Mar  8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95-0.1.rc1
e939bc
- updated to 0.95rc1
e939bc
- added -upstart subpackages
e939bc
- renamed -sysv to -sysvinit to make -upstart win the default dep resolving
e939bc
- reworked complete milter stuff
e939bc
- added -scanner subpackage which contains a preconfigured daemon
e939bc
  (e.g. for use by -milter)
e939bc
- moved %%changelog entries from 2006 and before into ChangeLog-rpm.old
e939bc
6e801b
* Wed Feb 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.94.2-3
6e801b
- made some subpackages noarch
6e801b
- fixed typo in SysV initscript which removes 'touch' file (#473513)
6e801b
b373ee
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.94.2-2
b373ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b373ee
835072
* Tue Dec 02 2008 Robert Scheck <robert@fedoraproject.org> - 0.94.2-1
835072
- Upgrade to 0.94.2 (#474002)
835072
703e6b
* Wed Nov 05 2008 Robert Scheck <robert@fedoraproject.org> - 0.94.1-1
703e6b
- Upgrade to 0.94.1
703e6b
57e0f3
* Sun Oct 26 2008 Robert Scheck <robert@fedoraproject.org> - 0.94-1
57e0f3
- Upgrade to 0.94 (SECURITY), fixes #461461:
57e0f3
- CVE-2008-1389 Invalid memory access in the CHM unpacker
57e0f3
- CVE-2008-3912 Out-of-memory NULL pointer dereference in mbox/msg
57e0f3
- CVE-2008-3913 Memory leak in code path in freshclam's manager.c
57e0f3
- CVE-2008-3914 Multiple file descriptor leaks on the code paths
57e0f3
4732e9
* Sun Jul 13 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93.3-1
4732e9
- updated to 0.93.3; another fix for CVE-2008-2713 (out-of-bounds read
4732e9
  on petite files)
4732e9
- put pid instead of pgrp into pidfile of clamav-milter (bz #452359)
f90626
- rediffed patches
4732e9
01e19b
* Tue Jun 17 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93.1-1
01e19b
- updated to 0.93.1
01e19b
- rediffed -path patch
01e19b
- CVE-2008-2713 Invalid Memory Access Denial Of Service Vulnerability
01e19b
380782
* Mon Apr 14 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-1
380782
- updated to final 0.93
380782
- removed daily.inc + main.inc directories; they are now replaced by
380782
  *.cld containers
380782
- trimmed down MAILTO list of cronjob to 'root' again; every well
380782
  configured system has an alias for this recipient
380782
196290
* Wed Mar 12 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-0.1.rc1
887e34
- moved -milter scriptlets into -milter-core subpackage
887e34
- added a requirement on the milteruser to the -milter-sendmail
887e34
  subpackage (reported by Bruce Jerrick)
887e34
c5e468
* Tue Mar  4 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-0.0.rc1
c5e468
- updated to 0.93rc1
c5e468
- fixed rpath issues
c5e468
240e0e
* Mon Feb 11 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92.1-1
240e0e
- updated to 0.92.1
240e0e
9ee1c3
* Tue Jan  1 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-6
9ee1c3
- redisabled unrar stuff completely by using clean sources
9ee1c3
- splitted -milter subpackage into pieces to allow use without sendmail
9ee1c3
  (#239037)
9ee1c3
985d8c
* Tue Jan  1 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-5
985d8c
- use a better way to disable RPATH-generation (needed for '--with
985d8c
  unrar' builds)
985d8c
93ac5c
* Mon Dec 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-4
93ac5c
- added a README.fedora to the milter package (#240610)
93ac5c
- ship original sources again; unrar is now licensed correctly (no more
93ac5c
  stolen code put under GPL). Nevertheless, this license is not GPL
93ac5c
  compatible, and to allow libclamav to be used by GPL applications,
93ac5c
  unrar is disabled by a ./configure switch.
93ac5c
- use pkg-config in clamav-config to emulate --cflags and --libs
93ac5c
  operations (fixes partly multilib issues)
93ac5c
- registered some more auto-updated files and marked them as %%ghost
93ac5c
b9a8a9
* Fri Dec 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.92-3
6a05c5
- updated to 0.92 (SECURITY):
6a05c5
- CVE-2007-6335 MEW PE File Integer Overflow Vulnerability
6a05c5
179411
* Mon Oct 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.91.2-3
11ed44
- remove RAR decompression code from source tarball because of
179411
  legal problems (resolves 334371)
179411
- correct license tag
179411
4086c9
* Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 0.91.2-2
4086c9
- Bump release for upgrade path.
4086c9
68d2aa
* Sat Aug 25 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.2-1
68d2aa
- updated to 0.91.2 (SECURITY):
68d2aa
- CVE-2007-4510 DOS in RTF parser
68d2aa
- DOS in html normalizer
68d2aa
- arbitrary command execution by special crafted recipients in
68d2aa
  clamav-milter's black-hole mode
6aecc0
- fixed an open(2) issue
68d2aa
e50738
* Tue Jul 17 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.1-0
e50738
- updated to 0.91.1
e50738
2ee773
* Thu Jul 12 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91-1
2ee773
- updated to 0.91
2ee773
ca0868
* Thu May 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.3-1
ca0868
- updated to 0.90.3
491e54
- BR tcpd.h instead of tcp_wrappers(-devel) to make it build both
ca0868
  in FC6- and F7+
ca0868
0b90ae
* Fri Apr 13 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.2-1
11ed44
- [SECURITY] updated to 0.90.2; fixes CVE-2007-1745, CVE-2007-1997
0b90ae
319d6e
* Fri Mar  2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-2
319d6e
- BR 'tcp_wrappers-devel' instead of plain 'tcp_wrappers'
319d6e
00f644
* Fri Mar  2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-1
00f644
- updated to 0.90.1
00f644
- updated %%doc list
00f644
017299
* Sun Feb 18 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-1
017299
- updated to final 0.90
017299
- removed -visibility patch since fixed upstream
017299
8aa983
* Sun Feb  4 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.3.rc3
8aa983
- build with -Wl,-as-needed and cleaned up pkgconfig file
8aa983
- removed old hack which forced installation of freshclam.conf; related
8aa983
  check was removed upstream
8aa983
- removed static library
8aa983
- removed %%changelog entries from before 2004
8aa983
36c1bd
* Sat Feb  3 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.2.rc3
36c1bd
- updated to 0.90rc3
36c1bd
- splitted mandatory parts from the data-file into a separate -filesystem
36c1bd
  subpackage
36c1bd
- added a -data-empty subpackage to allow a setup where database is
36c1bd
  updated per cron-job and user does not want to download the large
36c1bd
  -data package with outdated virus definitations (#214949)
36c1bd
- %%ghost'ed the files downloaded by freshclam