Thu Apr 1 12:02:23 2010 UTC ()
Updated mail/clamav to 0.96

This release of ClamAV introduces new malware detection mechanisms and other
significant improvements to the scan engine. The key features include:

    - The Bytecode Interpreter: the interpreter built into LibClamAV allows
      the signature writers to create and distribute very complex detection
      routines and remotely enhance the scanner's functionality

    - Heuristic improvements: improve the PE heuristics detection engine by
      adding support of bogus icons and fake PE header information. In a
      nutshell, ClamAV can now detect malware that tries to disguise itself
      as a harmless application by using the most common Windows program icons.

    - Signature Improvements: logical signature improvements to allow more
      detailed matching and referencing groups of signatures. Additionally,
      improvements to wildcard matching on word boundaries and newlines.

    - Support for new archives: 7zip, InstallShield and CPIO. LibClamAV
      can now transparently unpack and inspect their contents.

    - Support for new executable file formats: 64-bit ELF files and OS X
      Universal Binaries with Mach-O files. Additionally, the PE module
      can now decompress and inspect executables packed with UPX 3.0.

    - Support for DazukoFS in clamd

    - Performance improvements: overall performance improvements and memory
      optimizations for a better overall resource utilization experience.

    - Native Windows Support: ClamAV will now build natively under Visual
      Studio. This will allow 3rd Party application developers on Windows
      to easily integrate LibClamAV into their applications.

The complete list of changes is available in the ChangeLog file. For upgrade
notes and tips please see: https://wiki.clamav.net/Main/UpgradeNotes096


(martti)
diff -r1.100 -r1.101 pkgsrc/mail/clamav/Makefile
diff -r1.22 -r1.23 pkgsrc/mail/clamav/PLIST
diff -r1.62 -r1.63 pkgsrc/mail/clamav/distinfo
diff -r1.19 -r1.20 pkgsrc/mail/clamav/patches/patch-aa
diff -r1.19 -r1.20 pkgsrc/mail/clamav/patches/patch-ad
diff -r0 -r1.13 pkgsrc/mail/clamav/patches/patch-ab
diff -r0 -r1.7 pkgsrc/mail/clamav/patches/patch-ac
diff -r1.10 -r1.11 pkgsrc/mail/clamav/patches/patch-af
diff -r1.3 -r1.4 pkgsrc/mail/clamav/patches/patch-ag

cvs diff -r1.100 -r1.101 pkgsrc/mail/clamav/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/clamav/Attic/Makefile 2010/03/24 19:43:26 1.100
+++ pkgsrc/mail/clamav/Attic/Makefile 2010/04/01 12:02:22 1.101
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1# $NetBSD: Makefile,v 1.100 2010/03/24 19:43:26 asau Exp $ 1# $NetBSD: Makefile,v 1.101 2010/04/01 12:02:22 martti Exp $
2 2
3DISTNAME= clamav-${CLAMAV_VERSION} 3DISTNAME= clamav-${CLAMAV_VERSION}
4PKGNAME= clamav-${CLAMAV_VERSION:S/-/./} 4PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
5PKGREVISION= 2 5#PKGREVISION= 1
6CATEGORIES= mail 6CATEGORIES= mail
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.clamav.net/ 10HOMEPAGE= http://www.clamav.net/
11COMMENT= Anti-virus toolkit 11COMMENT= Anti-virus toolkit
12 12
13LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2
14 14
15PKG_INSTALLATION_TYPES= overwrite pkgviews 15PKG_INSTALLATION_TYPES= overwrite pkgviews
16PKG_DESTDIR_SUPPORT= user-destdir 16PKG_DESTDIR_SUPPORT= user-destdir
17 17
18CLAMAV_VERSION= 0.95.3 18CLAMAV_VERSION= 0.96
19 19
20USE_LIBTOOL= yes 20USE_LIBTOOL= yes
21 21
22GNU_CONFIGURE= yes 22GNU_CONFIGURE= yes
23CONFIGURE_ARGS+= --disable-clamav 23CONFIGURE_ARGS+= --disable-clamav
24CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 24CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
25CONFIGURE_ARGS+= --with-dbdir=${CLAMAV_DBDIR} 25CONFIGURE_ARGS+= --with-dbdir=${CLAMAV_DBDIR}
26CONFIGURE_ARGS+= --with-user=${CLAMAV_USER} 26CONFIGURE_ARGS+= --with-user=${CLAMAV_USER}
27CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP} 27CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP}
28CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib} 28CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
29CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include 29CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include
30CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib 30CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib
31 31

cvs diff -r1.22 -r1.23 pkgsrc/mail/clamav/Attic/PLIST (expand / switch to unified diff)

--- pkgsrc/mail/clamav/Attic/PLIST 2009/06/14 18:04:27 1.22
+++ pkgsrc/mail/clamav/Attic/PLIST 2010/04/01 12:02:22 1.23
@@ -1,15 +1,16 @@ @@ -1,15 +1,16 @@
1@comment $NetBSD: PLIST,v 1.22 2009/06/14 18:04:27 joerg Exp $ 1@comment $NetBSD: PLIST,v 1.23 2010/04/01 12:02:22 martti Exp $
2bin/clamav-config 2bin/clamav-config
 3bin/clambc
3bin/clamconf 4bin/clamconf
4bin/clamdscan 5bin/clamdscan
5bin/clamdtop 6bin/clamdtop
6bin/clamscan 7bin/clamscan
7bin/freshclam 8bin/freshclam
8bin/sigtool 9bin/sigtool
9include/clamav.h 10include/clamav.h
10lib/libclamav.la 11lib/libclamav.la
11lib/libclamunrar.la 12lib/libclamunrar.la
12lib/libclamunrar_iface.la 13lib/libclamunrar_iface.la
13lib/pkgconfig/libclamav.pc 14lib/pkgconfig/libclamav.pc
14man/man1/clamconf.1 15man/man1/clamconf.1
15man/man1/clamdscan.1 16man/man1/clamdscan.1

cvs diff -r1.62 -r1.63 pkgsrc/mail/clamav/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/mail/clamav/Attic/distinfo 2010/01/07 15:00:35 1.62
+++ pkgsrc/mail/clamav/Attic/distinfo 2010/04/01 12:02:22 1.63
@@ -1,9 +1,11 @@ @@ -1,9 +1,11 @@
1$NetBSD: distinfo,v 1.62 2010/01/07 15:00:35 joerg Exp $ 1$NetBSD: distinfo,v 1.63 2010/04/01 12:02:22 martti Exp $
2 2
3SHA1 (clamav-0.95.3.tar.gz) = ab4b1f49d0f24154767d303d6a27b74acf6f4b59 3SHA1 (clamav-0.96.tar.gz) = be7cb37f2a6121cacc3cd3969eee212b96ef6b57
4RMD160 (clamav-0.95.3.tar.gz) = c68a2948aa9ab7a3b5f8e9744322d3606ae6df71 4RMD160 (clamav-0.96.tar.gz) = d9147d1da4fc7fa3e8d42b25c58a93f6bbaa588b
5Size (clamav-0.95.3.tar.gz) = 26919541 bytes 5Size (clamav-0.96.tar.gz) = 39792593 bytes
6SHA1 (patch-aa) = 26115741ed1a73a26252b596ab0a92dc8cd70fda 6SHA1 (patch-aa) = cf09def5ff3de0a551bb5cf8ec232cf7f7e0b54e
7SHA1 (patch-ad) = 70706e96ddaaa9cb4756c91474f95705edeed199 7SHA1 (patch-ab) = a4d097b785f870cd6213811f504a553e6b87e229
8SHA1 (patch-af) = 3c5b8cdab88d2d990ff989c43541f360c2d4e4c5 8SHA1 (patch-ac) = d14cd2c0646c4d390f10b6b642e95b2638fa194b
9SHA1 (patch-ag) = e9c2f308b9418631ac5c428126336937c4e30401 9SHA1 (patch-ad) = a6ea0f1e439feef3b6b9148dcea37c9b58b9d773
 10SHA1 (patch-af) = ebd5b67c07fe58df8b303a34d1e64a772f6983d6
 11SHA1 (patch-ag) = 64585150298220cff2257fd8b98a34f6c277d33d

cvs diff -r1.19 -r1.20 pkgsrc/mail/clamav/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/mail/clamav/patches/Attic/patch-aa 2009/06/11 04:38:18 1.19
+++ pkgsrc/mail/clamav/patches/Attic/patch-aa 2010/04/01 12:02:22 1.20
@@ -1,12 +1,14 @@ @@ -1,12 +1,14 @@
1$NetBSD: patch-aa,v 1.19 2009/06/11 04:38:18 martti Exp $ 1$NetBSD: patch-aa,v 1.20 2010/04/01 12:02:22 martti Exp $
 2
 3Fix compileation error DragonFly.
2 4
3--- clamdtop/clamdtop.c.orig 2009-06-01 19:20:12.000000000 +0300 5--- clamdtop/clamdtop.c.orig 2009-06-01 19:20:12.000000000 +0300
4+++ clamdtop/clamdtop.c 2009-06-11 07:31:58.000000000 +0300 6+++ clamdtop/clamdtop.c 2009-06-11 07:31:58.000000000 +0300
5@@ -33,6 +33,7 @@ 7@@ -33,6 +33,7 @@
6 #endif 8 #endif
7  9
8 #include <unistd.h> 10 #include <unistd.h>
9+#include <stdarg.h> 11+#include <stdarg.h>
10 #include <stdio.h> 12 #include <stdio.h>
11 #include <stdlib.h> 13 #include <stdlib.h>
12 #include <string.h> 14 #include <string.h>

cvs diff -r1.19 -r1.20 pkgsrc/mail/clamav/patches/Attic/patch-ad (expand / switch to unified diff)

--- pkgsrc/mail/clamav/patches/Attic/patch-ad 2009/10/29 07:06:09 1.19
+++ pkgsrc/mail/clamav/patches/Attic/patch-ad 2010/04/01 12:02:22 1.20
@@ -1,13 +1,15 @@ @@ -1,13 +1,15 @@
1$NetBSD: patch-ad,v 1.19 2009/10/29 07:06:09 martti Exp $ 1$NetBSD: patch-ad,v 1.20 2010/04/01 12:02:22 martti Exp $
2 2
3--- docs/Makefile.in.orig 2009-10-28 17:54:51.000000000 +0200 3Fix compileation error DragonFly.
4+++ docs/Makefile.in 2009-10-29 08:42:26.000000000 +0200 4
5@@ -261,6 +261,8 @@ 5--- docs/Makefile.in.orig 2010-03-24 19:01:19.000000000 +0200
 6+++ docs/Makefile.in 2010-04-01 12:23:43.000000000 +0300
 7@@ -270,6 +270,8 @@
6 man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1 man/clamdtop.1 8 man_MANS = man/clamscan.1 man/freshclam.1 man/sigtool.1 man/clamd.8 man/clamd.conf.5 man/clamdscan.1 man/clamav-milter.8 man/freshclam.conf.5 man/clamconf.1 man/clamdtop.1
7 all: all-am 9 all: all-am
8  10
9+@BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@MILTER_MANS = man/clamav-milter.8 11+@BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@MILTER_MANS = man/clamav-milter.8
10+ 12+
11 .SUFFIXES: 13 .SUFFIXES:
12 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) 14 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
13 @for dep in $?; do \ 15 @for dep in $?; do \

File Added: pkgsrc/mail/clamav/patches/Attic/patch-ab
$NetBSD: patch-ab,v 1.13 2010/04/01 12:02:22 martti Exp $

Make this pkgsrc friedly.

--- libclamav/c++/llvm/utils/buildit/build_llvm.orig	2010-04-01 12:29:52.000000000 +0300
+++ libclamav/c++/llvm/utils/buildit/build_llvm	2010-04-01 12:30:04.000000000 +0300
@@ -232,7 +232,7 @@
     LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
     OPTIMIZE_OPTION='-O3' VERBOSE=1 install
 
-if ! test $? == 0 ; then
+if ! test $? = 0 ; then
     echo "error: LLVM 'make install' failed!"
     exit 1
 fi 

File Added: pkgsrc/mail/clamav/patches/Attic/patch-ac
$NetBSD: patch-ac,v 1.7 2010/04/01 12:02:22 martti Exp $

Make this pkgsrc friedly.

--- libclamav/c++/configure.orig	2010-04-01 12:30:33.000000000 +0300
+++ libclamav/c++/configure	2010-04-01 12:31:05.000000000 +0300
@@ -14460,7 +14460,7 @@
   enable_optimized=default
 fi
 
- if test "x$enable_optimized" == "xno"; then
+ if test "x$enable_optimized" = "xno"; then
   DEBUG_BUILD_TRUE=
   DEBUG_BUILD_FALSE='#'
 else

cvs diff -r1.10 -r1.11 pkgsrc/mail/clamav/patches/Attic/patch-af (expand / switch to unified diff)

--- pkgsrc/mail/clamav/patches/Attic/patch-af 2009/10/29 07:06:09 1.10
+++ pkgsrc/mail/clamav/patches/Attic/patch-af 2010/04/01 12:02:23 1.11
@@ -1,18 +1,20 @@ @@ -1,18 +1,20 @@
1$NetBSD: patch-af,v 1.10 2009/10/29 07:06:09 martti Exp $ 1$NetBSD: patch-af,v 1.11 2010/04/01 12:02:23 martti Exp $
2 2
3--- database/Makefile.in.orig 2009-10-28 17:54:51.000000000 +0200 3Fix compileation error DragonFly.
4+++ database/Makefile.in 2009-10-29 08:47:19.000000000 +0200 4
5@@ -423,17 +423,6 @@ 5--- database/Makefile.in.orig 2010-03-24 19:01:19.000000000 +0200
 6+++ database/Makefile.in 2010-04-01 12:24:10.000000000 +0300
 7@@ -432,17 +432,6 @@
6 $(mkinstalldirs) $(DESTDIR)$(DBINST);\ 8 $(mkinstalldirs) $(DESTDIR)$(DBINST);\
7 test -f $(DESTDIR)$(DBINST)/main.cvd || test -f $(DESTDIR)$(DBINST)/main.cld || $(INSTALL_DATA) $(srcdir)/main.cvd $(DESTDIR)$(DBINST);\ 9 test -f $(DESTDIR)$(DBINST)/main.cvd || test -f $(DESTDIR)$(DBINST)/main.cld || $(INSTALL_DATA) $(srcdir)/main.cvd $(DESTDIR)$(DBINST);\
8 test -f $(DESTDIR)$(DBINST)/daily.cvd || test -f $(DESTDIR)$(DBINST)/daily.cld || $(INSTALL_DATA) $(srcdir)/daily.cvd $(DESTDIR)$(DBINST);\ 10 test -f $(DESTDIR)$(DBINST)/daily.cvd || test -f $(DESTDIR)$(DBINST)/daily.cld || $(INSTALL_DATA) $(srcdir)/daily.cvd $(DESTDIR)$(DBINST);\
9- if test `id|sed -e 's/^.[^(]*(\([^)]*\)).*/\1/'` = "root" && test -n "${CLAMAVUSER}" && test -n "${CLAMAVGROUP}"; then \ 11- if test `id|sed -e 's/^.[^(]*(\([^)]*\)).*/\1/'` = "root" && test -n "${CLAMAVUSER}" && test -n "${CLAMAVGROUP}"; then \
10- chmod 775 $(DESTDIR)$(DBINST); \ 12- chmod 775 $(DESTDIR)$(DBINST); \
11- chown ${CLAMAVUSER} $(DESTDIR)$(DBINST); \ 13- chown ${CLAMAVUSER} $(DESTDIR)$(DBINST); \
12- chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST); \ 14- chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST); \
13- if test -f $(DESTDIR)$(DBINST)/main.cvd; then chmod 664 $(DESTDIR)$(DBINST)/main.cvd; fi;\ 15- if test -f $(DESTDIR)$(DBINST)/main.cvd; then chmod 664 $(DESTDIR)$(DBINST)/main.cvd; fi;\
14- if test -f $(DESTDIR)$(DBINST)/main.cvd; then chown ${CLAMAVUSER} $(DESTDIR)$(DBINST)/main.cvd; fi;\ 16- if test -f $(DESTDIR)$(DBINST)/main.cvd; then chown ${CLAMAVUSER} $(DESTDIR)$(DBINST)/main.cvd; fi;\
15- if test -f $(DESTDIR)$(DBINST)/main.cvd; then chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST)/main.cvd; fi;\ 17- if test -f $(DESTDIR)$(DBINST)/main.cvd; then chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST)/main.cvd; fi;\
16- if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chmod 664 $(DESTDIR)$(DBINST)/daily.cvd; fi;\ 18- if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chmod 664 $(DESTDIR)$(DBINST)/daily.cvd; fi;\
17- if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chown ${CLAMAVUSER} $(DESTDIR)$(DBINST)/daily.cvd; fi;\ 19- if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chown ${CLAMAVUSER} $(DESTDIR)$(DBINST)/daily.cvd; fi;\
18- if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST)/daily.cvd; fi;\ 20- if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST)/daily.cvd; fi;\

cvs diff -r1.3 -r1.4 pkgsrc/mail/clamav/patches/Attic/patch-ag (expand / switch to unified diff)

--- pkgsrc/mail/clamav/patches/Attic/patch-ag 2010/01/07 15:00:35 1.3
+++ pkgsrc/mail/clamav/patches/Attic/patch-ag 2010/04/01 12:02:23 1.4
@@ -1,10 +1,14 @@ @@ -1,10 +1,14 @@
1--- libclamav/others.h.orig 2010-01-06 19:05:29 -1000 1$NetBSD: patch-ag,v 1.4 2010/04/01 12:02:23 martti Exp $
2+++ libclamav/others.h 2010-01-06 19:05:39 -1000 2
3@@ -29,6 +29,7 @@ 3Fix compileation error DragonFly.
 4
 5--- libclamav/others.h.orig 2010-03-31 19:39:38.000000000 +0300
 6+++ libclamav/others.h 2010-04-01 12:24:33.000000000 +0300
 7@@ -33,6 +33,7 @@
4  8
5 #include <stdio.h> 9 #include <stdio.h>
6 #include <stdlib.h> 10 #include <stdlib.h>
7+#include <unistd.h> 11+#include <unistd.h>
8 #include "cltypes.h" 12 #include "cltypes.h"
9  13
10 #include "clamav.h" 14 #include "clamav.h"