8c82b2e
## $Id: clamav.spec,v 1.38 2006/08/09 06:30:01 ensc Exp $
6151a28
6151a28
## Fedora Extras specific customization below...
f294c9e
%bcond_without       fedora
6151a28
##
6151a28
6151a28
8dcc3a4
%global username	clamav
8dcc3a4
%global homedir		%_var/lib/clamav
8dcc3a4
%global freshclamlog	%_var/log/freshclam.log
8dcc3a4
%global milterlog	%_var/log/clamd.milter
8dcc3a4
%global milteruser	clamilt
8dcc3a4
%global milterstatedir	%_var/run/clamav-milter
8dcc3a4
%global pkgdatadir	%_datadir/%name
cvsextras 47272f4
bd5909f
8fb84a2
%{!?release_func:%global release_func() %1%{?dist}}
bd5909f
cvsextras 47272f4
Summary:	End-user tools for the Clam Antivirus scanner
cvsextras 47272f4
Name:		clamav
e99b953
Version:	0.88.4
dbc7a93
Release:	%release_func 1
efa447f
cvsextras 47272f4
License:	GPL
cvsextras 47272f4
Group:		Applications/File
cvsextras 47272f4
URL:		http://www.clamav.net
f294c9e
Source0:	http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz
f294c9e
Source999:	http://download.sourceforge.net/sourceforge/clamav/%name-%version.tar.gz.sig
cvsextras 47272f4
Source1:	clamd-wrapper
cvsextras 47272f4
Source2:	clamd.sysconfig
cvsextras 47272f4
Source3:	clamd.logrotate
cvsextras 47272f4
Source5:	clamd-README
cvsextras 47272f4
Source6:	clamav-update.logrotate
cvsextras 47272f4
Source7:	clamd.SERVICE.init
cvsextras 47272f4
Source8:	clamav-notify-servers
dbc7a93
Patch0:		clamav-0.88.2-guys,please-read-the-compiler-warnings-before-doing-a-release.patch
a4a6d25
Patch1:		clamav-0.88.1-strncpy.patch
cvsextras 47272f4
Patch20:	clamav-0.70-user.patch
cvsextras 47272f4
Patch21:	clamav-0.70-path.patch
6151a28
Patch22:	clamav-0.80-initoff.patch
f294c9e
BuildRoot:	%_tmppath/%name-%version-%release-root
f294c9e
Requires:	clamav-lib = %version-%release
cvsextras 47272f4
Requires:	data(clamav)
6151a28
BuildRequires:	zlib-devel bzip2-devel gmp-devel tcp_wrappers curl-devel
6151a28
BuildRequires:	bc
cvsextras 47272f4
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
f294c9e
Requires:	clamav-lib = %version-%release
6151a28
Requires(pre):	%_libdir/pkgconfig
cvsextras 47272f4
cvsextras 47272f4
%package data
d657061
Summary:	Virus signature data for the Clam Antivirus scanner
cvsextras 47272f4
Group:		Applications/File
cvsextras 47272f4
Provides:	data(clamav)
f294c9e
Provides:	user(clamav)
f294c9e
Provides:	group(clamav)
f294c9e
BuildRequires:	fedora-usermgmt-devel
f294c9e
%{?FE_USERADD_REQ}
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
f294c9e
Requires:	clamav-data = %version-%release
cvsextras 47272f4
Requires(pre):		/etc/cron.d
cvsextras 47272f4
Requires(postun):	/etc/cron.d
3e396f9
Requires(post):		%__chown %__chmod
f294c9e
Requires(post):		group(clamav)
cvsextras 47272f4
cvsextras 47272f4
%package server
d657061
Summary:	Clam Antivirus scanner server
cvsextras 47272f4
Group:		System Environment/Daemons
f294c9e
Provides:	clamav-daemon = %version-%release
f294c9e
Obsoletes:	clamav-daemon < %version-%release
05a209e
Conflicts:	clamav-daemon > %version-%release
cvsextras 47272f4
## For now, use this as a placeholder. Later, generate separate -sysv
cvsextras 47272f4
## and -minit subpackages
cvsextras 47272f4
Requires:	init(clamav-server)
ecfc3db
Provides:	init(clamav-server) = sysv
cvsextras 47272f4
Requires:	data(clamav)
f294c9e
Requires:	clamav-lib = %version-%release
cvsextras 47272f4
Requires(pre):		%_initrddir
cvsextras 47272f4
Requires(postun):	%_initrddir
cvsextras 47272f4
cvsextras 47272f4
%package milter
d657061
Summary:	Sendmail-milter for the Clam Antivirus scanner
cvsextras 47272f4
Group:		System Environment/Daemons
cvsextras 47272f4
## For now, use this as a placeholder. Later, generate separate -sysv
cvsextras 47272f4
## and -minit subpackages
cvsextras 47272f4
Requires:	init(clamav-milter)
ecfc3db
Provides:	init(clamav-milter) = sysv
f294c9e
BuildRequires:	sendmail-devel
f294c9e
BuildRequires:	fedora-usermgmt-devel
cvsextras 47272f4
Requires:		sendmail
cvsextras 47272f4
Requires(pre):		%_initrddir
9a13698
Requires(postun):	%_initrddir initscripts
9a13698
Requires(post):		chkconfig coreutils
9a13698
Requires(preun):	chkconfig initscripts
f294c9e
%{?FE_USERADD_REQ}
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
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
cvsextras 47272f4
ships a corresponding cron-job.
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
cvsextras 47272f4
%description milter
cvsextras 47272f4
This package contains files which are needed to run the clamav-milter. It
cvsextras 47272f4
can be activated by adding
cvsextras 47272f4
cvsextras 47272f4
| INPUT_MAIL_FILTER(`clamav', `S=local:%milterstatedir/clamav.sock, F=, T=S:4m;R:4m')dnl
cvsextras 47272f4
cvsextras 47272f4
to your sendmail.mc.
cvsextras 47272f4
cvsextras 47272f4
THIS PACKAGE IS TO BE CONSIDERED AS EXPERIMENTAL!
cvsextras 47272f4
cvsextras 47272f4
## ------------------------------------------------------------
cvsextras 47272f4
cvsextras 47272f4
%prep
cvsextras 47272f4
%setup -q
a4a6d25
%patch0  -p1 -b '.guys,please-read-the-compiler-warnings-before-doing-a-release.patch'
a4a6d25
%patch1  -p1 -b .strncpy
a4a6d25
cvsextras 47272f4
%patch20 -p1 -b .user
cvsextras 47272f4
%patch21 -p1 -b .path
cvsextras 47272f4
%patch22 -p1 -b .initoff
cvsextras 47272f4
cvsextras 47272f4
perl -pi -e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g;
cvsextras 47272f4
	     s!^#?(LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g;
cvsextras 47272f4
	     s!^#?(PidFile ).*!\1/var/run/clamd.<SERVICE>/clamd.pid!g;
cvsextras 47272f4
	     s!^#?(User ).*!\1<USER>!g;
cvsextras 47272f4
             s! /usr/local/share/clamav,! %homedir,!g;
6151a28
            ' etc/clamd.conf
cvsextras 47272f4
cvsextras 47272f4
perl -pi -e 's!^#(UpdateLogFile )!\1!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"
6151a28
%configure --disable-clamav --with-dbdir=/var/lib/clamav \
f294c9e
	   --enable-milter
6151a28
6151a28
## HACK: ./configure checks if freshclam.conf/clamd.conf are existing
cvsextras 47272f4
## in current filesystem and skips its installation then. Was introduced
cvsextras 47272f4
## by 0.66.
cvsextras 47272f4
perl -pi -e 's!^(s,\@INSTALL_(CLAMAV|FRESHCLAM)_CONF_TRUE\@),[^,]*,!\1,,!g;
cvsextras 47272f4
             s!^(s,\@INSTALL_(CLAMAV|FRESHCLAM)_CONF_FALSE\@),[^,]*,!\1,\#,!g' config.status
cvsextras 47272f4
./config.status
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 \
f294c9e
	${RPM_BUILD_ROOT}%_sysconfdir/{clamd.d,cron.d,logrotate.d,sysconfig} \
f294c9e
	${RPM_BUILD_ROOT}%_var/log \
6151a28
	${RPM_BUILD_ROOT}%milterstatedir \
6151a28
	${RPM_BUILD_ROOT}%pkgdatadir/template \
f294c9e
	${RPM_BUILD_ROOT}%_initrddir
cvsextras 47272f4
f294c9e
rm -f	${RPM_BUILD_ROOT}%_sysconfdir/clamd.conf \
f294c9e
	${RPM_BUILD_ROOT}%_libdir/*.la
6151a28
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
f294c9e
install -m644 -p %SOURCE5      	_doc_server/README
f294c9e
install -m644 -p etc/clamd.conf _doc_server/clamd.conf
6151a28
f294c9e
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
a352dc6
#### The milter stuff
cvsextras 47272f4
function subst() {
a352dc6
	sed -e 's!<SERVICE>!milter!g;s!<USER>!%milteruser!g;'"$3" "$1" >"$RPM_BUILD_ROOT$2"
cvsextras 47272f4
}
cvsextras 47272f4
3e396f9
a352dc6
subst etc/clamd.conf /etc/clamd.d/milter.conf \
cvsextras 47272f4
	's!^##*\(\(LogFile\|LocalSocket\|PidFile\|User\)\s\|\(StreamSaveToDisk\|ScanMail\)$\)!\1!;'
cvsextras 47272f4
cvsextras 47272f4
cvsextras 47272f4
cat <<EOF >$RPM_BUILD_ROOT%_sysconfdir/sysconfig/clamav-milter
cvsextras 47272f4
## The '-blo' options might be usefully here -- especially for testing; see
cvsextras 47272f4
## "man 8 clamav-milter" for further options
cvsextras 47272f4
CLAMAV_FLAGS='--max-children=2 -c /etc/clamd.d/milter.conf local:%milterstatedir/clamav.sock'
cvsextras 47272f4
CLAMAV_USER='%milteruser'
cvsextras 47272f4
EOF
cvsextras 47272f4
f294c9e
install -p -m755 contrib/init/RedHat/clamav-milter $RPM_BUILD_ROOT%_initrddir/clamav-milter
cvsextras 47272f4
touch $RPM_BUILD_ROOT%milterstatedir/clamav.sock $RPM_BUILD_ROOT%milterlog
6151a28
cvsextras 47272f4
cvsextras 47272f4
## ------------------------------------------------------------
cvsextras 47272f4
cvsextras 47272f4
%clean
cvsextras 47272f4
rm -rf "$RPM_BUILD_ROOT"
cvsextras 47272f4
cvsextras 47272f4
## ------------------------------------------------------------
cvsextras 47272f4
cvsextras 47272f4
%pre data
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
cvsextras 47272f4
%post update
f294c9e
test -e %freshclamlog || {
f294c9e
	touch %freshclamlog
f294c9e
	%__chmod 0664 %freshclamlog
f294c9e
	%__chown root:%username %freshclamlog
cvsextras 47272f4
}
cvsextras 47272f4
cvsextras 47272f4
%postun data
f294c9e
%__fe_userdel  %username &>/dev/null || :
f294c9e
%__fe_groupdel %username &>/dev/null || :
cvsextras 47272f4
cvsextras 47272f4
%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
cvsextras 47272f4
%post milter
cvsextras 47272f4
/sbin/chkconfig --add clamav-milter
9a13698
test -e %milterlog || {
9a13698
	touch %milterlog
9a13698
	chmod 0620             %milterlog
9a13698
	chown root:%milteruser %milterlog
9a13698
}
cvsextras 47272f4
cvsextras 47272f4
%preun milter
f294c9e
test "$1" != 0 || %_initrddir/clamav-milter stop &>/dev/null || :
cvsextras 47272f4
test "$1" != 0 || /sbin/chkconfig --del clamav-milter
cvsextras 47272f4
cvsextras 47272f4
%postun milter
f294c9e
%__fe_userdel  %milteruser &>/dev/null || :
f294c9e
%__fe_groupdel %milteruser &>/dev/null || :
f294c9e
test "$1"  = 0 || %_initrddir/clamav-milter condrestart >/dev/null || :
cvsextras 47272f4
cvsextras 47272f4
cvsextras 47272f4
%post   lib -p /sbin/ldconfig
cvsextras 47272f4
%postun lib -p /sbin/ldconfig
cvsextras 47272f4
cvsextras 47272f4
cvsextras 47272f4
%files
cvsextras 47272f4
%defattr(-,root,root,-)
cvsextras 47272f4
%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS TODO
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/*.*a
f294c9e
%_libdir/*.so
6151a28
%dir %pkgdatadir
6151a28
%pkgdatadir/template
6151a28
%pkgdatadir/clamd-gen
6151a28
%_libdir/pkgconfig/*
6151a28
%_bindir/clamav-config
cvsextras 47272f4
cvsextras 47272f4
## -----------------------
cvsextras 47272f4
cvsextras 47272f4
%files data
f294c9e
%defattr(-,%username,%username,-)
f294c9e
%dir %homedir
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
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
cvsextras 47272f4
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
%_initrddir/clamd-wrapper
6151a28
%dir %pkgdatadir
f294c9e
%dir %_sysconfdir/clamd.d
6151a28
%pkgdatadir/clamd-wrapper
6151a28
cvsextras 47272f4
cvsextras 47272f4
%exclude %_sbindir/*milter*
cvsextras 47272f4
%exclude %_mandir/man8/clamav-milter*
cvsextras 47272f4
cvsextras 47272f4
## -----------------------
cvsextras 47272f4
cvsextras 47272f4
%files milter
cvsextras 47272f4
%defattr(-,root,root,-)
cvsextras 47272f4
%doc clamav-milter/INSTALL
cvsextras 47272f4
%_sbindir/*milter*
cvsextras 47272f4
%_mandir/man8/clamav-milter*
f294c9e
%config %_initrddir/clamav-milter
f294c9e
%config(noreplace) %verify(not mtime) %_sysconfdir/clamd.d/milter.conf
f294c9e
%config(noreplace) %verify(not mtime) %_sysconfdir/sysconfig/clamav-milter
cvsextras 47272f4
%attr(0700,%milteruser,%milteruser) %dir %milterstatedir
cvsextras 47272f4
%ghost %milterstatedir/*
cvsextras 47272f4
%ghost %attr(0620,root,%milteruser) %verify(not size md5 mtime) %milterlog
cvsextras 47272f4
cvsextras 47272f4
%changelog
e99b953
* Tue Aug  8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.4-1
e99b953
- updated to 0.88.4 (SECURITY)
e99b953
e99b953
* Wed Jul 12 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
e99b953
- removed the clamdscan(1) manpage from the -server subpackage
e99b953
05a209e
* Sat Jul  8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
05a209e
- removed a superfluous '}'
05a209e
- removed some code which was relevant for FC-3 only
05a209e
f294c9e
* Sat Jul  8 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.3-1
f294c9e
- updated to 0.88.3
f294c9e
- updated to new fedora-usermgmt macros
f294c9e
f294c9e
* Tue May 16 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.2-2
f294c9e
- cleanups: removed unneeded curlies, use plain command instead of
f294c9e
  %%__XXX macro, whitespace cleanup, removed unneeded versioned
f294c9e
  dependencies
f294c9e
- added a 'Requires(post): group(clamav)' dependencies for -update and
f294c9e
  added the corresponding Provides: to -data
f294c9e
- removed the %%_without_milter conditional; you won't gain anything
f294c9e
  when milter would be disabled at buildtime
f294c9e
dbc7a93
* Sun Apr 30 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.2-1
dbc7a93
- updated to 0.88.2 (SECURITY)
dbc7a93
- rediffed patches; most issues handled by 0.88.1-2 are fixed in
dbc7a93
  0.88.2
dbc7a93
a4a6d25
* Mon Apr 24 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.1-2
a4a6d25
- added patch which fixes some classes of compiler warnings; at least
a4a6d25
  the using of implicitly declared functions was reported to cause
a4a6d25
  segfaults on AMD64 (brought to my attention by Marc Perkel)
a4a6d25
- added patch which fixes wrong usage of strncpy(3) in unrarlib.c
a4a6d25
1f384df
* Thu Apr 06 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88.1-1
1f384df
- updated to 0.88.1 (SECURITY)
1f384df
10c12ef
* Sat Feb 18 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88-2
10c12ef
- rebuilt for FC5
10c12ef
ecfc3db
* Tue Jan 10 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.88-1
ecfc3db
- updated to 0.88
ecfc3db
- added pseudo-versions for the 'init(...)' provides as a first step
ecfc3db
  for the support of alternative initmethods
ecfc3db
ecfc3db
* Tue Nov 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.87.1-2
ecfc3db
- moved 'freshclam.conf.5' man page into the -update subpackage (#173221)
ecfc3db
- ship 'clamd.conf.5' man page in the -server subpackage *too*. The
ecfc3db
  same file is contained in multiple packages now, but this man-page
ecfc3db
  can not be removed from the base package because it also applies to
ecfc3db
  'clamdscan' there (#173221).
ecfc3db
d23adca
* Fri Nov  4 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.87.1-1
d23adca
- updated to 0.87.1
d23adca
a352dc6
* Sat Sep 17 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.87-1
a352dc6
- updated to 0.87 (SECURITY)
a352dc6
- removed -timeout patch; it is solved upstream
a352dc6
- reverted the -exim changes; they add yet more complexity, their
a352dc6
  functionality can go into an own package and they contained flaws
a352dc6
c402d54
* Fri Sep  9 2005 David Woodhouse <dwmw2@infradead.org> - 0.86.2-5
c402d54
- Add clamav-exim configuration package
c402d54
9a13698
* Fri Jul 29 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.2-4
9a13698
- [milter] create the milter-logfile in the %%post scriptlet
9a13698
- [milter] reverted the change of the default child_timeout value; it
9a13698
  was set to 5 minutes in 0.86.2 which conflicts with the internal
9a13698
  mode where a timeout must not be set. So, the clamav-milter would
9a13698
  not run with the default configuration
9a13698
f5d66c4
* Thu Jul 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.2-3
f5d66c4
- Fixed calculation of sleep duration; on some systems/IPs, `hostid`
f5d66c4
  results in a negative number which is retained by the bash
f5d66c4
  modulo-operation. So the sleep may get a negative number of seconds
f5d66c4
  being interpreted as an option. This version makes sure that the
f5d66c4
  module-operations returns a non-negative value. [BZ #164494, James
f5d66c4
  Wilkinson]
f5d66c4
- added support for a /usr/sbin/clamav-notify-servers.local hook; this
f5d66c4
  file will be executed (source'd) before all other actions and can
f5d66c4
  abort the entire processing by invoking 'exit'
f5d66c4
22e542a
* Mon Jul 25 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.2-2
3e396f9
- updated to 0.86.2 (SECURITY)
3e396f9
- changed the freshclam updating mechanism (again); now, it consists
3e396f9
  of a crontab which does not need to be changed and a helper script
3e396f9
  (freshclam-sleep). This helper script is configured by
3e396f9
  /etc/sysconfig/freshclam
3e396f9
98a8878
* Sat Jun 25 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86.1-2
6b93a16
- updated to 0.86.1
6b93a16
- fixed randomization in %%post scriptlet: hour should be a range but
6b93a16
  not a single number
6b93a16
219cd04
* Tue Jun 21 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86-1
219cd04
- updated to 0.86
219cd04
- randomize freshclam startup times in -update's %%post script (suggested
219cd04
  by Stephen Smoogen); this requires some more Requires(post): also
219cd04
ed3f0ea
* Wed May 18 2005 Warren Togami <wtogami@redhat.com> - 0.85.1-4
8fb84a2
- fix dist tagging the way Enrico wants it
8fb84a2
32a4737
* Tue May 17 2005 Oliver Falk <oliver@linux-kernel.at>					  - 0.85.1-2
32a4737
- Rebuild
32a4737
716e5a8
* Tue May 17 2005 Oliver Falk <oliver@linux-kernel.at>					  - 0.85.1-1
716e5a8
- Update
716e5a8
6ddb72b
* Sat May 14 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.85-0
6ddb72b
- updated to 0.85
6ddb72b
6ddb72b
* Sun May  1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.84-0
d7c5a76
- updated to 0.84
d7c5a76
efa447f
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
efa447f
- rebuilt
efa447f
d45dad0
* Tue Feb 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.83-1
d45dad0
- updated to 0.83
d45dad0
bd5909f
* Tue Feb  8 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.82-1
bd5909f
- updated to 0.82
bd5909f
- minor spec cleanups
bd5909f
6151a28
* Fri Jan 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.81-0.fdr.2
6151a28
- build the package with '--disable-zlib-vcheck' because RH is unable to
6151a28
  apply a fix for a 5 month old and solved security issue.  Please fill
6151a28
  your comments at https://bugzilla.redhat.com/beta/show_bug.cgi?id=131385
6151a28
- added 'BuildRequires: bc' (should work without also, but ./configure
6151a28
  gives out ugly warnings else)
6151a28
6151a28
* Fri Jan 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.81-0.fdr.1
6151a28
- updated to 0.81
6151a28
- do not ship the 'clamd.milter' daemon anymore; clamav-milter supports
6151a28
  an internal mode now which is enabled by default
6151a28
- updated -milter %%description
6151a28
6151a28
* Thu Jan 20 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.80-0.fdr.2
6151a28
- s!cron.d/clamav!cron.d/clamav-update! in the %%description of the -update
6151a28
  subpackage (https://bugzilla.fedora.us/show_bug.cgi?id=1715#c39)
6151a28
6151a28
* Wed Nov  3 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.80-0.fdr.1
6151a28
- updated to 0.80
6151a28
- removed DMS, FreeBSD-HOWTO and localized docs as it is not shipped anymore
6151a28
- buildrequire 'curl-devel'
6151a28
- renamed clamav.conf to clamd.conf (upstream change)
6151a28
- updated -initoff patch
6151a28
6151a28
* Tue Sep 14 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.75.1-0.fdr.1
6151a28
- updated to 0.75.1
6151a28
- use %%configure, the problems with the architecture specification
6151a28
  seem to have passed (probably because of an autoconf update)
6151a28
- set mode 0600 for the cron-script (required by vixie-cron)
6151a28
- made the cronjob a spambot and send mail about deactivated freshclam
6151a28
  service to nearly everybody... (root, postmaster, webmaster)
6151a28
- other fixes in the notification cronjob
6151a28
6151a28
* Fri Jul 23 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.75-0.fdr.1
6151a28
- updated to 0.75
6151a28
6151a28
* Thu Jul 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.74-0.fdr.2
6151a28
- moved /usr/bin/clamav-config from main into -devel
6151a28
6151a28
* Wed Jun 30 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.74-0.fdr.1
6151a28
- updated to 0.74
6151a28
6151a28
* Mon Jun 14 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.73-0.fdr.1
6151a28
- updated to 0.73
6151a28
- added pkgconfig file
6151a28
6151a28
* Fri Jun 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.3
6151a28
- notify the user about a deactivated clamav-update service
6151a28
- added clamd-gen script which generates template spec-files for
6151a28
  services using clamd
6151a28
- copied template configuration files to %pkgdatadir/template (needed
6151a28
  for clamd-gen)
6151a28
- moved the clamd-wrapper from %_initrddir to %{pkgdatadir}; a symlink
6151a28
  will be provided for compatibility reasons
6151a28
- conditionalized building of the -milter subpackage ('--without
6151a28
  milter' switch) to enable builds on RH73 (bug #1715, comment #5/#7)
6151a28
6151a28
* Fri Jun  4 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.2
6151a28
- removed 'BuildRequires: dietlibc'; it was a leftover from the
6151a28
  pre-use-signal era (before 0.70) (bug #1716)
6151a28
6151a28
* Thu Jun  3 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.1
6151a28
- updated to 0.72
6151a28
cvsextras 47272f4
* Thu May 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.71-0.fdr.2
cvsextras 47272f4
- removed the randomization in the cronjob; it seems to be impossible
cvsextras 47272f4
  to use the mod-operator (%%) there. Instead of, the user has to
cvsextras 47272f4
  replace some placeholders...
cvsextras 47272f4
cvsextras 47272f4
* Wed May 19 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.71-0.fdr.1
cvsextras 47272f4
- updated to 0.71
cvsextras 47272f4
cvsextras 47272f4
* Fri May  7 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.1.1
cvsextras 47272f4
- quote 'EOF' to delay $RANDOM expansion
cvsextras 47272f4
cvsextras 47272f4
* Tue Apr 27 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.2
cvsextras 47272f4
- updated GECOS entry for the 'clamav' user to describe its purpose
cvsextras 47272f4
  more accurately
cvsextras 47272f4
- use explicit '-m755' when creating directories with install
cvsextras 47272f4
cvsextras 47272f4
* Tue Apr 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.1
cvsextras 47272f4
- updated to 0.70; rediffed some patches
cvsextras 47272f4
- updated logrotate script to use signals and documented the steps
cvsextras 47272f4
  which are needed to make it work
cvsextras 47272f4
- adapted initscript to use signals instead of sockwrite
cvsextras 47272f4
- removed sockwrite; signals can now be used to reload the database
cvsextras 47272f4
- added logfile to the -milter subpackage
cvsextras 47272f4
cvsextras 47272f4
* Tue Apr 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.2.1
cvsextras 47272f4
- tagged some Requires:, since clamav-server is required in the milter-%%post* scriptlets
cvsextras 47272f4
cvsextras 47272f4
* Sat Mar 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.2
cvsextras 47272f4
- split the double Requires(...,...): statements; see
cvsextras 47272f4
  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118773
cvsextras 47272f4
- require the recent fedora-usermgmt package (0.7) which fixes similar
cvsextras 47272f4
  ordering issues
cvsextras 47272f4
cvsextras 47272f4
* Thu Mar 18 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.1
cvsextras 47272f4
- updated to 0.68 (using the -1 version)
cvsextras 47272f4
- ship milter-files in the -milter instead of the -server subpackage
cvsextras 47272f4
cvsextras 47272f4
* Tue Feb 24 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.3
cvsextras 47272f4
- fixed ':' vs. '.' in chown
cvsextras 47272f4
cvsextras 47272f4
* Tue Feb 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.2
cvsextras 47272f4
- randomize freshclam startup to prevent server peaks
cvsextras 47272f4
cvsextras 47272f4
* Mon Feb 16 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.1
cvsextras 47272f4
- updated to 0.67 (using the -1 version)
cvsextras 47272f4
cvsextras 47272f4
* Wed Feb 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.66-0.fdr.2
cvsextras 47272f4
- updated to 0.66; important, packaging-relevant changes are
cvsextras 47272f4
  freshclam:
cvsextras 47272f4
  * $http_proxy is not supported anymore; you have to configure it in
cvsextras 47272f4
    /etc/freshclam.conf
cvsextras 47272f4
  * the logfile has been renamed to /var/log/freshclam.log
cvsextras 47272f4
- removed %%check section; buildroot check is implemented in local
cvsextras 47272f4
  testsuite already
cvsextras 47272f4
- added some %%verify(not mtime) modifiers to avoid unnecessary .rpmnew
cvsextras 47272f4
  files
cvsextras 47272f4
- added some directory-Requires:
cvsextras 47272f4
- activated milter-package and made it work
cvsextras 47272f4
- added patch to disable clamav-milter service by default
cvsextras 47272f4
- renamed /var/run/clamav.<SERVICE> to /var/run/clamd.<SERVICE>; this
cvsextras 47272f4
  makes things more consistently but can break backward compatibility. The
cvsextras 47272f4
  initscript should deal with the old version too, but I would not bet on
cvsextras 47272f4
  it...
cvsextras 47272f4
- updated some descriptions
cvsextras 47272f4
- fixed the update-mechanism; now it happens in two stages: at first,
cvsextras 47272f4
  the files will be downloaded as user 'clamav' and then, root initiates
cvsextras 47272f4
  the daemon-reload.
cvsextras 47272f4
cvsextras 47272f4
* Mon Feb  9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.5
cvsextras 47272f4
- added security fix for
cvsextras 47272f4
  http://www.securityfocus.com/archive/1/353194/2004-02-06/2004-02-12/1
cvsextras 47272f4
cvsextras 47272f4
* Fri Nov 28 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.4
cvsextras 47272f4
- fixed typo in README (sysconf.d vs. sysconf)
cvsextras 47272f4
- make build on rhl8 succeed by adding '|| :' to %%check
cvsextras 47272f4
cvsextras 47272f4
* Tue Nov 18 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.3
cvsextras 47272f4
- substitute 'User' in sample cfg-file also
cvsextras 47272f4
- uncommented some cfg-options which are needed for a proper operation
cvsextras 47272f4
- fixed typos in README (thanks to Michael Schwendt)
cvsextras 47272f4
cvsextras 47272f4
* Mon Nov 17 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.2
cvsextras 47272f4
- fixed path of 'LocalSocket' and documented steps how to create it
cvsextras 47272f4
- added a missing backslash at the configure-call
cvsextras 47272f4
- do not package clamav-milter.8 manpage
cvsextras 47272f4
- documented 'User' in the README
cvsextras 47272f4
cvsextras 47272f4
* Sat Nov 15 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.1
cvsextras 47272f4
- updated to 0.65
cvsextras 47272f4
- added gmp-devel buildrequires:
cvsextras 47272f4
- changed installed databases from 'viruses.db*' to '*.cvb'
cvsextras 47272f4
- made milter-build conditional; 0.65 is missing some files which would break the build else
cvsextras 47272f4
- fixed typo (clamav-notify-server -> clamav-notify-servers)
cvsextras 47272f4
cvsextras 47272f4
* Fri Oct 31 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.60-0.fdr.5
cvsextras 47272f4
- created -update subpackage and filled it with files from main and -data package
cvsextras 47272f4
- set more reasonable default-values in the sample config-file
cvsextras 47272f4
- made the README in -server more clear
cvsextras 47272f4
- moved clamav-milter man-page into -milter subpackage
cvsextras 47272f4
- use fedora-usermgmt
cvsextras 47272f4
- renamed -daemon subpackage and related files to -server
cvsextras 47272f4
- use abstract 'data(clamav)' notation for clamav-data dependencies
cvsextras 47272f4
- use 'init(...)' requirements as placeholder for future -sysv/-minit subpackages
cvsextras 47272f4
cvsextras 47272f4
* Sat Aug 16 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.4
cvsextras 47272f4
- backported clamav-sockwrite.c to C89
cvsextras 47272f4
cvsextras 47272f4
* Fri Aug 15 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.3
cvsextras 47272f4
- updated Source0 URL
cvsextras 47272f4
- fixed portuguese i18n-abbreviation
cvsextras 47272f4
cvsextras 47272f4
* Fri Jul 18 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.3
cvsextras 47272f4
- use LSB compliant exit-codes in the init-script
cvsextras 47272f4
- other init-script cleanups
cvsextras 47272f4
cvsextras 47272f4
* Tue Jul 15 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.2
cvsextras 47272f4
- updated %%description
cvsextras 47272f4
- removed README from %%doc-list
cvsextras 47272f4
cvsextras 47272f4
* Thu Jun 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.1
cvsextras 47272f4
- disabled -milter subpackage; I do not get it to run :(
cvsextras 47272f4
cvsextras 47272f4
* Thu Jun 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.60-0.fdr.0.1
cvsextras 47272f4
- updated to 0.60
cvsextras 47272f4
- modernized usercreation
cvsextras 47272f4
- added -milter subpackage
cvsextras 47272f4
cvsextras 47272f4
* Thu May  8 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.54-0.fdr.2
cvsextras 47272f4
- added BUGS file
cvsextras 47272f4
- moved clamd.8 man-page into daemon-subpackage
cvsextras 47272f4
- some cosmetical cleanups
cvsextras 47272f4
- removed config-patch; it was unused
cvsextras 47272f4
- made some paths more fedora-compliant
cvsextras 47272f4
- honor $RPM_OPT_FLAGS
cvsextras 47272f4
- added clamav-notify-daemons script
cvsextras 47272f4
- removed obsoleted %%socketdir
cvsextras 47272f4
cvsextras 47272f4
* Wed May  7 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0:0.54-0.fdr.0.1
cvsextras 47272f4
- splitted into additional -data/-daemon packages
cvsextras 47272f4
- added clamav-sockwrite program
cvsextras 47272f4
- updated to recent fedora policies
cvsextras 47272f4
cvsextras 47272f4
* Thu Nov 21 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0.54-1
cvsextras 47272f4
- updated to 0.54
cvsextras 47272f4
- updated config-patch
cvsextras 47272f4
cvsextras 47272f4
* Tue Oct 29 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 0.52-1
cvsextras 47272f4
- updated to 0.52
cvsextras 47272f4
d657061
* Tue Sep 17 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
cvsextras 47272f4
- Initial build.