|
|
95227b8 |
%global snapshot rc1
|
|
|
6151a28 |
|
|
|
6151a28 |
## Fedora Extras specific customization below...
|
|
|
11ed44b |
%bcond_without fedora
|
|
|
0b8f60e |
%bcond_without upstart
|
|
|
93ac5ce |
%bcond_with unrar
|
|
|
11ed44b |
%bcond_without noarch
|
|
|
6151a28 |
##
|
|
|
6151a28 |
|
|
|
42e36a2 |
%global username clamupdate
|
|
|
8dcc3a4 |
%global homedir %_var/lib/clamav
|
|
|
8dcc3a4 |
%global freshclamlog %_var/log/freshclam.log
|
|
|
8dcc3a4 |
%global milteruser clamilt
|
|
|
e939bcc |
%global milterlog %_var/log/clamav-milter.log
|
|
|
8dcc3a4 |
%global milterstatedir %_var/run/clamav-milter
|
|
|
8dcc3a4 |
%global pkgdatadir %_datadir/%name
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%global scanuser clamscan
|
|
|
e939bcc |
%global scanstatedir %_var/run/clamd.scan
|
|
|
bd5909f |
|
|
|
11ed44b |
%{?with_noarch:%global noarch BuildArch: noarch}
|
|
|
8fb84a2 |
%{!?release_func:%global release_func() %1%{?dist}}
|
|
|
84bbd52 |
%{!?apply:%global apply(p:n:b:) %patch%%{-n:%%{-n*}} %%{-p:-p %%{-p*}} %%{-b:-b %%{-b*}} \
|
|
|
5a59f06 |
%nil}
|
|
|
bd5909f |
|
|
cvsextras |
47272f4 |
Summary: End-user tools for the Clam Antivirus scanner
|
|
cvsextras |
47272f4 |
Name: clamav
|
|
|
95227b8 |
Version: 0.96
|
|
|
95227b8 |
Release: %release_func 1400%{?snapshot:.%snapshot}
|
|
|
efa447f |
|
|
|
93ac5ce |
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
|
cvsextras |
47272f4 |
Group: Applications/File
|
|
cvsextras |
47272f4 |
URL: http://www.clamav.net
|
|
|
9ee1c30 |
%if 0%{?with_unrar:1}
|
|
|
c5e4682 |
Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz
|
|
|
c5e4682 |
Source999: http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz.sig
|
|
|
9ee1c30 |
%else
|
|
|
11ed44b |
# Unfortunately, clamav includes support for RAR v3, derived from GPL
|
|
|
9ee1c30 |
# incompatible unrar from RARlabs. We have to pull this code out.
|
|
|
240e0e1 |
# tarball was created by
|
|
|
c5e4682 |
# make clean-sources [TARBALL=<original-tarball>] [VERSION=<version>]
|
|
|
95227b8 |
Source0: %name-%version%{?snapshot}-norar.tar.xz
|
|
|
9ee1c30 |
%endif
|
|
cvsextras |
47272f4 |
Source1: clamd-wrapper
|
|
cvsextras |
47272f4 |
Source2: clamd.sysconfig
|
|
cvsextras |
47272f4 |
Source3: clamd.logrotate
|
|
cvsextras |
47272f4 |
Source5: clamd-README
|
|
cvsextras |
47272f4 |
Source6: clamav-update.logrotate
|
|
cvsextras |
47272f4 |
Source7: clamd.SERVICE.init
|
|
cvsextras |
47272f4 |
Source8: clamav-notify-servers
|
|
|
93ac5ce |
Patch24: clamav-0.92-private.patch
|
|
|
6a05c58 |
Patch25: clamav-0.92-open.patch
|
|
|
e939bcc |
Patch26: clamav-0.95-cliopts.patch
|
|
|
e0ec3ff |
Patch27: clamav-0.95.3-umask.patch
|
|
|
f294c9e |
BuildRoot: %_tmppath/%name-%version-%release-root
|
|
|
f294c9e |
Requires: clamav-lib = %version-%release
|
|
cvsextras |
47272f4 |
Requires: data(clamav)
|
|
|
319d6e7 |
BuildRequires: zlib-devel bzip2-devel gmp-devel curl-devel
|
|
|
0e899af |
BuildRequires: ncurses-devel
|
|
|
491e541 |
BuildRequires: %_includedir/tcpd.h
|
|
|
95227b8 |
BuildRequires: bc tcl ocaml groff graphviz
|
|
cvsextras |
47272f4 |
|
|
|
36c1bd4 |
%package filesystem
|
|
|
36c1bd4 |
Summary: Filesystem structure for clamav
|
|
|
36c1bd4 |
Group: Applications/File
|
|
|
e939bcc |
Provides: user(%username) = 4
|
|
|
e939bcc |
Provides: group(%username) = 4
|
|
|
36c1bd4 |
# Prevent version mix
|
|
|
36c1bd4 |
Conflicts: %name < %version-%release
|
|
|
36c1bd4 |
Conflicts: %name > %version-%release
|
|
|
36c1bd4 |
BuildRequires: fedora-usermgmt-devel
|
|
|
11ed44b |
%{?noarch}
|
|
|
36c1bd4 |
%{?FE_USERADD_REQ}
|
|
|
36c1bd4 |
|
|
cvsextras |
47272f4 |
%package lib
|
|
cvsextras |
47272f4 |
Summary: Dynamic libraries for the Clam Antivirus scanner
|
|
cvsextras |
47272f4 |
Group: System Environment/Libraries
|
|
cvsextras |
47272f4 |
Requires: data(clamav)
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%package devel
|
|
|
d657061 |
Summary: Header files and libraries for the Clam Antivirus scanner
|
|
cvsextras |
47272f4 |
Group: Development/Libraries
|
|
|
6151a28 |
Source100: clamd-gen
|
|
|
36c1bd4 |
Requires: clamav-lib = %version-%release
|
|
|
36c1bd4 |
Requires: clamav-filesystem = %version-%release
|
|
|
6151a28 |
Requires(pre): %_libdir/pkgconfig
|
|
|
93ac5ce |
Requires: pkgconfig
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%package data
|
|
|
d657061 |
Summary: Virus signature data for the Clam Antivirus scanner
|
|
cvsextras |
47272f4 |
Group: Applications/File
|
|
|
36c1bd4 |
Requires(pre): clamav-filesystem = %version-%release
|
|
|
36c1bd4 |
Requires(postun): clamav-filesystem = %version-%release
|
|
|
36c1bd4 |
Provides: data(clamav) = full
|
|
|
36c1bd4 |
Conflicts: data(clamav) < full
|
|
|
36c1bd4 |
Conflicts: data(clamav) > full
|
|
|
11ed44b |
%{?noarch}
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
%package data-empty
|
|
|
36c1bd4 |
Summary: Empty data package for the Clam Antivirus scanner
|
|
|
36c1bd4 |
Group: Applications/File
|
|
|
36c1bd4 |
Provides: data(clamav) = empty
|
|
|
36c1bd4 |
Conflicts: data(clamav) < empty
|
|
|
36c1bd4 |
Conflicts: data(clamav) > empty
|
|
|
11ed44b |
%{?noarch}
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%package update
|
|
|
d657061 |
Summary: Auto-updater for the Clam Antivirus scanner data-files
|
|
cvsextras |
47272f4 |
Group: Applications/File
|
|
|
3e396f9 |
Source200: freshclam-sleep
|
|
|
3e396f9 |
Source201: freshclam.sysconfig
|
|
|
3e396f9 |
Source202: clamav-update.cron
|
|
|
36c1bd4 |
Requires: clamav-filesystem = %version-%release
|
|
cvsextras |
47272f4 |
Requires(pre): /etc/cron.d
|
|
cvsextras |
47272f4 |
Requires(postun): /etc/cron.d
|
|
|
3e396f9 |
Requires(post): %__chown %__chmod
|
|
|
42e36a2 |
Requires(post): group(%username)
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%package server
|
|
|
d657061 |
Summary: Clam Antivirus scanner server
|
|
cvsextras |
47272f4 |
Group: System Environment/Daemons
|
|
cvsextras |
47272f4 |
Requires: data(clamav)
|
|
|
36c1bd4 |
Requires: clamav-filesystem = %version-%release
|
|
|
36c1bd4 |
Requires: clamav-lib = %version-%release
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%package server-sysvinit
|
|
|
cbeb9f1 |
Summary: SysV initscripts for clamav server
|
|
|
cbeb9f1 |
Group: System Environment/Daemons
|
|
|
cbeb9f1 |
Provides: init(clamav-server) = sysv
|
|
|
cbeb9f1 |
Requires: clamav-server = %version-%release
|
|
cvsextras |
47272f4 |
Requires(pre): %_initrddir
|
|
cvsextras |
47272f4 |
Requires(postun): %_initrddir
|
|
|
e939bcc |
Provides: clamav-server-sysv = %version-%release
|
|
|
e939bcc |
Obsoletes: clamav-server-sysv < %version-%release
|
|
|
11ed44b |
%{?noarch}
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
|
|
|
e939bcc |
%package scanner
|
|
|
e939bcc |
Summary: Clamav scanner daemon
|
|
|
e939bcc |
Group: System Environment/Daemons
|
|
|
e939bcc |
Requires: init(clamav-scanner)
|
|
|
7c8477d |
Provides: user(%scanuser) = 49
|
|
|
7c8477d |
Provides: group(%scanuser) = 49
|
|
|
e939bcc |
Requires: clamav-server = %version-%release
|
|
|
11ed44b |
%{?noarch}
|
|
|
e939bcc |
|
|
|
e939bcc |
%package scanner-sysvinit
|
|
|
e939bcc |
Summary: SysV initscripts for clamav scanner daemon
|
|
|
9ee1c30 |
Group: System Environment/Daemons
|
|
|
e939bcc |
Provides: init(clamav-scanner) = sysv
|
|
|
e939bcc |
Requires: clamav-server-sysvinit = %version-%release
|
|
|
e939bcc |
Requires: clamav-scanner = %version-%release
|
|
|
e939bcc |
Requires(pre): %_initrddir
|
|
|
e939bcc |
Requires(postun): %_initrddir initscripts
|
|
|
e939bcc |
Requires(post): chkconfig
|
|
|
e939bcc |
Requires(preun): chkconfig initscripts
|
|
|
11ed44b |
%{?noarch}
|
|
|
9ee1c30 |
|
|
|
e939bcc |
%package scanner-upstart
|
|
|
e939bcc |
Summary: Upstart initscripts for clamav scanner daemon
|
|
cvsextras |
47272f4 |
Group: System Environment/Daemons
|
|
|
e939bcc |
Source410: clamd.scan.upstart
|
|
|
e939bcc |
Provides: init(clamav-scanner) = upstart
|
|
|
e939bcc |
Requires: clamav-scanner = %version-%release
|
|
|
18c2da4 |
Requires(pre): /etc/init
|
|
|
e939bcc |
Requires(post): /usr/bin/killall
|
|
|
e939bcc |
Requires(postun): /sbin/initctl
|
|
|
11ed44b |
%{?noarch}
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
|
e939bcc |
%package milter
|
|
|
e939bcc |
Summary: Milter module for the Clam Antivirus scanner
|
|
|
e939bcc |
Group: System Environment/Daemons
|
|
|
e939bcc |
Source300: README.fedora
|
|
cvsextras |
47272f4 |
Requires: init(clamav-milter)
|
|
|
f294c9e |
BuildRequires: sendmail-devel
|
|
|
f294c9e |
BuildRequires: fedora-usermgmt-devel
|
|
|
e939bcc |
Provides: user(%milteruser) = 5
|
|
|
e939bcc |
Provides: group(%milteruser) = 5
|
|
|
cbeb9f1 |
Requires(post): coreutils
|
|
|
cbeb9f1 |
%{?FE_USERADD_REQ}
|
|
|
cbeb9f1 |
|
|
|
9ee1c30 |
Provides: milter(clamav) = sendmail
|
|
|
e939bcc |
Provides: milter(clamav) = postfix
|
|
|
9ee1c30 |
|
|
|
e939bcc |
Provides: clamav-milter-core = %version-%release
|
|
|
e939bcc |
Obsoletes: clamav-milter-core < %version-%release
|
|
|
e939bcc |
Provides: clamav-milter-sendmail = %version-%release
|
|
|
e939bcc |
Obsoletes: clamav-milter-sendmail < %version-%release
|
|
|
e939bcc |
|
|
|
e939bcc |
%package milter-sysvinit
|
|
|
cbeb9f1 |
Summary: SysV initscripts for the clamav sendmail-milter
|
|
|
cbeb9f1 |
Group: System Environment/Daemons
|
|
|
e939bcc |
Source320: clamav-milter.sysv
|
|
|
e939bcc |
Provides: init(clamav-milter) = sysvinit
|
|
|
e939bcc |
Requires: clamav-milter = %version-%release
|
|
|
cbeb9f1 |
Requires(post): user(%milteruser) clamav-milter
|
|
|
cbeb9f1 |
Requires(preun): user(%milteruser) clamav-milter
|
|
cvsextras |
47272f4 |
Requires(pre): %_initrddir
|
|
|
9a13698 |
Requires(postun): %_initrddir initscripts
|
|
|
cbeb9f1 |
Requires(post): chkconfig
|
|
|
9a13698 |
Requires(preun): chkconfig initscripts
|
|
|
0b8f60e |
Provides: clamav-milter-sysv = %version-%release
|
|
|
0b8f60e |
Obsoletes: clamav-milter-sysv < %version-%release
|
|
|
11ed44b |
%{?noarch}
|
|
|
e939bcc |
|
|
|
e939bcc |
%package milter-upstart
|
|
|
e939bcc |
Summary: Upstart initscripts for the clamav sendmail-milter
|
|
|
e939bcc |
Group: System Environment/Daemons
|
|
|
e939bcc |
Source310: clamav-milter.upstart
|
|
|
e939bcc |
Provides: init(clamav-milter) = upstart
|
|
|
e939bcc |
Requires: clamav-milter = %version-%release
|
|
|
18c2da4 |
Requires(pre): /etc/init
|
|
|
e939bcc |
Requires(post): /usr/bin/killall
|
|
|
e939bcc |
Requires(postun): /sbin/initctl
|
|
|
11ed44b |
%{?noarch}
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%description
|
|
cvsextras |
47272f4 |
Clam AntiVirus is an anti-virus toolkit for UNIX. The main purpose of this
|
|
cvsextras |
47272f4 |
software is the integration with mail servers (attachment scanning). The
|
|
cvsextras |
47272f4 |
package provides a flexible and scalable multi-threaded daemon, a command
|
|
cvsextras |
47272f4 |
line scanner, and a tool for automatic updating via Internet. The programs
|
|
cvsextras |
47272f4 |
are based on a shared library distributed with the Clam AntiVirus package,
|
|
cvsextras |
47272f4 |
which you can use with your own software. The virus database is based on
|
|
cvsextras |
47272f4 |
the virus database from OpenAntiVirus, but contains additional signatures
|
|
cvsextras |
47272f4 |
(including signatures for popular polymorphic viruses, too) and is KEPT UP
|
|
cvsextras |
47272f4 |
TO DATE.
|
|
cvsextras |
47272f4 |
|
|
|
36c1bd4 |
%description filesystem
|
|
|
36c1bd4 |
This package provides the filesystem structure and contains the
|
|
|
36c1bd4 |
user-creation scripts required by clamav.
|
|
|
6151a28 |
|
|
cvsextras |
47272f4 |
%description lib
|
|
cvsextras |
47272f4 |
This package contains dynamic libraries shared between applications
|
|
cvsextras |
47272f4 |
using the Clam Antivirus scanner.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%description devel
|
|
cvsextras |
47272f4 |
This package contains headerfiles and libraries which are needed to
|
|
cvsextras |
47272f4 |
build applications using clamav.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%description data
|
|
cvsextras |
47272f4 |
This package contains the virus-database needed by clamav. This
|
|
cvsextras |
47272f4 |
database should be updated regularly; the 'clamav-update' package
|
|
|
36c1bd4 |
ships a corresponding cron-job. This package and the
|
|
|
36c1bd4 |
'clamav-data-empty' package are mutually exclusive.
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
Use -data when you want a working (but perhaps outdated) virus scanner
|
|
|
36c1bd4 |
immediately after package installation.
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
Use -data-empty when you are updating the virus database regulary and
|
|
|
36c1bd4 |
do not want to download a >5MB sized rpm-package with outdated virus
|
|
|
36c1bd4 |
definitions.
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
%description data-empty
|
|
|
36c1bd4 |
This is an empty package to fulfill inter-package dependencies of the
|
|
|
36c1bd4 |
clamav suite. This package and the 'clamav-data' package are mutually
|
|
|
36c1bd4 |
exclusive.
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
Use -data when you want a working (but perhaps outdated) virus scanner
|
|
|
36c1bd4 |
immediately after package installation.
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
Use -data-empty when you are updating the virus database regulary and
|
|
|
36c1bd4 |
do not want to download a >5MB sized rpm-package with outdated virus
|
|
|
36c1bd4 |
definitions.
|
|
|
36c1bd4 |
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%description update
|
|
cvsextras |
47272f4 |
This package contains programs which can be used to update the clamav
|
|
cvsextras |
47272f4 |
anti-virus database automatically. It uses the freshclam(1) utility for
|
|
|
6151a28 |
this task. To activate it, uncomment the entry in /etc/cron.d/clamav-update.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%description server
|
|
cvsextras |
47272f4 |
ATTENTION: most users do not need this package; the main package has
|
|
cvsextras |
47272f4 |
everything (or depends on it) which is needed to scan for virii on
|
|
cvsextras |
47272f4 |
workstations.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
This package contains files which are needed to execute the clamd-daemon.
|
|
cvsextras |
47272f4 |
This daemon does not provide a system-wide service. Instead of, an instance
|
|
cvsextras |
47272f4 |
of this daemon should be started for each service requiring it.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
See the README file how this can be done with a minimum of effort.
|
|
cvsextras |
47272f4 |
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%description server-sysvinit
|
|
|
cbeb9f1 |
SysV initscripts template for the clamav server
|
|
|
cbeb9f1 |
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%description scanner
|
|
|
e939bcc |
This package contains a generic system wide clamd service which is
|
|
|
e939bcc |
e.g. used by the clamav-milter package.
|
|
|
e939bcc |
|
|
|
e939bcc |
%description scanner-sysvinit
|
|
|
e939bcc |
The SysV initscripts for clamav-scanner.
|
|
|
e939bcc |
|
|
|
e939bcc |
%description scanner-upstart
|
|
|
e939bcc |
The Upstart initscripts for clamav-scanner.
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
cvsextras |
47272f4 |
%description milter
|
|
|
93ac5ce |
This package contains files which are needed to run the clamav-milter.
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%description milter-sysvinit
|
|
|
cbeb9f1 |
The SysV initscripts for clamav-milter.
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%description milter-upstart
|
|
|
e939bcc |
The Upstart initscripts for clamav-milter.
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## ------------------------------------------------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%prep
|
|
|
c5e4682 |
%setup -q -n %{name}-%{version}%{?snapshot}
|
|
|
a4a6d25 |
|
|
|
5a59f06 |
%apply -n24 -p1 -b .private
|
|
|
5a59f06 |
%apply -n25 -p1 -b .open
|
|
|
5a59f06 |
%apply -n26 -p1 -b .cliopts
|
|
|
5a59f06 |
%apply -n27 -p1 -b .umask
|
|
|
93ac5ce |
|
|
|
93ac5ce |
install -p -m0644 %SOURCE300 clamav-milter/
|
|
|
93ac5ce |
|
|
|
9ee1c30 |
mkdir -p libclamunrar{,_iface}
|
|
|
240e0e1 |
%{!?with_unrar:touch libclamunrar/{Makefile.in,all,install}}
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
sed -ri \
|
|
|
3ec0300 |
-e 's!^#?(LogFile ).*!#\1/var/log/clamd.<SERVICE>!g' \
|
|
|
3ec0300 |
-e 's!^#?(LocalSocket ).*!#\1/var/run/clamd.<SERVICE>/clamd.sock!g' \
|
|
|
e939bcc |
-e 's!^(#?PidFile ).*!\1/var/run/clamd.<SERVICE>/clamd.pid!g' \
|
|
|
e939bcc |
-e 's!^#?(User ).*!\1<USER>!g' \
|
|
|
e939bcc |
-e 's!^#?(AllowSupplementaryGroups|LogSyslog).*!\1 yes!g' \
|
|
|
e939bcc |
-e 's! /usr/local/share/clamav,! %homedir,!g' \
|
|
|
e939bcc |
etc/clamd.conf
|
|
cvsextras |
47272f4 |
|
|
|
3ec0300 |
sed -ri \
|
|
|
3ec0300 |
-e 's!^#?(UpdateLogFile )!#\1!g;' \
|
|
|
3ec0300 |
-e 's!^#?(LogSyslog).*!\1 yes!g' \
|
|
|
3ec0300 |
-e 's!(DatabaseOwner *)clamav$!\1%username!g' etc/freshclam.conf
|
|
cvsextras |
47272f4 |
|
|
|
9a13698 |
|
|
cvsextras |
47272f4 |
## ------------------------------------------------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%build
|
|
|
05a209e |
CFLAGS="$RPM_OPT_FLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -std=gnu99"
|
|
|
8aa983a |
export LDFLAGS='-Wl,--as-needed'
|
|
|
8aa983a |
# HACK: remove me, when configure uses $LIBS instead of $LDFLAGS for milter check
|
|
|
8aa983a |
export LIBS='-lmilter -lpthread'
|
|
|
0e899af |
# IPv6 check is buggy and does not work when there are no IPv6 interface on build machine
|
|
|
0e899af |
export have_cv_ipv6=yes
|
|
|
93ac5ce |
%configure --disable-clamav --with-dbdir=/var/lib/clamav \
|
|
|
95227b8 |
--disable-silent-rules \
|
|
|
985d8cb |
--enable-milter --disable-static \
|
|
|
c5e4682 |
--disable-rpath \
|
|
|
42e36a2 |
--with-user=%username \
|
|
|
42e36a2 |
--with-group=%username \
|
|
|
93ac5ce |
%{!?with_unrar:--disable-unrar}
|
|
|
93ac5ce |
|
|
|
42e36a2 |
# TODO: check periodically that CLAMAVUSER is used for freshclam only
|
|
|
42e36a2 |
|
|
|
42e36a2 |
|
|
|
93ac5ce |
# build with --as-needed and disable rpath
|
|
|
93ac5ce |
sed -i \
|
|
|
11ed44b |
-e 's! -shared ! -Wl,--as-needed\0!g' \
|
|
|
c5e4682 |
-e '/sys_lib_dlsearch_path_spec=\"\/lib \/usr\/lib /s!\"\/lib \/usr\/lib !/\"/%_lib /usr/%_lib !g' \
|
|
|
93ac5ce |
libtool
|
|
|
6a05c58 |
|
|
cvsextras |
47272f4 |
|
|
|
f294c9e |
make %{?_smp_mflags}
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## ------------------------------------------------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%install
|
|
cvsextras |
47272f4 |
rm -rf "$RPM_BUILD_ROOT" _doc*
|
|
|
f294c9e |
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
cvsextras |
47272f4 |
|
|
|
3e396f9 |
function smartsubst() {
|
|
|
3e396f9 |
local tmp
|
|
|
3e396f9 |
local regexp=$1
|
|
|
3e396f9 |
shift
|
|
|
3e396f9 |
|
|
|
3e396f9 |
tmp=$(mktemp /tmp/%name-subst.XXXXXX)
|
|
|
3e396f9 |
for i; do
|
|
|
3e396f9 |
sed -e "$regexp" "$i" >$tmp
|
|
|
3e396f9 |
cmp -s $tmp "$i" || cat $tmp >"$i"
|
|
|
3e396f9 |
rm -f $tmp
|
|
|
3e396f9 |
done
|
|
|
3e396f9 |
}
|
|
|
3e396f9 |
|
|
|
3e396f9 |
|
|
|
f294c9e |
install -d -m755 \
|
|
|
18c2da4 |
${RPM_BUILD_ROOT}%_sysconfdir/{mail,clamd.d,cron.d,logrotate.d,sysconfig,init} \
|
|
|
f294c9e |
${RPM_BUILD_ROOT}%_var/log \
|
|
|
6151a28 |
${RPM_BUILD_ROOT}%milterstatedir \
|
|
|
6151a28 |
${RPM_BUILD_ROOT}%pkgdatadir/template \
|
|
|
36c1bd4 |
${RPM_BUILD_ROOT}%_initrddir \
|
|
|
e939bcc |
${RPM_BUILD_ROOT}%homedir \
|
|
|
e939bcc |
${RPM_BUILD_ROOT}%scanstatedir
|
|
cvsextras |
47272f4 |
|
|
|
f294c9e |
rm -f ${RPM_BUILD_ROOT}%_sysconfdir/clamd.conf \
|
|
|
f294c9e |
${RPM_BUILD_ROOT}%_libdir/*.la
|
|
|
6151a28 |
|
|
|
93ac5ce |
|
|
|
3807829 |
touch ${RPM_BUILD_ROOT}%homedir/daily.cld
|
|
|
3807829 |
touch ${RPM_BUILD_ROOT}%homedir/main.cld
|
|
|
93ac5ce |
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## prepare the server-files
|
|
cvsextras |
47272f4 |
mkdir _doc_server
|
|
|
f294c9e |
install -m644 -p %SOURCE2 _doc_server/clamd.sysconfig
|
|
|
f294c9e |
install -m644 -p %SOURCE3 _doc_server/clamd.logrotate
|
|
|
f294c9e |
install -m755 -p %SOURCE7 _doc_server/clamd.init
|
|
|
11ed44b |
install -m644 -p %SOURCE5 _doc_server/README
|
|
|
f294c9e |
install -m644 -p etc/clamd.conf _doc_server/clamd.conf
|
|
|
6151a28 |
|
|
|
11ed44b |
install -m644 -p %SOURCE1 $RPM_BUILD_ROOT%pkgdatadir
|
|
|
f294c9e |
install -m755 -p %SOURCE100 $RPM_BUILD_ROOT%pkgdatadir
|
|
|
f294c9e |
cp -pa _doc_server/* $RPM_BUILD_ROOT%pkgdatadir/template
|
|
|
f294c9e |
ln -s %pkgdatadir/clamd-wrapper $RPM_BUILD_ROOT%_initrddir/clamd-wrapper
|
|
|
6151a28 |
|
|
|
3e396f9 |
smartsubst 's!/usr/share/clamav!%pkgdatadir!g' $RPM_BUILD_ROOT%pkgdatadir/clamd-wrapper
|
|
|
6151a28 |
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## prepare the update-files
|
|
|
f294c9e |
install -m644 -p %SOURCE6 ${RPM_BUILD_ROOT}%_sysconfdir/logrotate.d/clamav-update
|
|
|
f294c9e |
install -m755 -p %SOURCE8 ${RPM_BUILD_ROOT}%_sbindir/clamav-notify-servers
|
|
|
f294c9e |
touch ${RPM_BUILD_ROOT}%freshclamlog
|
|
cvsextras |
47272f4 |
|
|
|
f294c9e |
install -p -m0755 %SOURCE200 $RPM_BUILD_ROOT%pkgdatadir/freshclam-sleep
|
|
|
f294c9e |
install -p -m0644 %SOURCE201 $RPM_BUILD_ROOT%_sysconfdir/sysconfig/freshclam
|
|
|
f294c9e |
install -p -m0600 %SOURCE202 $RPM_BUILD_ROOT%_sysconfdir/cron.d/clamav-update
|
|
|
6151a28 |
|
|
|
3e396f9 |
smartsubst 's!webmaster,clamav!webmaster,%username!g;
|
|
|
3e396f9 |
s!/usr/share/clamav!%pkgdatadir!g;
|
|
|
3e396f9 |
s!/usr/bin!%_bindir!g;
|
|
|
3e396f9 |
s!/usr/sbin!%_sbindir!g;' \
|
|
|
3e396f9 |
$RPM_BUILD_ROOT%_sysconfdir/cron.d/clamav-update \
|
|
|
3e396f9 |
$RPM_BUILD_ROOT%pkgdatadir/freshclam-sleep
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
### The scanner stuff
|
|
|
e939bcc |
sed -e 's!<SERVICE>!scan!g;s!<USER>!%scanuser!g' \
|
|
|
c7190e4 |
etc/clamd.conf > $RPM_BUILD_ROOT%_sysconfdir/clamd.d/scan.conf
|
|
|
e939bcc |
|
|
|
e939bcc |
sed -e 's!<SERVICE>!scan!g;' $RPM_BUILD_ROOT%pkgdatadir/template/clamd.init \
|
|
|
e939bcc |
> $RPM_BUILD_ROOT%_initrddir/clamd.scan
|
|
|
e939bcc |
|
|
|
18c2da4 |
install -p -m 644 %SOURCE410 $RPM_BUILD_ROOT%_sysconfdir/init/clamd.scan.conf
|
|
|
e939bcc |
|
|
|
e939bcc |
touch $RPM_BUILD_ROOT%scanstatedir/clamd.sock
|
|
cvsextras |
47272f4 |
|
|
|
3e396f9 |
|
|
|
e939bcc |
### The milter stuff
|
|
|
e939bcc |
sed -r \
|
|
|
e939bcc |
-e 's!^#?(User).*!\1 %milteruser!g' \
|
|
|
e939bcc |
-e 's!^#?(AllowSupplementaryGroups|LogSyslog) .*!\1 yes!g' \
|
|
|
e939bcc |
-e 's! /tmp/clamav-milter.socket! %milterstatedir/clamav-milter.socket!g' \
|
|
|
e939bcc |
-e 's! /var/run/clamav-milter.pid! %milterstatedir/clamav-milter.pid!g' \
|
|
|
e939bcc |
-e 's! /tmp/clamav-milter.log! %milterlog!g' \
|
|
|
e939bcc |
etc/clamav-milter.conf > $RPM_BUILD_ROOT%_sysconfdir/mail/clamav-milter.conf
|
|
cvsextras |
47272f4 |
|
|
|
18c2da4 |
install -p -m 644 %SOURCE310 $RPM_BUILD_ROOT%_sysconfdir/init/clamav-milter.conf
|
|
|
e939bcc |
install -p -m 755 %SOURCE320 $RPM_BUILD_ROOT%_initrddir/clamav-milter
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
rm -f $RPM_BUILD_ROOT%_sysconfdir/clamav-milter.conf
|
|
|
e939bcc |
touch $RPM_BUILD_ROOT{%milterstatedir/clamav-milter.socket,%milterlog}
|
|
|
6151a28 |
|
|
|
18c2da4 |
%{!?with_upstart:rm -rf $RPM_BUILD_ROOT%_sysconfdir/init}
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## ------------------------------------------------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%clean
|
|
cvsextras |
47272f4 |
rm -rf "$RPM_BUILD_ROOT"
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## ------------------------------------------------------------
|
|
cvsextras |
47272f4 |
|
|
|
3ec0300 |
%triggerprein filesystem -- clamav-filesystem < 0.96
|
|
|
42e36a2 |
## REMOVE me in F14 or F15 (added in pre F12)
|
|
|
11ed44b |
! /usr/bin/id clamav &>/dev/null || /usr/bin/id %username &>/dev/null || {
|
|
|
42e36a2 |
/usr/sbin/usermod -l %username clamav || :
|
|
|
42e36a2 |
/usr/sbin/groupmod -n %username clamav || :
|
|
|
42e36a2 |
logger -t rpm/clamav "Renamed clamav user+group to %username" || :
|
|
|
42e36a2 |
}
|
|
|
42e36a2 |
|
|
|
36c1bd4 |
%pre filesystem
|
|
|
f294c9e |
%__fe_groupadd 4 -r %username &>/dev/null || :
|
|
|
f294c9e |
%__fe_useradd 4 -r -s /sbin/nologin -d %homedir -M \
|
|
|
f294c9e |
-c 'Clamav database update user' -g %username %username &>/dev/null || :
|
|
cvsextras |
47272f4 |
|
|
|
36c1bd4 |
%postun filesystem
|
|
|
36c1bd4 |
%__fe_userdel %username &>/dev/null || :
|
|
|
36c1bd4 |
%__fe_groupdel %username &>/dev/null || :
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
|
|
|
e939bcc |
%pre scanner
|
|
|
e939bcc |
%__fe_groupadd 49 -r %scanuser &>/dev/null || :
|
|
|
e939bcc |
%__fe_useradd 49 -r -s /sbin/nologin -d / -M \
|
|
|
e939bcc |
-g %scanuser %scanuser &>/dev/null || :
|
|
|
e939bcc |
|
|
|
e939bcc |
%postun scanner
|
|
|
e939bcc |
%__fe_userdel %scanuser &>/dev/null || :
|
|
|
e939bcc |
%__fe_groupdel %scanuser &>/dev/null || :
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
|
e939bcc |
%post scanner-sysvinit
|
|
|
e939bcc |
/sbin/chkconfig --add clamd.scan
|
|
|
e939bcc |
|
|
|
e939bcc |
%preun scanner-sysvinit
|
|
|
e939bcc |
test "$1" != 0 || %_initrddir/clamd.scan stop &>/dev/null || :
|
|
|
e939bcc |
test "$1" != 0 || /sbin/chkconfig --del clamd.scan
|
|
|
e939bcc |
|
|
|
e939bcc |
%postun scanner-sysvinit
|
|
|
e939bcc |
test "$1" = 0 || %_initrddir/clamd.scan condrestart >/dev/null || :
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
|
e939bcc |
%post scanner-upstart
|
|
|
e939bcc |
/usr/bin/killall -u %scanuser clamd 2>/dev/null || :
|
|
|
e939bcc |
|
|
|
e939bcc |
%preun scanner-upstart
|
|
|
e939bcc |
test "$1" != "0" || /sbin/initctl -q stop clamd.scan || :
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
cvsextras |
47272f4 |
%post update
|
|
|
f294c9e |
test -e %freshclamlog || {
|
|
|
f294c9e |
touch %freshclamlog
|
|
|
f294c9e |
%__chmod 0664 %freshclamlog
|
|
|
f294c9e |
%__chown root:%username %freshclamlog
|
|
cvsextras |
47272f4 |
}
|
|
cvsextras |
47272f4 |
|
|
|
42e36a2 |
|
|
|
42e36a2 |
%triggerin milter -- clamav-scanner
|
|
|
42e36a2 |
# Add the milteruser to the scanuser group; this is required when
|
|
|
42e36a2 |
# milter and clamd communicate through local sockets
|
|
|
42e36a2 |
/usr/sbin/usermod -a -G %scanuser %milteruser &>/dev/null || :
|
|
|
42e36a2 |
|
|
|
e939bcc |
%pre milter
|
|
|
f294c9e |
%__fe_groupadd 5 -r %milteruser &>/dev/null || :
|
|
|
f294c9e |
%__fe_useradd 5 -r -s /sbin/nologin -d %milterstatedir -M \
|
|
|
f294c9e |
-c 'Clamav Milter User' -g %milteruser %milteruser &>/dev/null || :
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%post milter
|
|
|
9a13698 |
test -e %milterlog || {
|
|
|
9a13698 |
touch %milterlog
|
|
|
9a13698 |
chmod 0620 %milterlog
|
|
|
9a13698 |
chown root:%milteruser %milterlog
|
|
|
9a13698 |
}
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%postun milter
|
|
|
f294c9e |
%__fe_userdel %milteruser &>/dev/null || :
|
|
|
f294c9e |
%__fe_groupdel %milteruser &>/dev/null || :
|
|
|
cbeb9f1 |
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%post milter-sysvinit
|
|
|
cbeb9f1 |
/sbin/chkconfig --add clamav-milter
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%preun milter-sysvinit
|
|
|
cbeb9f1 |
test "$1" != 0 || %_initrddir/clamav-milter stop &>/dev/null || :
|
|
|
cbeb9f1 |
test "$1" != 0 || /sbin/chkconfig --del clamav-milter
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%postun milter-sysvinit
|
|
|
f294c9e |
test "$1" = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%post milter-upstart
|
|
|
e939bcc |
/usr/bin/killall -u %milteruser clamav-milter 2>/dev/null || :
|
|
|
e939bcc |
|
|
|
e939bcc |
%preun milter-upstart
|
|
|
e939bcc |
test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
|
|
|
e939bcc |
|
|
|
e939bcc |
|
|
cvsextras |
47272f4 |
%post lib -p /sbin/ldconfig
|
|
cvsextras |
47272f4 |
%postun lib -p /sbin/ldconfig
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%files
|
|
cvsextras |
47272f4 |
%defattr(-,root,root,-)
|
|
|
00f644c |
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README UPGRADE
|
|
cvsextras |
47272f4 |
%doc docs/*.pdf
|
|
|
f294c9e |
%_bindir/*
|
|
|
e99b953 |
%_mandir/man[15]/*
|
|
|
6151a28 |
%exclude %_bindir/clamav-config
|
|
cvsextras |
47272f4 |
%exclude %_bindir/freshclam
|
|
|
ecfc3db |
%exclude %_mandir/*/freshclam*
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%files lib
|
|
cvsextras |
47272f4 |
%defattr(-,root,root,-)
|
|
|
f294c9e |
%_libdir/*.so.*
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%files devel
|
|
cvsextras |
47272f4 |
%defattr(-,root,root,-)
|
|
|
f294c9e |
%_includedir/*
|
|
|
f294c9e |
%_libdir/*.so
|
|
|
6151a28 |
%pkgdatadir/template
|
|
|
6151a28 |
%pkgdatadir/clamd-gen
|
|
|
6151a28 |
%_libdir/pkgconfig/*
|
|
|
6151a28 |
%_bindir/clamav-config
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
|
36c1bd4 |
%files filesystem
|
|
|
36c1bd4 |
%attr(-,%username,%username) %dir %homedir
|
|
|
36c1bd4 |
%attr(-,root,root) %dir %pkgdatadir
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
## -----------------------
|
|
|
36c1bd4 |
|
|
cvsextras |
47272f4 |
%files data
|
|
|
f294c9e |
%defattr(-,%username,%username,-)
|
|
|
6151a28 |
# use %%config to keep files which were updated by 'freshclam'
|
|
|
6151a28 |
# already. Without this tag, they would be overridden with older
|
|
|
6151a28 |
# versions whenever a new -data package is installed.
|
|
|
f294c9e |
%config %verify(not size md5 mtime) %homedir/*.cvd
|
|
cvsextras |
47272f4 |
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
%files data-empty
|
|
|
36c1bd4 |
%defattr(-,%username,%username,-)
|
|
|
3807829 |
%ghost %attr(0664,%username,%username) %homedir/*.cvd
|
|
|
3807829 |
|
|
|
36c1bd4 |
|
|
cvsextras |
47272f4 |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%files update
|
|
cvsextras |
47272f4 |
%defattr(-,root,root,-)
|
|
cvsextras |
47272f4 |
%_bindir/freshclam
|
|
|
ecfc3db |
%_mandir/*/freshclam*
|
|
|
3e396f9 |
%pkgdatadir/freshclam-sleep
|
|
|
3e396f9 |
%config(noreplace) %verify(not mtime) %_sysconfdir/freshclam.conf
|
|
|
3e396f9 |
%config(noreplace) %verify(not mtime) %_sysconfdir/logrotate.d/*
|
|
|
3e396f9 |
%config(noreplace) %_sysconfdir/cron.d/*
|
|
|
3e396f9 |
%config(noreplace) %_sysconfdir/sysconfig/freshclam
|
|
cvsextras |
47272f4 |
|
|
|
f294c9e |
%ghost %attr(0664,root,%username) %verify(not size md5 mtime) %freshclamlog
|
|
|
3807829 |
%ghost %attr(0664,%username,%username) %homedir/*.cld
|
|
|
36c1bd4 |
|
|
|
36c1bd4 |
|
|
cvsextras |
47272f4 |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%files server
|
|
cvsextras |
47272f4 |
%defattr(-,root,root,-)
|
|
cvsextras |
47272f4 |
%doc _doc_server/*
|
|
|
8c82b2e |
%_mandir/man[58]/clamd*
|
|
|
f294c9e |
%_sbindir/*
|
|
|
6151a28 |
%pkgdatadir/clamd-wrapper
|
|
|
cbeb9f1 |
%dir %_sysconfdir/clamd.d
|
|
cvsextras |
47272f4 |
|
|
cvsextras |
47272f4 |
%exclude %_sbindir/*milter*
|
|
cvsextras |
47272f4 |
%exclude %_mandir/man8/clamav-milter*
|
|
cvsextras |
47272f4 |
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%files server-sysvinit
|
|
|
cbeb9f1 |
%defattr(-,root,root,-)
|
|
|
cbeb9f1 |
%_initrddir/clamd-wrapper
|
|
|
cbeb9f1 |
|
|
|
cbeb9f1 |
|
|
cvsextras |
47272f4 |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%files scanner
|
|
cvsextras |
47272f4 |
%defattr(-,root,root,-)
|
|
|
e939bcc |
%dir %attr(0710,%scanuser,%scanuser) %scanstatedir
|
|
|
c7190e4 |
%config(noreplace) %_sysconfdir/clamd.d/scan.conf
|
|
|
e939bcc |
%ghost %scanstatedir/clamd.sock
|
|
|
9ee1c30 |
|
|
|
e939bcc |
%files scanner-sysvinit
|
|
|
e939bcc |
%attr(0755,root,root) %config %_initrddir/clamd.scan
|
|
|
e939bcc |
|
|
|
0b8f60e |
%if 0%{?with_upstart:1}
|
|
|
e939bcc |
%files scanner-upstart
|
|
|
9ee1c30 |
%defattr(-,root,root,-)
|
|
|
18c2da4 |
%config(noreplace) %_sysconfdir/init/clamd.scan*
|
|
|
0b8f60e |
%endif
|
|
|
e939bcc |
|
|
|
e939bcc |
## -----------------------
|
|
cvsextras |
47272f4 |
|
|
|
e939bcc |
%files milter
|
|
|
9ee1c30 |
%defattr(-,root,root,-)
|
|
|
9ee1c30 |
%doc clamav-milter/README.fedora
|
|
|
e939bcc |
%_sbindir/*milter*
|
|
|
e939bcc |
%_mandir/man8/clamav-milter*
|
|
|
e939bcc |
%config(noreplace) %_sysconfdir/mail/clamav-milter.conf
|
|
|
e939bcc |
%ghost %attr(0620,root,%milteruser) %verify(not size md5 mtime) %milterlog
|
|
|
e939bcc |
%attr(0710,%milteruser,%milteruser) %dir %milterstatedir
|
|
|
9ee1c30 |
%ghost %milterstatedir/*
|
|
|
cbeb9f1 |
|
|
|
e939bcc |
%files milter-sysvinit
|
|
|
cbeb9f1 |
%defattr(-,root,root,-)
|
|
|
cbeb9f1 |
%config %_initrddir/clamav-milter
|
|
|
e939bcc |
|
|
|
0b8f60e |
%if 0%{?with_upstart:1}
|
|
|
e939bcc |
%files milter-upstart
|
|
|
e939bcc |
%defattr(-,root,root,-)
|
|
|
18c2da4 |
%config(noreplace) %_sysconfdir/init/clamav-milter*
|
|
|
0b8f60e |
%endif
|
|
|
cbeb9f1 |
|
|
|
cbeb9f1 |
|
|
cvsextras |
47272f4 |
%changelog
|
|
|
95227b8 |
* Thu Mar 11 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.96-1400.rc1
|
|
|
95227b8 |
- updated to 0.96rc1
|
|
|
95227b8 |
- added some BRs
|
|
|
95227b8 |
|
|
|
18c2da4 |
* Sun Dec 6 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.3-1301
|
|
|
18c2da4 |
- updated -upstart to upstart 0.6.3
|
|
|
18c2da4 |
|
|
|
5a59f06 |
* Sat Nov 21 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
|
5a59f06 |
- adjusted chkconfig positions for clamav-milter (#530101)
|
|
|
5a59f06 |
- use %%apply instead of %%patch
|
|
|
5a59f06 |
|
|
|
e0ec3ff |
* Thu Oct 29 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.3-1300
|
|
|
e0ec3ff |
- updated to 0.95.3
|
|
|
e0ec3ff |
|
|
|
11ed44b |
* Sun Sep 13 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
|
|
|
11ed44b |
- conditionalized build of noarch subpackages to ease packaging under RHEL5
|
|
|
11ed44b |
|
|
|
3ec0300 |
* Sun Aug 9 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-5
|
|
|
3ec0300 |
- modified freshclam configuration to log by syslog by default
|
|
|
3ec0300 |
- disabled LocalSocket option in sample configuration
|
|
|
3ec0300 |
- fixed clamav-milter sysv initscript to use bash interpreter and to
|
|
|
3ec0300 |
be disabled by default
|
|
|
3ec0300 |
|
|
|
42e36a2 |
* Sat Aug 8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-4
|
|
|
42e36a2 |
- renamed 'clamav' user/group to 'clamupdate'
|
|
|
42e36a2 |
- add the '%milteruser' user to the '%scanuser' group when the -scanner
|
|
|
42e36a2 |
subpackage is installed
|
|
|
42e36a2 |
|
|
|
44d2450 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95.2-2
|
|
|
44d2450 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
44d2450 |
|
|
|
f3f7462 |
* Thu Jun 11 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-1
|
|
|
f3f7462 |
- updated to 0.95.2
|
|
|
f3f7462 |
|
|
|
d41bb54 |
* Sun Apr 19 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.1-3
|
|
|
d41bb54 |
- fixed '--without upstart' operation
|
|
|
d41bb54 |
|
|
|
0b8f60e |
* Wed Apr 15 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.1-2
|
|
|
0b8f60e |
- added '%%bcond_without upstart' conditional to ease skipping of
|
|
|
0b8f60e |
-upstart subpackage creation e.g. on EL5 systems
|
|
|
0b8f60e |
- fixed Provides/Obsoletes: typo in -milter-sysvinit subpackage which
|
|
|
0b8f60e |
broke update path
|
|
|
0b8f60e |
|
|
|
4939cbd |
* Fri Apr 10 2009 Robert Scheck <robert@fedoraproject.org> - 0.95.1-1
|
|
|
4939cbd |
- Upgrade to 0.95.1 (#495039)
|
|
|
4939cbd |
|
|
|
0e899af |
* Wed Mar 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95-1
|
|
|
0e899af |
- updated to final 0.95
|
|
|
0e899af |
- added ncurses-devel (-> clamdtop) BR
|
|
|
0e899af |
- enforced IPv6 support
|
|
|
0e899af |
|
|
|
e939bcc |
* Sun Mar 8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95-0.1.rc1
|
|
|
e939bcc |
- updated to 0.95rc1
|
|
|
e939bcc |
- added -upstart subpackages
|
|
|
e939bcc |
- renamed -sysv to -sysvinit to make -upstart win the default dep resolving
|
|
|
e939bcc |
- reworked complete milter stuff
|
|
|
e939bcc |
- added -scanner subpackage which contains a preconfigured daemon
|
|
|
e939bcc |
(e.g. for use by -milter)
|
|
|
e939bcc |
- moved %%changelog entries from 2006 and before into ChangeLog-rpm.old
|
|
|
e939bcc |
|
|
|
6e801b5 |
* Wed Feb 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.94.2-3
|
|
|
6e801b5 |
- made some subpackages noarch
|
|
|
6e801b5 |
- fixed typo in SysV initscript which removes 'touch' file (#473513)
|
|
|
6e801b5 |
|
|
|
b373eea |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.94.2-2
|
|
|
b373eea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b373eea |
|
|
|
8350726 |
* Tue Dec 02 2008 Robert Scheck <robert@fedoraproject.org> - 0.94.2-1
|
|
|
8350726 |
- Upgrade to 0.94.2 (#474002)
|
|
|
8350726 |
|
|
|
703e6bd |
* Wed Nov 05 2008 Robert Scheck <robert@fedoraproject.org> - 0.94.1-1
|
|
|
703e6bd |
- Upgrade to 0.94.1
|
|
|
703e6bd |
|
|
|
57e0f31 |
* Sun Oct 26 2008 Robert Scheck <robert@fedoraproject.org> - 0.94-1
|
|
|
57e0f31 |
- Upgrade to 0.94 (SECURITY), fixes #461461:
|
|
|
57e0f31 |
- CVE-2008-1389 Invalid memory access in the CHM unpacker
|
|
|
57e0f31 |
- CVE-2008-3912 Out-of-memory NULL pointer dereference in mbox/msg
|
|
|
57e0f31 |
- CVE-2008-3913 Memory leak in code path in freshclam's manager.c
|
|
|
57e0f31 |
- CVE-2008-3914 Multiple file descriptor leaks on the code paths
|
|
|
57e0f31 |
|
|
|
4732e9c |
* Sun Jul 13 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93.3-1
|
|
|
4732e9c |
- updated to 0.93.3; another fix for CVE-2008-2713 (out-of-bounds read
|
|
|
4732e9c |
on petite files)
|
|
|
4732e9c |
- put pid instead of pgrp into pidfile of clamav-milter (bz #452359)
|
|
|
f906263 |
- rediffed patches
|
|
|
4732e9c |
|
|
|
01e19b3 |
* Tue Jun 17 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93.1-1
|
|
|
01e19b3 |
- updated to 0.93.1
|
|
|
01e19b3 |
- rediffed -path patch
|
|
|
01e19b3 |
- CVE-2008-2713 Invalid Memory Access Denial Of Service Vulnerability
|
|
|
01e19b3 |
|
|
|
3807829 |
* Mon Apr 14 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-1
|
|
|
3807829 |
- updated to final 0.93
|
|
|
3807829 |
- removed daily.inc + main.inc directories; they are now replaced by
|
|
|
3807829 |
*.cld containers
|
|
|
3807829 |
- trimmed down MAILTO list of cronjob to 'root' again; every well
|
|
|
3807829 |
configured system has an alias for this recipient
|
|
|
3807829 |
|
|
|
196290c |
* Wed Mar 12 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-0.1.rc1
|
|
|
887e341 |
- moved -milter scriptlets into -milter-core subpackage
|
|
|
887e341 |
- added a requirement on the milteruser to the -milter-sendmail
|
|
|
887e341 |
subpackage (reported by Bruce Jerrick)
|
|
|
887e341 |
|
|
|
c5e4682 |
* Tue Mar 4 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.93-0.0.rc1
|
|
|
c5e4682 |
- updated to 0.93rc1
|
|
|
c5e4682 |
- fixed rpath issues
|
|
|
c5e4682 |
|
|
|
240e0e1 |
* Mon Feb 11 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92.1-1
|
|
|
240e0e1 |
- updated to 0.92.1
|
|
|
240e0e1 |
|
|
|
9ee1c30 |
* Tue Jan 1 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-6
|
|
|
9ee1c30 |
- redisabled unrar stuff completely by using clean sources
|
|
|
9ee1c30 |
- splitted -milter subpackage into pieces to allow use without sendmail
|
|
|
9ee1c30 |
(#239037)
|
|
|
9ee1c30 |
|
|
|
985d8cb |
* Tue Jan 1 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-5
|
|
|
985d8cb |
- use a better way to disable RPATH-generation (needed for '--with
|
|
|
985d8cb |
unrar' builds)
|
|
|
985d8cb |
|
|
|
93ac5ce |
* Mon Dec 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.92-4
|
|
|
93ac5ce |
- added a README.fedora to the milter package (#240610)
|
|
|
93ac5ce |
- ship original sources again; unrar is now licensed correctly (no more
|
|
|
93ac5ce |
stolen code put under GPL). Nevertheless, this license is not GPL
|
|
|
93ac5ce |
compatible, and to allow libclamav to be used by GPL applications,
|
|
|
93ac5ce |
unrar is disabled by a ./configure switch.
|
|
|
93ac5ce |
- use pkg-config in clamav-config to emulate --cflags and --libs
|
|
|
93ac5ce |
operations (fixes partly multilib issues)
|
|
|
93ac5ce |
- registered some more auto-updated files and marked them as %%ghost
|
|
|
93ac5ce |
|
|
|
b9a8a98 |
* Fri Dec 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.92-3
|
|
|
6a05c58 |
- updated to 0.92 (SECURITY):
|
|
|
6a05c58 |
- CVE-2007-6335 MEW PE File Integer Overflow Vulnerability
|
|
|
6a05c58 |
|
|
|
179411b |
* Mon Oct 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.91.2-3
|
|
|
11ed44b |
- remove RAR decompression code from source tarball because of
|
|
|
179411b |
legal problems (resolves 334371)
|
|
|
179411b |
- correct license tag
|
|
|
179411b |
|
|
|
4086c9f |
* Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 0.91.2-2
|
|
|
4086c9f |
- Bump release for upgrade path.
|
|
|
4086c9f |
|
|
|
68d2aa4 |
* Sat Aug 25 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.2-1
|
|
|
68d2aa4 |
- updated to 0.91.2 (SECURITY):
|
|
|
68d2aa4 |
- CVE-2007-4510 DOS in RTF parser
|
|
|
68d2aa4 |
- DOS in html normalizer
|
|
|
68d2aa4 |
- arbitrary command execution by special crafted recipients in
|
|
|
68d2aa4 |
clamav-milter's black-hole mode
|
|
|
6aecc07 |
- fixed an open(2) issue
|
|
|
68d2aa4 |
|
|
|
e507381 |
* Tue Jul 17 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91.1-0
|
|
|
e507381 |
- updated to 0.91.1
|
|
|
e507381 |
|
|
|
2ee773d |
* Thu Jul 12 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.91-1
|
|
|
2ee773d |
- updated to 0.91
|
|
|
2ee773d |
|
|
|
ca0868d |
* Thu May 31 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.3-1
|
|
|
ca0868d |
- updated to 0.90.3
|
|
|
491e541 |
- BR tcpd.h instead of tcp_wrappers(-devel) to make it build both
|
|
|
ca0868d |
in FC6- and F7+
|
|
|
ca0868d |
|
|
|
0b90ae9 |
* Fri Apr 13 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.2-1
|
|
|
11ed44b |
- [SECURITY] updated to 0.90.2; fixes CVE-2007-1745, CVE-2007-1997
|
|
|
0b90ae9 |
|
|
|
319d6e7 |
* Fri Mar 2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-2
|
|
|
319d6e7 |
- BR 'tcp_wrappers-devel' instead of plain 'tcp_wrappers'
|
|
|
319d6e7 |
|
|
|
00f644c |
* Fri Mar 2 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90.1-1
|
|
|
00f644c |
- updated to 0.90.1
|
|
|
00f644c |
- updated %%doc list
|
|
|
00f644c |
|
|
|
0172997 |
* Sun Feb 18 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-1
|
|
|
0172997 |
- updated to final 0.90
|
|
|
0172997 |
- removed -visibility patch since fixed upstream
|
|
|
0172997 |
|
|
|
8aa983a |
* Sun Feb 4 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.3.rc3
|
|
|
8aa983a |
- build with -Wl,-as-needed and cleaned up pkgconfig file
|
|
|
8aa983a |
- removed old hack which forced installation of freshclam.conf; related
|
|
|
8aa983a |
check was removed upstream
|
|
|
8aa983a |
- removed static library
|
|
|
8aa983a |
- removed %%changelog entries from before 2004
|
|
|
8aa983a |
|
|
|
36c1bd4 |
* Sat Feb 3 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.90-0.2.rc3
|
|
|
36c1bd4 |
- updated to 0.90rc3
|
|
|
36c1bd4 |
- splitted mandatory parts from the data-file into a separate -filesystem
|
|
|
36c1bd4 |
subpackage
|
|
|
36c1bd4 |
- added a -data-empty subpackage to allow a setup where database is
|
|
|
36c1bd4 |
updated per cron-job and user does not want to download the large
|
|
|
36c1bd4 |
-data package with outdated virus definitations (#214949)
|
|
|
36c1bd4 |
- %%ghost'ed the files downloaded by freshclam
|