8a75e54
## $Id: clamav.spec,v 1.20 2005/06/21 07:25:56 ensc Exp $
5ec291e
b77bb64
## This package understands the following switches:
b77bb64
## --without milter          ...  deactivate the -milter subpackage
b77bb64
b77bb64
b77bb64
## Fedora Extras specific customization below...
b77bb64
##
b77bb64
b77bb64
534af6f
%global username	clamav
534af6f
%global homedir		%_var/lib/clamav
534af6f
%global freshclamlog	%_var/log/freshclam.log
534af6f
%global milterlog	%_var/log/clamd.milter
534af6f
%global milteruser	clamilt
534af6f
%global milterstatedir	%_var/run/clamav-milter
534af6f
%global pkgdatadir	%_datadir/%name
cvsextras 47272f4
5ec291e
534af6f
%{!?release_func:%global release_func() %1%{?dist}}
5ec291e
cvsextras 47272f4
Summary:	End-user tools for the Clam Antivirus scanner
cvsextras 47272f4
Name:		clamav
8a75e54
Version:	0.86
8a75e54
Release:	%release_func 1
534af6f
cvsextras 47272f4
License:	GPL
cvsextras 47272f4
Group:		Applications/File
cvsextras 47272f4
URL:		http://www.clamav.net
cvsextras 47272f4
Source0:	http://download.sourceforge.net/sourceforge/clamav/%{name}-%{version}.tar.gz
534af6f
#Source999:	http://download.sourceforge.net/sourceforge/clamav/%{name}-%{version}.tar.gz.sig
cvsextras 47272f4
Source1:	clamd-wrapper
cvsextras 47272f4
Source2:	clamd.sysconfig
cvsextras 47272f4
Source3:	clamd.logrotate
cvsextras 47272f4
Source5:	clamd-README
cvsextras 47272f4
Source6:	clamav-update.logrotate
cvsextras 47272f4
Source7:	clamd.SERVICE.init
cvsextras 47272f4
Source8:	clamav-notify-servers
cvsextras 47272f4
Patch20:	clamav-0.70-user.patch
cvsextras 47272f4
Patch21:	clamav-0.70-path.patch
b77bb64
Patch22:	clamav-0.80-initoff.patch
cvsextras 47272f4
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
534af6f
Requires:	clamav-lib = %{version}-%{release}
cvsextras 47272f4
Requires:	data(clamav)
b77bb64
BuildRequires:	zlib-devel bzip2-devel gmp-devel tcp_wrappers curl-devel
b77bb64
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
534af6f
Summary:	Header files and libraries for the Clam Antivirus scanner
cvsextras 47272f4
Group:		Development/Libraries
b77bb64
Source100:	clamd-gen
534af6f
Requires:	clamav-lib = %{version}-%{release}
b77bb64
Requires(pre):	%_libdir/pkgconfig
cvsextras 47272f4
cvsextras 47272f4
%package data
534af6f
Summary:	Virus signature data for the Clam Antivirus scanner
cvsextras 47272f4
Group:		Applications/File
cvsextras 47272f4
Provides:	data(clamav)
534af6f
Requires(pre):		fedora-usermgmt >= 0.7
534af6f
Requires(postun):	fedora-usermgmt >= 0.7
cvsextras 47272f4
cvsextras 47272f4
%package update
534af6f
Summary:	Auto-updater for the Clam Antivirus scanner data-files
cvsextras 47272f4
Group:		Applications/File
534af6f
Requires:	clamav-data = %{version}-%{release}
cvsextras 47272f4
Requires(pre):		/etc/cron.d
cvsextras 47272f4
Requires(postun):	/etc/cron.d
8a75e54
Requires(post):		%__chown %__chmod %__sed diffutils
cvsextras 47272f4
cvsextras 47272f4
%package server
534af6f
Summary:	Clam Antivirus scanner server
cvsextras 47272f4
Group:		System Environment/Daemons
534af6f
Provides:	clamav-daemon = %{version}-%{release}
534af6f
Obsoletes:	clamav-daemon < %{version}-%{release}
534af6f
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)
cvsextras 47272f4
Provides:	init(clamav-server)
cvsextras 47272f4
Requires:	data(clamav)
534af6f
Requires:	clamav-lib = %{version}-%{release}
cvsextras 47272f4
Requires(pre):		%_initrddir
cvsextras 47272f4
Requires(postun):	%_initrddir
cvsextras 47272f4
cvsextras 47272f4
%package milter
534af6f
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)
cvsextras 47272f4
Provides:	init(clamav-milter)
b77bb64
%{!?_without_milter:BuildRequires:	sendmail-devel}
cvsextras 47272f4
Requires:		sendmail
cvsextras 47272f4
Requires(pre):		%_initrddir
cvsextras 47272f4
Requires(postun):	%_initrddir
cvsextras 47272f4
Requires(post):		chkconfig
cvsextras 47272f4
Requires(preun):	chkconfig
cvsextras 47272f4
Requires(preun):	initscripts
cvsextras 47272f4
Requires(postun):	initscripts
534af6f
Requires(pre):		fedora-usermgmt >= 0.7
534af6f
Requires(postun):	fedora-usermgmt >= 0.7
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
b77bb64
cvsextras 47272f4
%description lib
cvsextras 47272f4
This package contains dynamic libraries shared between applications
cvsextras 47272f4
using the Clam Antivirus scanner.
cvsextras 47272f4
cvsextras 47272f4
%description devel
cvsextras 47272f4
This package contains headerfiles and libraries which are needed to
cvsextras 47272f4
build applications using clamav.
cvsextras 47272f4
cvsextras 47272f4
%description data
cvsextras 47272f4
This package contains the virus-database needed by clamav. This
cvsextras 47272f4
database should be updated regularly; the 'clamav-update' package
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
b77bb64
this task. To activate it, uncomment the entry in /etc/cron.d/clamav-update.
cvsextras 47272f4
cvsextras 47272f4
%description server
cvsextras 47272f4
ATTENTION: most users do not need this package; the main package has
cvsextras 47272f4
everything (or depends on it) which is needed to scan for virii on
cvsextras 47272f4
workstations.
cvsextras 47272f4
cvsextras 47272f4
This package contains files which are needed to execute the clamd-daemon.
cvsextras 47272f4
This daemon does not provide a system-wide service. Instead of, an instance
cvsextras 47272f4
of this daemon should be started for each service requiring it.
cvsextras 47272f4
cvsextras 47272f4
See the README file how this can be done with a minimum of effort.
cvsextras 47272f4
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
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;
b77bb64
            ' etc/clamd.conf
cvsextras 47272f4
cvsextras 47272f4
perl -pi -e 's!^#(UpdateLogFile )!\1!g;' etc/freshclam.conf
cvsextras 47272f4
cvsextras 47272f4
## ------------------------------------------------------------
cvsextras 47272f4
cvsextras 47272f4
%build
5ec291e
## '--disable-zlib-vcheck' is used because every FC<=3 ships zlib-1.2.1*
5ec291e
## but clamav checks for zlib >= 1.2.2.  This option can be removed for
5ec291e
## FC4 builds.
5ec291e
##
5ec291e
## See https://bugzilla.redhat.com/beta/show_bug.cgi?id=131385 and
5ec291e
## http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0797
5ec291e
## also
b77bb64
%configure --disable-clamav --with-dbdir=/var/lib/clamav \
b77bb64
           --disable-zlib-vcheck \
b77bb64
	   %{!?_without_milter:--enable-milter}
b77bb64
b77bb64
## 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
cvsextras 47272f4
%{__make} %{?_smp_mflags}
cvsextras 47272f4
cvsextras 47272f4
cvsextras 47272f4
## ------------------------------------------------------------
cvsextras 47272f4
cvsextras 47272f4
%install
cvsextras 47272f4
rm -rf "$RPM_BUILD_ROOT" _doc*
cvsextras 47272f4
%{__make} DESTDIR="$RPM_BUILD_ROOT" install
cvsextras 47272f4
cvsextras 47272f4
%{__install} -d -m755 \
cvsextras 47272f4
	${RPM_BUILD_ROOT}%{_sysconfdir}/{clamd.d,cron.d,logrotate.d,sysconfig} \
cvsextras 47272f4
	${RPM_BUILD_ROOT}%{_var}/log \
b77bb64
	${RPM_BUILD_ROOT}%milterstatedir \
b77bb64
	${RPM_BUILD_ROOT}%pkgdatadir/template \
cvsextras 47272f4
	${RPM_BUILD_ROOT}%{_initrddir}
cvsextras 47272f4
b77bb64
rm -f	${RPM_BUILD_ROOT}%{_sysconfdir}/clamd.conf \
cvsextras 47272f4
	${RPM_BUILD_ROOT}%{_libdir}/*.la
cvsextras 47272f4
b77bb64
%{?_without_milter:rm -f $RPM_BUILD_ROOT%_mandir/*/*milter*}
b77bb64
cvsextras 47272f4
cvsextras 47272f4
## prepare the server-files
cvsextras 47272f4
mkdir _doc_server
cvsextras 47272f4
%{__install} -m644 -p %{SOURCE2}	_doc_server/clamd.sysconfig
cvsextras 47272f4
%{__install} -m644 -p %{SOURCE3}       	_doc_server/clamd.logrotate
cvsextras 47272f4
%{__install} -m755 -p %{SOURCE7}	_doc_server/clamd.init
cvsextras 47272f4
%{__install} -m644 -p %{SOURCE5}       	_doc_server/README
b77bb64
%__install   -m644 -p etc/clamd.conf    _doc_server/clamd.conf
b77bb64
b77bb64
%__install   -m644 -p %SOURCE1  	$RPM_BUILD_ROOT%pkgdatadir
b77bb64
%__install   -m755 -p %SOURCE100        $RPM_BUILD_ROOT%pkgdatadir
b77bb64
cp -pa _doc_server/*                    $RPM_BUILD_ROOT%pkgdatadir/template
b77bb64
ln -s %pkgdatadir/clamd-wrapper         $RPM_BUILD_ROOT%_initrddir/clamd-wrapper
b77bb64
b77bb64
f=$RPM_BUILD_ROOT%pkgdatadir/clamd-wrapper
b77bb64
sed -e 's!/usr/share/clamav!%pkgdatadir!g' "$f" >"$f".tmp
b77bb64
cmp -s "$f" "$f".tmp || cat "$f".tmp >"$f"
b77bb64
rm -f "$f".tmp
b77bb64
cvsextras 47272f4
cvsextras 47272f4
## prepare the update-files
cvsextras 47272f4
%{__install} -m644 -p %{SOURCE6}	${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/clamav-update
cvsextras 47272f4
%{__install} -m755 -p %{SOURCE8}	${RPM_BUILD_ROOT}%{_sbindir}/clamav-notify-servers
cvsextras 47272f4
touch ${RPM_BUILD_ROOT}%{freshclamlog}
cvsextras 47272f4
cvsextras 47272f4
cat >${RPM_BUILD_ROOT}%{_sysconfdir}/cron.d/clamav-update <<"EOF"
b77bb64
## Adjust this line...
b77bb64
MAILTO=root,postmaster,webmaster,%username
b77bb64
cvsextras 47272f4
## It is ok to execute it as root; freshclam drops privileges and becomes
cvsextras 47272f4
## user 'clamav' as soon as possible
8a75e54
# @MIN@  @HOUR@/3 * * * root %{_bindir}/freshclam --quiet && { test -x %{_sbindir}/clamav-notify-servers && exec %{_sbindir}/clamav-notify-servers || :; }
cvsextras 47272f4
b77bb64
## Comment out or remove this line...
b77bb64
1 8 * * * %username /bin/sh -c 'echo "Please activate the clamav update in %_sysconfdir/cron.d/clamav-update" >&2'
b77bb64
EOF
cvsextras 47272f4
b77bb64
%if 0%{!?_without_milter:1}
cvsextras 47272f4
#### The milter stuff
cvsextras 47272f4
cvsextras 47272f4
function subst() {
cvsextras 47272f4
	sed -e 's!<SERVICE>!milter!g;s!<USER>!%milteruser!g;'"$3" "$1" >"$RPM_BUILD_ROOT$2"
cvsextras 47272f4
}
cvsextras 47272f4
b77bb64
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
cvsextras 47272f4
%__install -p -m755 contrib/init/RedHat/clamav-milter $RPM_BUILD_ROOT%_initrddir/clamav-milter
cvsextras 47272f4
touch $RPM_BUILD_ROOT%milterstatedir/clamav.sock $RPM_BUILD_ROOT%milterlog
b77bb64
%endif	# _without_milter
b77bb64
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
cvsextras 47272f4
/usr/sbin/fedora-groupadd 4 -r %{username} &>/dev/null || :
cvsextras 47272f4
/usr/sbin/fedora-useradd  4 -r -s /sbin/nologin -d %{homedir} -M          \
cvsextras 47272f4
                            -c 'Clamav database update user' -g %{username} %{username} &>/dev/null || :
cvsextras 47272f4
cvsextras 47272f4
%post update
cvsextras 47272f4
test -e %{freshclamlog} || {
cvsextras 47272f4
	touch %{freshclamlog}
cvsextras 47272f4
	%{__chmod} 0664 %{freshclamlog}
cvsextras 47272f4
	%{__chown} root:%{username} %{freshclamlog}
cvsextras 47272f4
}
cvsextras 47272f4
8a75e54
min=$[ RANDOM % 60 ]
8a75e54
hour=$[ RANDOM % 24 ]
8a75e54
tmp=$(mktemp /tmp/freshclam-cron.XXXXXX)
8a75e54
src=%_sysconfdir/cron.d/clamav-update
8a75e54
%__sed -e "s!@MIN@!$min!g;s!@HOUR@!$hour!g" "$src" >$tmp
8a75e54
cmp -s $tmp "$src" || cat "$tmp" >"$src"
8a75e54
rm -f $tmp
8a75e54
8a75e54
cvsextras 47272f4
%postun data
cvsextras 47272f4
test "$1" != 0 || /usr/sbin/fedora-userdel  %{username} &>/dev/null || :
cvsextras 47272f4
test "$1" != 0 || /usr/sbin/fedora-groupdel %{username} &>/dev/null || :
cvsextras 47272f4
cvsextras 47272f4
%pre milter
cvsextras 47272f4
/usr/sbin/fedora-groupadd 5 -r %milteruser &>/dev/null || :
cvsextras 47272f4
/usr/sbin/fedora-useradd  5 -r -s /sbin/nologin -d %milterstatedir -M \
cvsextras 47272f4
                            -c 'Clamav Milter User' -g %milteruser %milteruser &>/dev/null || :
cvsextras 47272f4
cvsextras 47272f4
%post milter
cvsextras 47272f4
/sbin/chkconfig --add clamav-milter
cvsextras 47272f4
cvsextras 47272f4
%preun milter
cvsextras 47272f4
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
cvsextras 47272f4
test "$1" != 0 || /usr/sbin/fedora-userdel  %{milteruser} &>/dev/null || :
cvsextras 47272f4
test "$1" != 0 || /usr/sbin/fedora-groupdel %{milteruser} &>/dev/null || :
cvsextras 47272f4
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
cvsextras 47272f4
%doc %{_mandir}/man[15]/*
cvsextras 47272f4
%{_bindir}/*
b77bb64
%exclude %_bindir/clamav-config
cvsextras 47272f4
%exclude %_bindir/freshclam
cvsextras 47272f4
%exclude %_mandir/man1/freshclam*
cvsextras 47272f4
cvsextras 47272f4
## -----------------------
cvsextras 47272f4
cvsextras 47272f4
%files lib
cvsextras 47272f4
%defattr(-,root,root,-)
cvsextras 47272f4
%{_libdir}/*.so.*
cvsextras 47272f4
cvsextras 47272f4
## -----------------------
cvsextras 47272f4
cvsextras 47272f4
%files devel
cvsextras 47272f4
%defattr(-,root,root,-)
cvsextras 47272f4
%{_includedir}/*
cvsextras 47272f4
%{_libdir}/*.*a
cvsextras 47272f4
%{_libdir}/*.so
b77bb64
%dir %pkgdatadir
b77bb64
%pkgdatadir/template
b77bb64
%pkgdatadir/clamd-gen
b77bb64
%_libdir/pkgconfig/*
b77bb64
%_bindir/clamav-config
cvsextras 47272f4
cvsextras 47272f4
## -----------------------
cvsextras 47272f4
cvsextras 47272f4
%files data
cvsextras 47272f4
%defattr(-,%{username},%{username},-)
cvsextras 47272f4
%dir %{homedir}
b77bb64
# use %%config to keep files which were updated by 'freshclam'
b77bb64
# already. Without this tag, they would be overridden with older
b77bb64
# versions whenever a new -data package is installed.
cvsextras 47272f4
%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
cvsextras 47272f4
%_mandir/man1/freshclam*
cvsextras 47272f4
%config(noreplace) %verify(not mtime) %_sysconfdir/freshclam.conf
b77bb64
%config(noreplace) %verify(not mtime) %attr(0600,root,root) %_sysconfdir/cron.d/*
cvsextras 47272f4
%config(noreplace) %verify(not mtime) %_sysconfdir/logrotate.d/*
cvsextras 47272f4
cvsextras 47272f4
%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/*
cvsextras 47272f4
%doc %{_mandir}/man8/*
cvsextras 47272f4
%{_sbindir}/*
b77bb64
%_initrddir/clamd-wrapper
b77bb64
%dir %pkgdatadir
cvsextras 47272f4
%dir %{_sysconfdir}/clamd.d
b77bb64
%pkgdatadir/clamd-wrapper
b77bb64
cvsextras 47272f4
b77bb64
%if 0%{!?_without_milter:1}
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*
cvsextras 47272f4
%config %{_initrddir}/clamav-milter
cvsextras 47272f4
%config(noreplace) %verify(not mtime) %{_sysconfdir}/clamd.d/milter.conf
cvsextras 47272f4
%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
b77bb64
%endif	# _without_milter
cvsextras 47272f4
cvsextras 47272f4
%changelog
8a75e54
* Tue Jun 21 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.86-1
8a75e54
- updated to 0.86
8a75e54
- randomize freshclam startup times in -update's %%post script (suggested
8a75e54
  by Stephen Smoogen); this requires some more Requires(post): also
8a75e54
534af6f
* Wed May 18 2005 Warren Togami <wtogami@redhat.com> - 0.85.1-4
534af6f
- fix dist tagging the way Enrico wants it
534af6f
534af6f
* Tue May 17 2005 Oliver Falk <oliver@linux-kernel.at>					  - 0.85.1-2
534af6f
- Rebuild
534af6f
534af6f
* Tue May 17 2005 Oliver Falk <oliver@linux-kernel.at>					  - 0.85.1-1
34179e2
- Update
34179e2
534af6f
* Sat May 14 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.85-0
534af6f
- updated to 0.85
534af6f
534af6f
* Sun May  1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.84-0
534af6f
- updated to 0.84
534af6f
534af6f
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
534af6f
- rebuilt
534af6f
c19278e
* Tue Feb 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.83-1
c19278e
- updated to 0.83
c19278e
5ec291e
* Tue Feb  8 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.82-1
5ec291e
- updated to 0.82
5ec291e
- minor spec cleanups
5ec291e
b77bb64
* Fri Jan 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.81-0.fdr.2
b77bb64
- build the package with '--disable-zlib-vcheck' because RH is unable to
b77bb64
  apply a fix for a 5 month old and solved security issue.  Please fill
b77bb64
  your comments at https://bugzilla.redhat.com/beta/show_bug.cgi?id=131385
b77bb64
- added 'BuildRequires: bc' (should work without also, but ./configure
b77bb64
  gives out ugly warnings else)
b77bb64
b77bb64
* Fri Jan 28 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.81-0.fdr.1
b77bb64
- updated to 0.81
b77bb64
- do not ship the 'clamd.milter' daemon anymore; clamav-milter supports
b77bb64
  an internal mode now which is enabled by default
b77bb64
- updated -milter %%description
b77bb64
b77bb64
* Thu Jan 20 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.80-0.fdr.2
b77bb64
- s!cron.d/clamav!cron.d/clamav-update! in the %%description of the -update
b77bb64
  subpackage (https://bugzilla.fedora.us/show_bug.cgi?id=1715#c39)
b77bb64
b77bb64
* Wed Nov  3 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.80-0.fdr.1
b77bb64
- updated to 0.80
b77bb64
- removed DMS, FreeBSD-HOWTO and localized docs as it is not shipped anymore
b77bb64
- buildrequire 'curl-devel'
b77bb64
- renamed clamav.conf to clamd.conf (upstream change)
b77bb64
- updated -initoff patch
b77bb64
b77bb64
* Tue Sep 14 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.75.1-0.fdr.1
b77bb64
- updated to 0.75.1
b77bb64
- use %%configure, the problems with the architecture specification
b77bb64
  seem to have passed (probably because of an autoconf update)
b77bb64
- set mode 0600 for the cron-script (required by vixie-cron)
b77bb64
- made the cronjob a spambot and send mail about deactivated freshclam
b77bb64
  service to nearly everybody... (root, postmaster, webmaster)
b77bb64
- other fixes in the notification cronjob
b77bb64
b77bb64
* Fri Jul 23 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.75-0.fdr.1
b77bb64
- updated to 0.75
b77bb64
b77bb64
* Thu Jul 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.74-0.fdr.2
b77bb64
- moved /usr/bin/clamav-config from main into -devel
b77bb64
b77bb64
* Wed Jun 30 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.74-0.fdr.1
b77bb64
- updated to 0.74
b77bb64
b77bb64
* Mon Jun 14 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.73-0.fdr.1
b77bb64
- updated to 0.73
b77bb64
- added pkgconfig file
b77bb64
b77bb64
* Fri Jun 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.3
b77bb64
- notify the user about a deactivated clamav-update service
b77bb64
- added clamd-gen script which generates template spec-files for
b77bb64
  services using clamd
b77bb64
- copied template configuration files to %pkgdatadir/template (needed
b77bb64
  for clamd-gen)
b77bb64
- moved the clamd-wrapper from %_initrddir to %{pkgdatadir}; a symlink
b77bb64
  will be provided for compatibility reasons
b77bb64
- conditionalized building of the -milter subpackage ('--without
b77bb64
  milter' switch) to enable builds on RH73 (bug #1715, comment #5/#7)
b77bb64
b77bb64
* Fri Jun  4 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.2
b77bb64
- removed 'BuildRequires: dietlibc'; it was a leftover from the
b77bb64
  pre-use-signal era (before 0.70) (bug #1716)
b77bb64
b77bb64
* Thu Jun  3 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.72-0.fdr.1
b77bb64
- updated to 0.72
b77bb64
cvsextras 47272f4
* Thu May 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.71-0.fdr.2
cvsextras 47272f4
- removed the randomization in the cronjob; it seems to be impossible
cvsextras 47272f4
  to use the mod-operator (%%) there. Instead of, the user has to
cvsextras 47272f4
  replace some placeholders...
cvsextras 47272f4
cvsextras 47272f4
* Wed May 19 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.71-0.fdr.1
cvsextras 47272f4
- updated to 0.71
cvsextras 47272f4
cvsextras 47272f4
* Fri May  7 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.1.1
cvsextras 47272f4
- quote 'EOF' to delay $RANDOM expansion
cvsextras 47272f4
cvsextras 47272f4
* Tue Apr 27 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.2
cvsextras 47272f4
- updated GECOS entry for the 'clamav' user to describe its purpose
cvsextras 47272f4
  more accurately
cvsextras 47272f4
- use explicit '-m755' when creating directories with install
cvsextras 47272f4
cvsextras 47272f4
* Tue Apr 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.70-0.fdr.1
cvsextras 47272f4
- updated to 0.70; rediffed some patches
cvsextras 47272f4
- updated logrotate script to use signals and documented the steps
cvsextras 47272f4
  which are needed to make it work
cvsextras 47272f4
- adapted initscript to use signals instead of sockwrite
cvsextras 47272f4
- removed sockwrite; signals can now be used to reload the database
cvsextras 47272f4
- added logfile to the -milter subpackage
cvsextras 47272f4
cvsextras 47272f4
* Tue Apr 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.2.1
cvsextras 47272f4
- tagged some Requires:, since clamav-server is required in the milter-%%post* scriptlets
cvsextras 47272f4
cvsextras 47272f4
* Sat Mar 20 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.2
cvsextras 47272f4
- split the double Requires(...,...): statements; see
cvsextras 47272f4
  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118773
cvsextras 47272f4
- require the recent fedora-usermgmt package (0.7) which fixes similar
cvsextras 47272f4
  ordering issues
cvsextras 47272f4
cvsextras 47272f4
* Thu Mar 18 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.68-0.fdr.1
cvsextras 47272f4
- updated to 0.68 (using the -1 version)
cvsextras 47272f4
- ship milter-files in the -milter instead of the -server subpackage
cvsextras 47272f4
cvsextras 47272f4
* Tue Feb 24 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.3
cvsextras 47272f4
- fixed ':' vs. '.' in chown
cvsextras 47272f4
cvsextras 47272f4
* Tue Feb 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.2
cvsextras 47272f4
- randomize freshclam startup to prevent server peaks
cvsextras 47272f4
cvsextras 47272f4
* Mon Feb 16 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.67-0.fdr.1
cvsextras 47272f4
- updated to 0.67 (using the -1 version)
cvsextras 47272f4
cvsextras 47272f4
* Wed Feb 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.66-0.fdr.2
cvsextras 47272f4
- updated to 0.66; important, packaging-relevant changes are
cvsextras 47272f4
  freshclam:
cvsextras 47272f4
  * $http_proxy is not supported anymore; you have to configure it in
cvsextras 47272f4
    /etc/freshclam.conf
cvsextras 47272f4
  * the logfile has been renamed to /var/log/freshclam.log
cvsextras 47272f4
- removed %%check section; buildroot check is implemented in local
cvsextras 47272f4
  testsuite already
cvsextras 47272f4
- added some %%verify(not mtime) modifiers to avoid unnecessary .rpmnew
cvsextras 47272f4
  files
cvsextras 47272f4
- added some directory-Requires:
cvsextras 47272f4
- activated milter-package and made it work
cvsextras 47272f4
- added patch to disable clamav-milter service by default
cvsextras 47272f4
- renamed /var/run/clamav.<SERVICE> to /var/run/clamd.<SERVICE>; this
cvsextras 47272f4
  makes things more consistently but can break backward compatibility. The
cvsextras 47272f4
  initscript should deal with the old version too, but I would not bet on
cvsextras 47272f4
  it...
cvsextras 47272f4
- updated some descriptions
cvsextras 47272f4
- fixed the update-mechanism; now it happens in two stages: at first,
cvsextras 47272f4
  the files will be downloaded as user 'clamav' and then, root initiates
cvsextras 47272f4
  the daemon-reload.
cvsextras 47272f4
cvsextras 47272f4
* Mon Feb  9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.65-0.fdr.5
cvsextras 47272f4
- added security fix for
cvsextras 47272f4
  http://www.securityfocus.com/archive/1/353194/2004-02-06/2004-02-12/1
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
534af6f
* Tue Sep 17 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
cvsextras 47272f4
- Initial build.