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/UpgradeNotes096diff -r1.100 -r1.101 pkgsrc/mail/clamav/Makefile
(martti)
@@ -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 | |||
3 | DISTNAME= clamav-${CLAMAV_VERSION} | 3 | DISTNAME= clamav-${CLAMAV_VERSION} | |
4 | PKGNAME= clamav-${CLAMAV_VERSION:S/-/./} | 4 | PKGNAME= clamav-${CLAMAV_VERSION:S/-/./} | |
5 | PKGREVISION= 2 | 5 | #PKGREVISION= 1 | |
6 | CATEGORIES= mail | 6 | CATEGORIES= mail | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/} | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.clamav.net/ | 10 | HOMEPAGE= http://www.clamav.net/ | |
11 | COMMENT= Anti-virus toolkit | 11 | COMMENT= Anti-virus toolkit | |
12 | 12 | |||
13 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
14 | 14 | |||
15 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 15 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
16 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
17 | 17 | |||
18 | CLAMAV_VERSION= 0.95.3 | 18 | CLAMAV_VERSION= 0.96 | |
19 | 19 | |||
20 | USE_LIBTOOL= yes | 20 | USE_LIBTOOL= yes | |
21 | 21 | |||
22 | GNU_CONFIGURE= yes | 22 | GNU_CONFIGURE= yes | |
23 | CONFIGURE_ARGS+= --disable-clamav | 23 | CONFIGURE_ARGS+= --disable-clamav | |
24 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | 24 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | |
25 | CONFIGURE_ARGS+= --with-dbdir=${CLAMAV_DBDIR} | 25 | CONFIGURE_ARGS+= --with-dbdir=${CLAMAV_DBDIR} | |
26 | CONFIGURE_ARGS+= --with-user=${CLAMAV_USER} | 26 | CONFIGURE_ARGS+= --with-user=${CLAMAV_USER} | |
27 | CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP} | 27 | CONFIGURE_ARGS+= --with-group=${CLAMAV_GROUP} | |
28 | CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib} | 28 | CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib} | |
29 | CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include | 29 | CONFIGURE_ARGS+= --with-ltdl-include=${BUILDLINK_PREFIX.libltdl}/include | |
30 | CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib | 30 | CONFIGURE_ARGS+= --with-ltdl-lib=${BUILDLINK_PREFIX.libltdl}/lib | |
31 | 31 |
@@ -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 $ | |
2 | bin/clamav-config | 2 | bin/clamav-config | |
3 | bin/clambc | |||
3 | bin/clamconf | 4 | bin/clamconf | |
4 | bin/clamdscan | 5 | bin/clamdscan | |
5 | bin/clamdtop | 6 | bin/clamdtop | |
6 | bin/clamscan | 7 | bin/clamscan | |
7 | bin/freshclam | 8 | bin/freshclam | |
8 | bin/sigtool | 9 | bin/sigtool | |
9 | include/clamav.h | 10 | include/clamav.h | |
10 | lib/libclamav.la | 11 | lib/libclamav.la | |
11 | lib/libclamunrar.la | 12 | lib/libclamunrar.la | |
12 | lib/libclamunrar_iface.la | 13 | lib/libclamunrar_iface.la | |
13 | lib/pkgconfig/libclamav.pc | 14 | lib/pkgconfig/libclamav.pc | |
14 | man/man1/clamconf.1 | 15 | man/man1/clamconf.1 | |
15 | man/man1/clamdscan.1 | 16 | man/man1/clamdscan.1 |
@@ -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 | |||
3 | SHA1 (clamav-0.95.3.tar.gz) = ab4b1f49d0f24154767d303d6a27b74acf6f4b59 | 3 | SHA1 (clamav-0.96.tar.gz) = be7cb37f2a6121cacc3cd3969eee212b96ef6b57 | |
4 | RMD160 (clamav-0.95.3.tar.gz) = c68a2948aa9ab7a3b5f8e9744322d3606ae6df71 | 4 | RMD160 (clamav-0.96.tar.gz) = d9147d1da4fc7fa3e8d42b25c58a93f6bbaa588b | |
5 | Size (clamav-0.95.3.tar.gz) = 26919541 bytes | 5 | Size (clamav-0.96.tar.gz) = 39792593 bytes | |
6 | SHA1 (patch-aa) = 26115741ed1a73a26252b596ab0a92dc8cd70fda | 6 | SHA1 (patch-aa) = cf09def5ff3de0a551bb5cf8ec232cf7f7e0b54e | |
7 | SHA1 (patch-ad) = 70706e96ddaaa9cb4756c91474f95705edeed199 | 7 | SHA1 (patch-ab) = a4d097b785f870cd6213811f504a553e6b87e229 | |
8 | SHA1 (patch-af) = 3c5b8cdab88d2d990ff989c43541f360c2d4e4c5 | 8 | SHA1 (patch-ac) = d14cd2c0646c4d390f10b6b642e95b2638fa194b | |
9 | SHA1 (patch-ag) = e9c2f308b9418631ac5c428126336937c4e30401 | 9 | SHA1 (patch-ad) = a6ea0f1e439feef3b6b9148dcea37c9b58b9d773 | |
10 | SHA1 (patch-af) = ebd5b67c07fe58df8b303a34d1e64a772f6983d6 | |||
11 | SHA1 (patch-ag) = 64585150298220cff2257fd8b98a34f6c277d33d |
@@ -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 | ||||
3 | Fix 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> |
@@ -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 | 3 | Fix 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 \ |
$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
$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
@@ -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 | 3 | Fix 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;\ |
@@ -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 @@ | 3 | Fix 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" |