update to clamav 0.98.3 (there appears to have been no 0.98.2) - license is

updated to GPLv2 + openssl exemptions.

notably: "Change to circumvent possible denial of service when processing
icons within specially crafted PE files. Icon limits are now in place with
corresponding clamd and clamscan configuration parameters."

also:
- support for common raw disk image formats
- experimental support of OpenIOC files in the signature database location
  ("No OpenIOC files will be delivered through freshclam")
- IPv6 now supported on all network sockets
- use OpenSSL file hash functions
- improved detection of malware scripts within image files
- pattern matcher improvements
- opt-in collection of statistics (--enable-stats / StatsEnabled) - NOT default
- various other fixes and improvements

libclamav major bump.
This commit is contained in:
sthen 2014-05-08 08:18:51 +00:00
parent 60abca085b
commit 396ffc610d
12 changed files with 53 additions and 49 deletions

View File

@ -1,27 +1,30 @@
# $OpenBSD: Makefile,v 1.88 2014/01/15 13:06:47 jasper Exp $
# $OpenBSD: Makefile,v 1.89 2014/05/08 08:18:51 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.98.1
DISTNAME= clamav-0.98.3
CATEGORIES= security
SHARED_LIBS= clamav 21.1 \
clamunrar 3.0 \
clamunrar_iface 3.0
SHARED_LIBS += clamav 22.0 # 7.22
SHARED_LIBS += clamunrar 3.0 # 7.22
SHARED_LIBS += clamunrar_iface 3.0
HOMEPAGE= http://www.clamav.net/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2/LGPL
# GPLv2/LGPL, with OpenSSL exemption
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= bz2 c ltdl m milter ncurses pthread xml2 z
WANTLIB += bz2 c crypto curl idn intl ltdl m milter ncurses pthread
WANTLIB += ssl xml2 z
BUILD_DEPENDS= devel/check \
devel/libexecinfo
LIB_DEPENDS= archivers/bzip2 \
devel/libtool,-ltdl \
net/curl \
textproc/libxml
RUN_DEPENDS= archivers/lha \

View File

@ -1,2 +1,2 @@
SHA256 (clamav-0.98.1.tar.gz) = NfXoTXNM3UUywcxsklYMWzHRwk8uHiA77wyhNR6yI9w=
SIZE (clamav-0.98.1.tar.gz) = 15431484
SHA256 (clamav-0.98.3.tar.gz) = J5Kp6HBqUW0ugTOYRvw4+U+o3T9gSy/enQsHWTcn9is=
SIZE (clamav-0.98.3.tar.gz) = 15543335

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-clamd_Makefile_in,v 1.15 2013/09/20 15:22:59 sthen Exp $
--- clamd/Makefile.in.orig Mon Sep 16 20:28:14 2013
+++ clamd/Makefile.in Fri Sep 20 15:27:54 2013
@@ -201,7 +201,9 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
$OpenBSD: patch-clamd_Makefile_in,v 1.16 2014/05/08 08:18:51 sthen Exp $
--- clamd/Makefile.in.orig Tue May 6 19:59:42 2014
+++ clamd/Makefile.in Thu May 8 00:45:57 2014
@@ -271,7 +271,9 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCOV = @LCOV@
LD = @LD@

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-database_Makefile_in,v 1.12 2014/01/15 13:06:47 jasper Exp $
--- database/Makefile.in.orig Mon Jan 13 18:02:18 2014
+++ database/Makefile.in Wed Jan 15 11:01:06 2014
@@ -465,6 +465,8 @@ uninstall-am:
$OpenBSD: patch-database_Makefile_in,v 1.13 2014/05/08 08:18:51 sthen Exp $
--- database/Makefile.in.orig Tue May 6 19:59:43 2014
+++ database/Makefile.in Thu May 8 00:45:57 2014
@@ -541,6 +541,8 @@ uninstall-am:
install-data-local:

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-etc_clamd_conf_sample,v 1.2 2014/01/15 13:06:47 jasper Exp $
--- etc/clamd.conf.sample.orig Mon Jan 13 18:02:34 2014
+++ etc/clamd.conf.sample Wed Jan 15 11:01:06 2014
$OpenBSD: patch-etc_clamd_conf_sample,v 1.3 2014/05/08 08:18:51 sthen Exp $
--- etc/clamd.conf.sample.orig Tue May 6 19:39:56 2014
+++ etc/clamd.conf.sample Thu May 8 00:45:57 2014
@@ -11,7 +11,7 @@ Example
# LogFile must be writable for the user running daemon.
# A full path is required.
@ -19,7 +19,7 @@ $OpenBSD: patch-etc_clamd_conf_sample,v 1.2 2014/01/15 13:06:47 jasper Exp $
# Only load the official signatures published by the ClamAV project.
# Default: no
@@ -191,7 +191,7 @@ Example
@@ -192,7 +192,7 @@ Example
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
@ -28,7 +28,7 @@ $OpenBSD: patch-etc_clamd_conf_sample,v 1.2 2014/01/15 13:06:47 jasper Exp $
# Initialize supplementary group access (clamd must be started by root).
# Default: no
@@ -452,7 +452,7 @@ Example
@@ -463,7 +463,7 @@ Example
# deeply the process should be continued.
# Note: setting this limit too high may result in severe damage to the system.
# Default: 16

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-libclamav_Makefile_in,v 1.21 2014/01/15 13:06:47 jasper Exp $
--- libclamav/Makefile.in.orig Mon Jan 13 18:02:34 2014
+++ libclamav/Makefile.in Wed Jan 15 11:01:06 2014
@@ -3156,6 +3156,9 @@ version.h: version.h.tmp
$OpenBSD: patch-libclamav_Makefile_in,v 1.22 2014/05/08 08:18:51 sthen Exp $
--- libclamav/Makefile.in.orig Tue May 6 19:59:44 2014
+++ libclamav/Makefile.in Thu May 8 00:45:57 2014
@@ -3339,6 +3339,9 @@ version.h: version.h.tmp
fi
version.h.tmp:

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-libclamav_mbox_c,v 1.9 2013/09/20 15:23:02 sthen Exp $
--- libclamav/mbox.c.orig Mon Sep 16 20:28:14 2013
+++ libclamav/mbox.c Fri Sep 20 15:27:54 2013
$OpenBSD: patch-libclamav_mbox_c,v 1.10 2014/05/08 08:18:51 sthen Exp $
--- libclamav/mbox.c.orig Tue May 6 19:39:56 2014
+++ libclamav/mbox.c Thu May 8 00:45:57 2014
@@ -24,11 +24,6 @@ static char const rcsid[] = "$Id: mbox.c,v 1.381 2007/
#include "clamav-config.h"
#endif
@ -11,5 +11,5 @@ $OpenBSD: patch-libclamav_mbox_c,v 1.9 2013/09/20 15:23:02 sthen Exp $
-#endif
-#endif
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-libclamav_ole2_extract_c,v 1.11 2014/01/15 13:06:47 jasper Exp $
--- libclamav/ole2_extract.c.orig Mon Jan 13 18:02:34 2014
+++ libclamav/ole2_extract.c Wed Jan 15 11:45:25 2014
@@ -202,7 +202,7 @@ static unsigned char magic_id[] = {0xd0, 0xcf, 0x11, 0
$OpenBSD: patch-libclamav_ole2_extract_c,v 1.12 2014/05/08 08:18:51 sthen Exp $
--- libclamav/ole2_extract.c.orig Tue May 6 19:42:41 2014
+++ libclamav/ole2_extract.c Thu May 8 00:45:57 2014
@@ -206,7 +206,7 @@ static unsigned char magic_id[] = {0xd0, 0xcf, 0x11, 0
static char *

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-libclamav_str_c,v 1.8 2013/09/20 15:23:03 sthen Exp $
--- libclamav/str.c.orig Mon Sep 16 20:28:14 2013
+++ libclamav/str.c Fri Sep 20 15:27:54 2013
@@ -166,9 +166,9 @@ int cli_hex2str_to(const char *hex, char *ptr, size_t
$OpenBSD: patch-libclamav_str_c,v 1.9 2014/05/08 08:18:51 sthen Exp $
--- libclamav/str.c.orig Tue May 6 19:39:56 2014
+++ libclamav/str.c Thu May 8 00:45:57 2014
@@ -170,9 +170,9 @@ int cli_hex2str_to(const char *hex, char *ptr, size_t
for(i = 0; i < len; i += 2) {
if((c = cli_hex2int(hex[i])) >= 0) {

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-libclamav_vba_extract_c,v 1.7 2013/09/20 15:23:03 sthen Exp $
--- libclamav/vba_extract.c.orig Mon Sep 16 20:28:14 2013
+++ libclamav/vba_extract.c Fri Sep 20 15:27:54 2013
@@ -95,7 +95,7 @@ vba_endian_convert_32(uint32_t value, int big_endian)
$OpenBSD: patch-libclamav_vba_extract_c,v 1.8 2014/05/08 08:18:51 sthen Exp $
--- libclamav/vba_extract.c.orig Tue May 6 19:42:41 2014
+++ libclamav/vba_extract.c Thu May 8 00:45:57 2014
@@ -99,7 +99,7 @@ vba_endian_convert_32(uint32_t value, int big_endian)
static char *

View File

@ -1,10 +1,10 @@
$OpenBSD: patch-unit_tests_Makefile_in,v 1.2 2014/01/15 13:06:47 jasper Exp $
$OpenBSD: patch-unit_tests_Makefile_in,v 1.3 2014/05/08 08:18:51 sthen Exp $
unnecessary gnu-ism
--- unit_tests/Makefile.in.orig Mon Jan 13 18:02:34 2014
+++ unit_tests/Makefile.in Wed Jan 15 11:01:06 2014
@@ -1119,7 +1119,7 @@ check_clamd.sh: $(top_builddir)/test/clam.exe check_cl
--- unit_tests/Makefile.in.orig Tue May 6 19:59:45 2014
+++ unit_tests/Makefile.in Thu May 8 00:45:57 2014
@@ -1224,7 +1224,7 @@ check_clamd.sh: $(top_builddir)/test/clam.exe check_cl
check_clamscan.sh: $(top_builddir)/test/clam.exe
clamav.hdb: input/clamav.hdb

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.22 2013/09/20 15:23:03 sthen Exp $
@comment $OpenBSD: PLIST,v 1.23 2014/05/08 08:18:51 sthen Exp $
@newgroup _clamav:539
@newuser _clamav:539:539:daemon:Clam AntiVirus:/nonexistent:/sbin/nologin
@extraunexec rm -fr /var/db/clamav/*
@ -11,6 +11,7 @@ bin/clamav-config
@bin bin/clamdscan
@bin bin/clamdtop
@bin bin/clamscan
@bin bin/clamsubmit
@bin bin/freshclam
@bin bin/sigtool
include/clamav.h
@ -23,13 +24,13 @@ lib/libclamunrar.la
lib/libclamunrar_iface.a
lib/libclamunrar_iface.la
@lib lib/libclamunrar_iface.so.${LIBclamunrar_iface_VERSION}
lib/pkgconfig/
lib/pkgconfig/libclamav.pc
@man man/man1/clambc.1
@man man/man1/clamconf.1
@man man/man1/clamdscan.1
@man man/man1/clamdtop.1
@man man/man1/clamscan.1
@man man/man1/clamsubmit.1
@man man/man1/freshclam.1
@man man/man1/sigtool.1
@man man/man5/clamav-milter.conf.5