This commit is contained in:
committed by
Git OBS Bridge
parent
4994c01313
commit
4e2cb1319e
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5c694084f662d294ed18820e460a60d65774711f5dd383af18324a8e2e77705f
|
|
||||||
size 14869157
|
|
3
clamav-0.93.tar.bz2
Normal file
3
clamav-0.93.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:28b86fee72b0b666f7fff497255f01c4fc6b914709491a5d081775274d0c4387
|
||||||
|
size 15862333
|
@@ -149,21 +149,16 @@ rc_reset
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting Clam AntiVirus daemon "
|
echo -n "Starting Clam AntiVirus daemon "
|
||||||
# Check if there is a virus definition file
|
if ! test -f $CLAMD_DBDIR/main.cvd -o -f $CLAMD_DBDIR/main.cld ; then
|
||||||
if ! test -f $CLAMD_DBDIR/main.cvd -o -d $CLAMD_DBDIR/main.inc ; then
|
rc_failed
|
||||||
echo ""
|
rc_status -v
|
||||||
echo " Virus definitions are missing from $CLAMD_DB."
|
echo " ClamAV Virus definition files are missing from $CLAMD_DBDIR."
|
||||||
echo " Either install the clamav-db package or run freshclam "
|
echo " Either install the clamav-db package or run freshclam."
|
||||||
echo -n " to get the virus definitions."
|
else
|
||||||
rc_failed 6
|
|
||||||
else
|
|
||||||
## Start daemon with startproc(8). If this fails
|
|
||||||
## the return value is set appropriately by startproc.
|
|
||||||
startproc -p $CLAMD_PIDFILE $CLAMD_BIN
|
startproc -p $CLAMD_PIDFILE $CLAMD_BIN
|
||||||
|
rc_status -v
|
||||||
fi
|
fi
|
||||||
# Remember status and be verbose
|
|
||||||
rc_status -v
|
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Shutting down Clam AntiVirus daemon "
|
echo -n "Shutting down Clam AntiVirus daemon "
|
||||||
|
@@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 18 19:04:35 CEST 2008 - max@suse.de
|
||||||
|
|
||||||
|
- Convert the database to the new format instead of running
|
||||||
|
freshclam to re-fetch it (bnc#380787).
|
||||||
|
- Added main.cld and daily.cld as %ghost
|
||||||
|
- Refined the logic in %post of clamav-db as to when the dist
|
||||||
|
files need to get copied over.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 15 13:07:00 CEST 2008 - max@suse.de
|
||||||
|
|
||||||
|
- Security update 0.93 (bnc#350987, bnc#368963).
|
||||||
|
- CVE-2007-6595: symlink attack on temporary files
|
||||||
|
- CVE-2007-6596: recognize Base64 UUEncoded archives
|
||||||
|
- CVE-2008-1100: Buffer overflow in the cli_scanpe function.
|
||||||
|
- Remove bogus dependencies from libclamav.pc (bnc#196236)
|
||||||
|
- Run freshclam on update before restarting clamd to convert the
|
||||||
|
database into the new format.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 13 12:12:56 CET 2008 - max@suse.de
|
Wed Feb 13 12:12:56 CET 2008 - max@suse.de
|
||||||
|
|
||||||
|
94
clamav.spec
94
clamav.spec
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package clamav (Version 0.92.1)
|
# spec file for package clamav (Version 0.93)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
@@ -19,19 +19,18 @@ BuildRequires: bc gmp-devel pkgconfig zlib-devel
|
|||||||
BuildRequires: pwdutils
|
BuildRequires: pwdutils
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} >= 0910
|
%if 0%{?suse_version} >= 0910
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: sed sendmail sendmail-devel tcpd-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: sendmail sendmail-devel
|
|
||||||
Summary: Antivirus Toolkit
|
Summary: Antivirus Toolkit
|
||||||
Version: 0.92.1
|
Version: 0.93
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
Url: http://www.clamav.net
|
Url: http://www.clamav.net
|
||||||
Requires: latex2html-pngicons
|
Requires: latex2html-pngicons
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
|
||||||
Obsoletes: clamav-db < 0.88.3
|
Obsoletes: clamav-db < 0.88.3
|
||||||
PreReq: %_sbindir/groupadd %_sbindir/useradd /usr/bin/awk /bin/sed
|
PreReq: %_sbindir/groupadd %_sbindir/useradd /usr/bin/awk /bin/sed /bin/tar
|
||||||
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: clamav-rcclamd
|
Source1: clamav-rcclamd
|
||||||
Source2: clamav-rcfreshclam
|
Source2: clamav-rcfreshclam
|
||||||
@@ -59,9 +58,10 @@ Authors:
|
|||||||
Nigel Horne
|
Nigel Horne
|
||||||
|
|
||||||
%package db
|
%package db
|
||||||
|
License: BSD 3-Clause; GPL v2 or later; LGPL v2.1 or later; Public Domain, Freeware; X11/MIT
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
Summary: Virus Database for ClamAV
|
Summary: Virus Database for ClamAV
|
||||||
PreReq: clamav sed /bin/cp
|
PreReq: clamav sed /bin/cp /usr/bin/awk /bin/rm
|
||||||
|
|
||||||
%description db
|
%description db
|
||||||
This package contains a snapshot of the virus description database for
|
This package contains a snapshot of the virus description database for
|
||||||
@@ -81,10 +81,10 @@ Authors:
|
|||||||
%patch3
|
%patch3
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %suse_version >= 1010
|
%if 0%{?suse_version} >= 1010
|
||||||
SP="-fstack-protector"
|
CFLAGS="-fstack-protector"
|
||||||
%endif
|
%endif
|
||||||
export CFLAGS="%optflags -fno-strict-aliasing $SP"
|
export CFLAGS="%optflags -fno-strict-aliasing $CFLAGS"
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=%_prefix \
|
--prefix=%_prefix \
|
||||||
--libdir=%_libdir \
|
--libdir=%_libdir \
|
||||||
@@ -97,8 +97,10 @@ export CFLAGS="%optflags -fno-strict-aliasing $SP"
|
|||||||
--with-group=vscan \
|
--with-group=vscan \
|
||||||
--with-tcpwrappers \
|
--with-tcpwrappers \
|
||||||
--with-libcurl \
|
--with-libcurl \
|
||||||
--disable-zlib-vcheck \
|
%if 0%{?suse_version} >= 0910
|
||||||
--enable-milter
|
--enable-milter \
|
||||||
|
%endif
|
||||||
|
--disable-zlib-vcheck
|
||||||
make %{?jobs:-j%jobs}
|
make %{?jobs:-j%jobs}
|
||||||
# SLES8 does not support %check
|
# SLES8 does not support %check
|
||||||
%if 0%{?suse_version} > 810 || 0%{!?suse_version:1}
|
%if 0%{?suse_version} > 810 || 0%{!?suse_version:1}
|
||||||
@@ -125,10 +127,15 @@ for f in %buildroot/var/lib/clamav/*.cvd; do
|
|||||||
mv $f $f.dist
|
mv $f $f.dist
|
||||||
touch $f
|
touch $f
|
||||||
done
|
done
|
||||||
|
touch %buildroot/var/lib/clamav/{main,daily}.cld
|
||||||
mkdir -p %buildroot/var/spool/amavis
|
mkdir -p %buildroot/var/spool/amavis
|
||||||
%if 0%{?suse_version:%suse_version} > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
rm %buildroot/%_libdir/*.la
|
rm %buildroot/%_libdir/*.la
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} > 0810
|
||||||
|
# Remove bogus dependencies from libclamav.pc
|
||||||
|
sed -i 's/^Libs: .*/Libs: -lclamav/' %buildroot%_libdir/pkgconfig/libclamav.pc
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %buildroot
|
rm -rf %buildroot
|
||||||
@@ -149,6 +156,7 @@ rm -rf %buildroot
|
|||||||
%dir %attr(700,vscan,root) /var/spool/amavis
|
%dir %attr(700,vscan,root) /var/spool/amavis
|
||||||
%dir /var/lib/clamav
|
%dir /var/lib/clamav
|
||||||
%ghost /var/lib/clamav/*.pid
|
%ghost /var/lib/clamav/*.pid
|
||||||
|
%ghost /var/lib/clamav/*.cld
|
||||||
%ghost /var/lib/clamav/*.cvd
|
%ghost /var/lib/clamav/*.cvd
|
||||||
/var/adm/fillup-templates/*
|
/var/adm/fillup-templates/*
|
||||||
|
|
||||||
@@ -163,12 +171,11 @@ rm -rf %buildroot
|
|||||||
%_sbindir/usermod vscan -g vscan 2> /dev/null || :
|
%_sbindir/usermod vscan -g vscan 2> /dev/null || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%run_ldconfig
|
/sbin/ldconfig
|
||||||
%{?fillup_only:%fillup_only -n clamav-milter}
|
%{?fillup_only:%fillup_only -n clamav-milter}
|
||||||
# merge config files on update
|
# merge config files on update
|
||||||
test "0$1" -lt 2 && exit 0
|
test "0$1" -lt 2 && exit 0
|
||||||
# The old default to run clamd in foreground mode was wrong
|
umask 022
|
||||||
OVERRIDE="Foreground no"
|
|
||||||
for f in /etc/clamd.conf /etc/freshclam.conf; do
|
for f in /etc/clamd.conf /etc/freshclam.conf; do
|
||||||
if test -e $f.rpmnew; then
|
if test -e $f.rpmnew; then
|
||||||
echo "Merging $f and $f.rpmnew"
|
echo "Merging $f and $f.rpmnew"
|
||||||
@@ -181,6 +188,30 @@ for f in /etc/clamd.conf /etc/freshclam.conf; do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# convert virus database file format when updating from < 0.93
|
||||||
|
DBDIR=$(awk '/^[[:space:]]*DatabaseDirectory/{print $NF}' /etc/clamd.conf)
|
||||||
|
cd ${DBDIR:=/var/lib/clamav}
|
||||||
|
umask 022
|
||||||
|
TMPFILE=$PWD/tmp.$$
|
||||||
|
for type in main daily; do
|
||||||
|
rm -f $TMPFILE
|
||||||
|
if test ! -f $type.cvd -a ! -f $type.cld -a -d $type.inc; then
|
||||||
|
cd $type.inc
|
||||||
|
test -f COPYING -a -f $type.info -a -f $type.db \
|
||||||
|
-a -f $type.hdb -a -f $type.mdb -a -f $type.ndb \
|
||||||
|
-a -f $type.zmd -a -f $type.fp || continue
|
||||||
|
awk 'NR==1{printf $0; for (i=length($0); i<512; i++) printf " "}' \
|
||||||
|
$type.info > $TMPFILE || continue
|
||||||
|
tar -c -f- COPYING $type.info $type.db $type.hdb $type.mdb \
|
||||||
|
$type.ndb $type.zmd $type.fp >> $TMPFILE || continue
|
||||||
|
cd ..
|
||||||
|
if test -f $TMPFILE; then
|
||||||
|
chown --reference $type.inc $TMPFILE 2>/dev/null
|
||||||
|
mv $TMPFILE $type.cld
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
rm -f $TMPFILE
|
||||||
|
|
||||||
%triggerpostun -- %name < 0.88.3
|
%triggerpostun -- %name < 0.88.3
|
||||||
# Move clamav.conf to clamd.conf when updating from an old version
|
# Move clamav.conf to clamd.conf when updating from an old version
|
||||||
@@ -200,7 +231,7 @@ fi
|
|||||||
%stop_on_removal clamd freshclam
|
%stop_on_removal clamd freshclam
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%run_ldconfig
|
/sbin/ldconfig
|
||||||
%restart_on_update clamd freshclam
|
%restart_on_update clamd freshclam
|
||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
|
|
||||||
@@ -214,15 +245,34 @@ getversion() {
|
|||||||
echo 0
|
echo 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
cd /var/lib/clamav
|
DBDIR=$(awk '/^[[:space:]]*DatabaseDirectory/{print $NF}' /etc/clamd.conf)
|
||||||
for distfile in {main,daily}.cvd.dist; do
|
cd ${DBDIR:=/var/lib/clamav}
|
||||||
datafile=${distfile%.dist}
|
for f in main daily; do
|
||||||
if test $(getversion $distfile) -gt $(getversion $datafile); then
|
vdist=$(getversion $f.cvd.dist)
|
||||||
cp -a $distfile $datafile
|
vcvd=$(getversion $f.cvd)
|
||||||
|
vcld=$(getversion $f.cld)
|
||||||
|
v=$((vcld > vcvd ? vcld : vcvd))
|
||||||
|
if test $vdist -gt $v; then
|
||||||
|
cp -a $f.cvd.dist $f.cvd
|
||||||
|
rm -f $f.cld
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 18 2008 max@suse.de
|
||||||
|
- Convert the database to the new format instead of running
|
||||||
|
freshclam to re-fetch it (bnc#380787).
|
||||||
|
- Added main.cld and daily.cld as %%ghost
|
||||||
|
- Refined the logic in %%post of clamav-db as to when the dist
|
||||||
|
files need to get copied over.
|
||||||
|
* Tue Apr 15 2008 max@suse.de
|
||||||
|
- Security update 0.93 (bnc#350987, bnc#368963).
|
||||||
|
- CVE-2007-6595: symlink attack on temporary files
|
||||||
|
- CVE-2007-6596: recognize Base64 UUEncoded archives
|
||||||
|
- CVE-2008-1100: Buffer overflow in the cli_scanpe function.
|
||||||
|
- Remove bogus dependencies from libclamav.pc (bnc#196236)
|
||||||
|
- Run freshclam on update before restarting clamd to convert the
|
||||||
|
database into the new format.
|
||||||
* Wed Feb 13 2008 max@suse.de
|
* Wed Feb 13 2008 max@suse.de
|
||||||
- Security update 0.92.1: (bnc#361374)
|
- Security update 0.92.1: (bnc#361374)
|
||||||
* CVE-2008-0318: libclamav PE File Integer Overflow Vulnerability
|
* CVE-2008-0318: libclamav PE File Integer Overflow Vulnerability
|
||||||
|
Reference in New Issue
Block a user