ports/145403: [UPDATE] security/clamav to version 0.96
Andrei Lavreniyuk
andy.lavr at gmail.com
Mon Apr 5 09:40:09 UTC 2010
>Number: 145403
>Category: ports
>Synopsis: [UPDATE] security/clamav to version 0.96
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 05 09:40:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Andrei Lavreniyuk
>Release: FreeBSD 8.0-STABLE
>Organization:
Technica-03, Inc.
>Environment:
FreeBSD datacenter.technica-03.local 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu Mar 25 12:32:37 EET 2010 root at datacenter.technica-03.local:/usr/obj/usr/src/sys/SMP64 amd64
>Description:
Wed Mar 31 19:30:59 CEST 2010 (tk)
----------------------------------
* V 0.96
Wed Mar 31 18:19:23 CEST 2010 (tk)
----------------------------------
* libclamav/mspack.c: fix Quantum decompressor (bb#1771)
Wed Mar 31 18:13:38 CEST 2010 (tk)
----------------------------------
* libclamav/mspack.c: improve unpacking of malformed cabinets (bb#1826)
Wed Mar 31 18:07:05 CEST 2010 (acab)
------------------------------------
* libclamav/7z: add recovery mode to 7z ansi
Wed Mar 31 16:27:18 EEST 2010 (edwin)
-------------------------------------
* shared/output.c: fix race condition in IDSESSION mode (bb #1838).
Wed Mar 31 15:36:23 2010 +0300 (edwin)
--------------------------------------
* unit_tests/check_common.sh: Fix print of test log when unit test fails (bb #1838).
Wed Mar 31 15:08:24 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm/lib/System/Win32/Signals.inc: Fix Ctrl-C handler on win32, thanks Sherpya!
Wed Mar 31 12:30:57 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm: Workaround bb #1898.
Wed Mar 31 11:43:28 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm: Pull LLVM 2.7 release branch last time.
Wed Mar 31 11:03:31 2010 +0300 (edwin)
--------------------------------------
* etc/clamd.conf: bb #1890.
Wed Mar 31 10:53:11 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode: jsnorm api.
Tue Mar 30 23:29:27 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm/configure: Do the atomic builtin tests using the C++ compiler,
since only C++ sources need it (bb #1904).
Tue Mar 30 23:22:23 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++: Update ClamBCRTChecks.cpp from bytecode compiler:
Check bounds of each pointer passed to/from APIcalls,
forbid recursion.
Tue Mar 30 18:05:10 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm/test: Remove some unused LLVM test files.
Tue Mar 30 15:18:45 CEST 2010 (tk)
----------------------------------
* freshclam: fix some issues with --submit-stats (bb#1902)
Thanks to Mark Pizzolato
Tue Mar 30 15:33:51 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm: Merge LLVM SVN r99883, fix double frees.
Tue Mar 30 13:09:10 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/llvm: Merge LLVM SVN r99881 to fix some more VNInfo leaks.
Tue Mar 30 11:10:58 2010 +0300 (edwin)
--------------------------------------
* unit_tests/check_bytecode.c: Increase timeout of testcase itself.
Tue Mar 30 11:07:05 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Minor optimization in JIT loader.
Tue Mar 30 10:42:46 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode.c: Fix use-of-uninit memory on zeroinitializer.
Tue Mar 30 00:34:49 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Update SELinux message.
Tue Mar 30 00:04:00 2010 +0300 (edwin)
--------------------------------------
* unit_tests/check_bytecode.c: Increase bytecode timeout for non-timeout tests.
Mon Mar 29 23:48:18 2010 +0300 (edwin)
--------------------------------------
* unit_tests/input/pdf.cbc: Update pdf.cbc.
Mon Mar 29 23:47:59 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode*: More interpreter fixes, pdf.cbc seems to be running now.
Mon Mar 29 22:33:20 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode_vm.c: Fix OP_BC_GEPZ/OP_BC_GEP1 in interpreter.
Mon Mar 29 21:06:47 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode*,c++,clambc.h: More fixes for pdf.cbc.
Mon Mar 29 12:09:07 2010 +0300 (edwin)
--------------------------------------
* unit_tests/check_bytecode.c: Separate bytecode tests into jit and interpreter.
Mon Mar 29 11:38:52 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode_vm.c, unit_tests: Fix inflate.cbc for the interpreter.
Sun Mar 28 23:46:41 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode_vm.c: Only show all the trace/debug messages in --enable-debug mode.
Sun Mar 28 23:27:05 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode*, unit_tests: Fix bswap.cbc in interpreter mode.
Sun Mar 28 20:15:48 2010 +0300 (edwin)
--------------------------------------
* libclamav/bytecode*, filtering.c: Fix some possible uninitialized value uses.
Sun Mar 28 13:52:29 2010 +0300 (edwin)
--------------------------------------
* libclamav/c++: Fallback to interpreter mode when SELinux denies 'execmem' access. (bb #1901).
Fri Mar 26 10:35:27 2010 +0200 (edwin)
--------------------------------------
* Increase timeout in unit test (bb #1899).
Fri Mar 26 10:35:11 2010 +0200 (edwin)
--------------------------------------
* configure: Fix linking with gold (bb #1903).
Wed Mar 24 18:29:55 CET 2010 (tk)
---------------------------------
* V 0.96rc2
Wed Mar 24 19:14:24 2010 +0200 (edwin)
--------------------------------------
* clamd/clamd.c: Fix typo(thanks Tomasz).
Wed Mar 24 18:34:58 2010 +0200 (edwin)
--------------------------------------
* libclamav: bytecode timeout 60s.
Wed Mar 24 18:23:01 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: bb #1879, port LLVM commit r98349.
Wed Mar 24 17:55:04 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: Downgrade some messages to debug.
Wed Mar 24 17:37:23 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_api.c,unit_tests: Fix valgrind warnings.
Wed Mar 24 17:27:14 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: Merge latest LLVM 2.7 release branch.
Wed Mar 24 17:22:34 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Disable JITDebugRegisterer, and fix unit_tests rule.
Wed Mar 24 17:07:14 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*, unit_tests: Fix more leaks.
Wed Mar 24 16:47:42 2010 +0200 (edwin)
--------------------------------------
* win32: update win32 proj.
Wed Mar 24 16:41:29 2010 +0200 (edwin)
--------------------------------------
* unit_tests/check_unit_vg.sh: Fix unit test script.
Wed Mar 24 16:35:40 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: port LLVM SVN r99160 correctly.
Wed Mar 24 16:25:57 2010 +0200 (edwin)
--------------------------------------
* unit_tests: Run check_clamav under valgrind too to actually detect the leaks.
Wed Mar 24 16:08:00 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: Port LLVM leakfixes from trunk.
Wed Mar 24 15:51:19 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: Fix memory leak. LLVM SVN r99400
.
Wed Mar 24 15:27:15 2010 +0200 (edwin)
--------------------------------------
* libclamav, unit_tests: Fix bswap.
Wed Mar 24 14:14:33 2010 +0200 (edwin)
--------------------------------------
* libclamav, unit_tests: Leak testcase.
Wed Mar 24 12:56:27 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvmcheck.sh: bb #1896.
Wed Mar 24 12:46:34 2010 +0200 (edwin)
--------------------------------------
* unit_tests: Add matchwithread.cbc to unit tests.
Wed Mar 24 11:29:56 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: match_with_read appears to be working!
Wed Mar 24 10:51:05 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: OP_BC_COPY again.
Wed Mar 24 10:41:11 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*,pe.h: Fix read of pedata in interpreter.
Wed Mar 24 10:16:41 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode.c: Fix OP_BC_COPY.
Wed Mar 24 00:07:17 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: Fix GEPZ.
Tue Mar 23 23:46:58 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode.c: Making progress on match_with_read.
Tue Mar 23 21:47:57 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: Interpreter fixes for accessing 'ctx'.
Tue Mar 23 16:33:41 2010 +0200 (edwin)
--------------------------------------
* libclamav/: Use a watchdog thread. Also make timeout be ms instead of us.
Tue Mar 23 15:54:41 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Insert timeout checks directly into the JITed code.
Mon Mar 22 22:57:46 2010 +0200 (edwin)
--------------------------------------
* configure: Portability fix.
Mon Mar 22 18:36:03 2010 +0200 (edwin)
--------------------------------------
* libclamav/mpool.c: Need to align the MPMAP field to 64-bit for Sparc.
Mon Mar 22 17:31:38 2010 +0200 (edwin)
--------------------------------------
* libclamav/others.h: Fix build on non-gcc.
Mon Mar 22 17:28:38 2010 +0200 (edwin)
--------------------------------------
* configure, libclamav, win32: New configure flag --enable-unsigned-bytecode.
Mon Mar 22 17:16:07 2010 +0200 (edwin)
--------------------------------------
* clamd,clamscan,libclamav,shared,unit_tests: Introduce BytecodeTimeout.
Mon Mar 22 16:57:27 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Support for timeouts.
Mon Mar 22 15:35:07 2010 +0200 (edwin)
--------------------------------------
* clambc/bcrun.c: Don't print extra newline.
Mon Mar 22 15:30:28 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: Attempt to fix remaining PPC failures.
Mon Mar 22 14:58:58 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: Print location of runtime error.
Mon Mar 22 14:58:51 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp,shared: Fix clambc -p.
Mon Mar 22 14:27:37 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++: Avoid duplicate symbol on Mac OS X.
Mon Mar 22 14:08:56 2010 +0200 (edwin)
--------------------------------------
* libclamav/mpool.c: Fix sparc sigbus.
Mon Mar 22 13:41:18 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_api.c: bytecode api fixes.
Mon Mar 22 13:05:20 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Fix valgrind warning.
Mon Mar 22 12:53:48 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: Fix clambc.
Mon Mar 22 12:47:54 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++: Apply LLVM SVN r98508 in an attempt to fix make check fail on PPC.
Mon Mar 22 11:42:27 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: Merge LLVM upstream SVN r98997 from 2.7 release branch.
Mon Mar 22 00:01:28 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode*,c++}: More fixes for global vars in the interpreter.
Sun Mar 21 19:47:25 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: WiP fixing globals in interpreter.
Sun Mar 21 15:44:15 2010 +0200 (edwin)
--------------------------------------
* unit_tests/input/*.cbc: Update unit tests.
Sun Mar 21 15:44:07 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Print size and location of JITed code.
Sun Mar 21 12:56:05 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode*,c++/}: zlib/buffer apis.
Sat Mar 20 21:18:54 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode*,c++/}: minimalistic zlib api.
Fri Mar 19 22:20:55 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*,pe.c: More APIs.
Fri Mar 19 19:59:08 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/configure: Reenable GCC 4.0.1, and 4.1.2 for JIT.
Fri Mar 19 19:55:54 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++: set numthreads to 1 in LLVM's check when running on old Python.
Fri Mar 19 15:47:26 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: More API additions for PDF.
Fri Mar 19 14:37:18 CET 2010 (tk)
---------------------------------
* freshclam: add support for ExtraDatabase (bb#781)
Fri Mar 19 13:20:59 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode*,c++/}, unit_tests/: New API for buffer fill.
Wed Mar 17 19:33:54 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_vm.c: Switch interpreter to debug (safe) mode by default.
Wed Mar 17 15:02:38 2010 +0200 (edwin)
--------------------------------------
* sigtool/sigtool.c: Fix loading of bytecode.cvd in sigtool
Tue Mar 16 04:11:02 CET 2010 (acab)
-----------------------------------
* win32: add sigtool upon request from 3rd party sigmakers
Fri Mar 12 13:13:08 2010 +0200 (edwin)
--------------------------------------
* clamscan, libclamav/c++, shared/: Add clamscan commandline to load bytecode in debug mode.
Fri Mar 12 11:45:46 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++: Fix Solaris/intel build (bb #1878).
Thu Mar 11 23:43:51 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/configure: Solaris needs Solaris.h! (bb #1878).
Thu Mar 11 20:36:35 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvmcheck.sh: Fix bashism (bb #1876).
Wed Mar 10 20:04:46 CET 2010 (tk)
---------------------------------
* V 0.96rc1
Wed Mar 10 15:58:42 2010 +0200 (edwin)
--------------------------------------
* libclamav/readdb.c: Only load signed bytecode by default.
Wed Mar 10 14:58:18 2010 +0200 (edwin)
--------------------------------------
* libclamav/scanners.c: Unit tests don't have fmap.
Wed Mar 10 14:49:22 2010 +0200 (edwin)
--------------------------------------
* libclamav/cache.c: Better fix for found_possibly_unwanted and caching.
Wed Mar 10 14:34:32 2010 +0200 (edwin)
--------------------------------------
* configure: Add version suffix when using --enable-debug.
Wed Mar 10 14:30:31 2010 +0200 (edwin)
--------------------------------------
* clambc,clamd, libclamav, shared: Allow "None" bytecode security setting only in --enable-debug mode.
Wed Mar 10 12:20:06 2010 +0200 (edwin)
--------------------------------------
* clambc/bcrun.c, libclamav/c++/ClamBCRTChecks.cpp: nullcheck.
Wed Mar 10 11:44:30 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: bb #1800.
Tue Mar 9 02:42:37 CET 2010 (acab)
-----------------------------------
* win32/platform.h: make sleep() wait seconds rather than ms (bb#1866)
Sun Mar 7 19:46:23 2010 +0200 (edwin)
-------------------------------------
* libclamav/{filtering.c,matcher-ac.c}: shut up filter debug messages during DB load.
Sat Mar 6 21:19:48 2010 +0200 (edwin)
-------------------------------------
* libclamav/c++, win32/: Enable LLVM tests if proper python and GNU make version is present.
Sat Mar 6 20:17:15 2010 +0200 (edwin)
-------------------------------------
* libclamav/c++/llvm: Merge LLVM upstream SVN r97877.
Sat Mar 6 17:38:42 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode_vm.c: missing opcode.
Sat Mar 6 16:28:08 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode.[ch]: compute global offsets.
Sat Mar 6 16:00:54 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode*: prepare for reading globals from ctx
Sat Mar 6 15:58:35 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode_vm.c: READN -> READNfrom
Sat Mar 6 15:54:14 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode_vm.c: READ1,8,16,32,64->READN
Sat Mar 6 03:58:16 CET 2010 (acab)
-----------------------------------
* clamd/scanner.c: fix logg output, patch from Mark Pizzolato
Fri Mar 5 22:16:45 CET 2010 (acab)
-----------------------------------
* libclamav: don't cache clean results due to EMAX - final fix for bb#1856
Fri Mar 5 22:01:20 CET 2010 (tk)
---------------------------------
* libclamav: fix scanning of utf16 data (bb#1853)
Fri Mar 5 21:14:12 CET 2010 (tk)
---------------------------------
* libclamav/matcher-bm.c: properly handle scan boundaries in
offset mode (bb#1840)
Fri Mar 5 19:11:25 CET 2010 (tk)
---------------------------------
* libclamav: fix cl_cvdparse() leak (bb#1859)
Fri Mar 5 19:56:43 2010 +0200 (edwin)
-------------------------------------
* libclamav/scanners.c: Don't leak bitset in magicscan.
Thu Mar 4 20:14:22 2010 +0200 (edwin)
-------------------------------------
* libclamav/c++: FreeBSD needs -lthr not -pthread.
Thu Mar 4 17:33:18 CET 2010 (tk)
---------------------------------
* libclamav/matcher-bm.c: fix array check (bb#1840)
Thu Mar 4 15:32:40 CET 2010 (tk)
---------------------------------
* libclamav/scanners.c: set container type in cli_scanraw() (bb#1842)
Thu Mar 4 14:41:39 CET 2010 (tk)
---------------------------------
* libclamav/matcher-bm.c: only sort correct offsets (bb#1840)
Mon Mar 1 19:48:11 2010 +0200 (edwin)
-------------------------------------
* libclamunrar_iface/unrar_iface.c: make behavior deterministic.
Mon Mar 1 19:46:58 2010 +0200 (edwin)
-------------------------------------
* libclamunrar/unrar.c: Fix error path leak in unrar.
Sat Feb 27 15:35:16 2010 +0200 (edwin)
--------------------------------------
* libclamav/ishield.c: Fix ishield errorpath.
Thu Feb 25 17:20:27 CET 2010 (tk)
---------------------------------
* docs: update signatures.pdf
Wed Feb 24 13:39:07 2010 +0200 (edwin)
--------------------------------------
* libclamav/special.c: Tweak swizzor threshold to fix some false positives.
Wed Feb 24 13:10:14 2010 +0200 (edwin)
--------------------------------------
* libclamav/pe.c: Only detect swizzor in english resources.
Tue Feb 23 23:53:27 2010 +0200 (edwin)
--------------------------------------
* libclamav/special.c: make debug output for swizz break lines properly.
Mon Feb 22 17:59:32 2010 +0200 (edwin)
--------------------------------------
* unit_tests/check_matchers.c: Fix unit test: ctx.fmap can't be NULL.
Mon Feb 22 17:21:05 2010 +0200 (edwin)
--------------------------------------
* libclamav/matcher.c: Be consistent about matcher_run (prefiltering) calls.
Mon Feb 22 17:10:18 2010 +0200 (edwin)
--------------------------------------
* libclamav/matcher.c: Fix NULL dereference.
Mon Feb 22 15:44:23 2010 +0200 (edwin)
--------------------------------------
* libclamav/matcher.c: Don't use prefiltering for BM offset mode.
Mon Feb 22 14:12:55 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode{_vm,}.c: Properly calculate numBytes for interpreter, and protect interpreter from null
derefs.
Tue Feb 16 16:41:30 CET 2010 (tk)
---------------------------------
* libclamav/cvd.c: enable new dsig check for main db
Tue Feb 16 16:27:13 CET 2010 (tk)
---------------------------------
* freshclam/manager.c: handle empty cdiffs more gently
Mon Feb 15 21:52:29 2010 +0200 (edwin)
--------------------------------------
* clambc/bcrun.c, win32/libclamavcxx.vcproj: fix win32 build.
Mon Feb 15 20:58:24 2010 +0200 (edwin)
--------------------------------------
* libclamav/Makefile.{am,in}: Show version.h creation commands with V=1.
Mon Feb 15 20:54:38 2010 +0200 (edwin)
--------------------------------------
* build system: fix distclean with --disable-llvm.
Mon Feb 15 18:34:57 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/llvm: Update to LLVM upstream SVN r96221.
Mon Feb 15 17:34:41 2010 +0200 (edwin)
--------------------------------------
* win32/: update win32 proj.
Mon Feb 15 17:32:00 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode.c: fix loading of bytecode into intepreter.
Mon Feb 15 16:08:38 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode.c: fix globals in interpreter.
Mon Feb 15 15:01:37 2010 +0200 (edwin)
--------------------------------------
* libclamav: enable prefiltering, and add to dconf.
Mon Feb 15 14:37:09 2010 +0200 (edwin)
--------------------------------------
* clambc, libclamav, unit_tests: dconf for bytecode.
Mon Feb 15 12:41:53 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++, unit_tests: runtime checks verifier.
Sun Feb 14 12:28:52 CET 2010 (acab)
-----------------------------------
* libclamav: refactor checkfp logic
Sat Feb 13 19:57:33 2010 +0200 (edwin)
--------------------------------------
* clambc/bcrun.c, shared/optparser.c: fix clambc's printing of source code, and add separate cmdline for it.
Sat Feb 13 18:21:33 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode.c,readdb.c: Don't fail if bytecode was skipped due to functionality level.
Sat Feb 13 18:13:56 2010 +0200 (edwin)
--------------------------------------
* unit_tests/input: update unit tests.
Sat Feb 13 18:13:39 2010 +0200 (edwin)
--------------------------------------
* libclamav/readdb.c: fix memory leak in prefiltering code.
Sat Feb 13 02:55:55 CET 2010 (acab)
-----------------------------------
* libclamav: refactor binhex processor with one pass decoder (bb#1236)
Fri Feb 12 15:51:19 CET 2010 (tk)
---------------------------------
* libclamav: add cl_countsigs() (bb#1473)
Fri Feb 12 16:47:44 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*,pe*,unit_tests/input/*: New pointer handling rules.
Wed Feb 10 17:00:30 2010 +0200 (edwin)
--------------------------------------
* libclamav/scanners.c: fix init of hook_lsig_matches.
Wed Feb 10 11:39:47 2010 +0200 (edwin)
--------------------------------------
* libclamav/matcher*: Add the rest of the prefiltering glue code.
Wed Feb 10 10:22:07 2010 +0200 (edwin)
--------------------------------------
* libclamav/filtering.c, win32/: Fix win32 build (bb #1824).
Tue Feb 9 20:44:11 CET 2010 (acab)
-----------------------------------
* clamav-milter: allow SkipAuthenticated to read names from a file
(bb#1684)
Tue Feb 9 18:56:08 2010 +0200 (edwin)
-------------------------------------
* libclamav/matcher.c: move matching code to matcher_run.
Tue Feb 9 18:23:10 2010 +0200 (edwin)
-------------------------------------
* libclamav/matcher-ac.c: move leaf checks inside IS_FINAL.
Tue Feb 9 16:35:36 CET 2010 (acab)
-----------------------------------
* libclamav/scanners.c: fix gzip handler
Tue Feb 9 13:40:02 2010 +0200 (edwin)
-------------------------------------
* libclamav/scanners.c: Show more details about zlib when inflateinit fails.
Tue Feb 9 13:21:14 2010 +0200 (edwin)
-------------------------------------
* configure: fix empty output for check in configure summary.
Tue Feb 9 12:01:31 2010 +0200 (edwin)
-------------------------------------
* libclamav: Prepare for prefiltering: add new files.
Mon Feb 8 20:27:59 2010 +0200 (edwin)
-------------------------------------
* unit_tests/check_common.sh: Update unit tests after Phishing.Heuristics -> Heuristics.Phishing change.
Mon Feb 8 19:17:14 CET 2010 (tk)
---------------------------------
* libclamav: prefix all engine detections with "Heuristics." (bb#1808)
(also change Phishing.Heuristics.* -> Heuristics.Phishing.*)
Mon Feb 8 13:40:06 CET 2010 (acab)
----------------------------------
* libclamav: drop support for type 8 signatures. disasm matching is now
done via bytecode
Mon Feb 8 13:45:03 2010 +0200 (edwin)
-------------------------------------
* libclamav/matcher*,readdb.c: Support for macros in logical subsignatures (bb #164).
Mon Feb 8 10:30:03 CET 2010 (tk)
---------------------------------
* freshclam, sigtool: use zlib's Z_FILTERED strategy
Thanks to Edwin
Sat Feb 6 17:53:17 2010 +0200 (edwin)
-------------------------------------
* clambc, libclamav: print bytecode source code.
Sat Feb 6 16:02:28 CET 2010 (acab)
-----------------------------------
* clamd/server-th.c: reset the selfcheck timeout even if we reload
by other means (bb#1812)
Thu Feb 4 22:17:49 CET 2010 (acab)
-----------------------------------
* clamd: new options LocalSocketMode and LocalSocketGroup
* clamav-milter: new options MilterSocketMode and MilterSocketGroup
(bb#1789)
Thu Feb 4 21:31:27 CET 2010 (tk)
---------------------------------
* clamscan: properly report errors from libclamav; simplify
error codes
Wed Feb 3 18:23:08 CET 2010 (tk)
---------------------------------
* clamdscan: fix error logic once again
Wed Feb 3 01:38:50 CET 2010 (acab)
-----------------------------------
* win32: workaround HUP reset in poll, set stdin to binary mode
Tue Feb 2 15:29:02 2010 +0200 (edwin)
-------------------------------------
* libclamav: Fix use-after-free on bytecode load/execution.
Tue Feb 2 14:23:18 CET 2010 (tk)
---------------------------------
* freshclam: new option Bytecode
Tue Feb 2 14:03:32 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode*: s/2009/2010/
Tue Feb 2 14:01:38 2010 +0200 (edwin)
-------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Fix loading of multiple .cbc files.
Tue Feb 2 13:46:37 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode.c: fix loading from .cvd.
Tue Feb 2 13:42:33 2010 +0200 (edwin)
-------------------------------------
* libclamav/bytecode.c: fix segfault on failed cbc load.
Mon Feb 1 19:25:45 CET 2010 (tk)
---------------------------------
* sigtool: add support for bytecode.cvd
Mon Feb 1 14:39:37 2010 +0200 (edwin)
-------------------------------------
* clamdtop/clamdtop.c: increase clamdtop timeout (bb #1732).
Mon Feb 1 14:38:36 2010 +0200 (edwin)
-------------------------------------
* clamd: make STATS a non-bulk command (bb #1732).
Mon Feb 1 14:06:07 2010 +0200 (edwin)
-------------------------------------
* clamd/thrmgr.[ch]: Don't allow bulk requests (multiscan, idsession) to fill more than 50% of the queue. (bb #1732)
Sun Jan 31 17:12:48 CET 2010 (acab)
-----------------------------------
* win32: clamdscan added
Sat Jan 30 18:31:07 2010 +0200 (edwin)
--------------------------------------
* win32: fix ETIMEDOUT mismatch on win32.
Sat Jan 30 04:19:29 CET 2010 (acab)
-----------------------------------
* win32: clamd (sort of) works
Fri Jan 29 18:38:43 2010 +0200 (edwin)
--------------------------------------
* clamdscan: Don't use clamdscan.map, it fails on some versions of Solaris.
Fri Jan 29 14:39:02 2010 +0200 (edwin)
--------------------------------------
* configure: Print feature summary after configure is finished.
Fri Jan 29 12:31:11 2010 +0200 (edwin)
--------------------------------------
* libclamav/others.c: Test field offset rather than size.
Fri Jan 29 12:17:07 2010 +0200 (edwin)
--------------------------------------
* libclamav/others.c: Add sanity check for struct packing (bb #1752).
Thu Jan 28 15:23:55 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/Makefile.{am,in}: Remove -fno-rtti for now.
Thu Jan 28 12:53:45 CET 2010 (tk)
---------------------------------
* libclamav: provide information about lsig matches to bytecode (bb#1799)
Wed Jan 27 18:33:09 CET 2010 (tk)
---------------------------------
* libclamav: provide offset in cli_ac_result (bb#1799)
Wed Jan 27 15:56:13 2010 +0200 (edwin)
--------------------------------------
* clamd/others.c: fix distcheck warnings.
Wed Jan 27 14:42:40 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: _GLIBCXX_PARALLEL is not supported: it creates threads before we fork() causing
deadlock.
Wed Jan 27 12:07:08 2010 +0200 (edwin)
--------------------------------------
* clamd, libclamav: Don't use C++ comments in C code.
Wed Jan 27 11:59:51 2010 +0200 (edwin)
--------------------------------------
* clamd: Fix clamd hang when number of multiscan commands == MaxThreads (bb #1770).
Wed Jan 27 11:04:34 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_api*: Fix duplicate const qualifier (bb #1798).
Wed Jan 27 10:54:35 2010 +0200 (edwin)
--------------------------------------
* clamd/others.c: Improve error message when no ancillary data is received (bb #1700).
Tue Jan 26 22:11:31 2010 +0200 (edwin)
--------------------------------------
* build system:: update files used by make check. add missing file.
Fix make distclean.
Tue Jan 26 19:39:18 CET 2010 (acab)
-----------------------------------
* win32: automatically check and regenerate vcprojs,
drop support and tblgen from llvm as these are now prebuilt and
shipped
Tue Jan 26 15:48:56 2010 +0200 (edwin)
--------------------------------------
* win32/: modify vcproj files according to win32/update-win32.pl
Tue Jan 26 15:37:14 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/configure: Perl is not required (bb #1781).
Tue Jan 26 15:33:56 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++: Merge LLVM upstream SVN r94539.
Update autogenerated files after LLVM import.
Tue Jan 26 14:25:54 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: fix compiler warning.
Tue Jan 26 12:40:18 2010 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Support building w/o atomic builtins for i386 (bb #1781).
Tue Jan 26 10:10:56 2010 +0200 (edwin)
--------------------------------------
* build system: regenerate build files using automake 1.11.1
Tue Jan 26 09:56:11 2010 +0200 (edwin)
--------------------------------------
* build system: don't link clamdscan with -lz -ldl (bb #1474)
Mon Jan 25 15:17:10 2010 +0200 (edwin)
--------------------------------------
* win32/libclamav.def: attempt to fix win32 build.
Mon Jan 25 15:15:54 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode.c: fix distcheck warning.
Mon Jan 25 15:06:30 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_api.c: don't return NULL here.
Mon Jan 25 13:27:44 CET 2010 (tk)
---------------------------------
* libclamav: handle digitally signed .info files
Fri Jan 22 17:19:11 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecoed.c: fix typo.
Fri Jan 22 16:50:16 2010 +0200 (edwin)
--------------------------------------
* clambc, libclamav, shared/optparser.c: print bytecode metadata.
Fri Jan 22 14:36:56 2010 +0200 (edwin)
--------------------------------------
* clambc, clambc, etc/clamd.conf, libclamav, shared/optparser.c: BytecodeSecurity setting.
Fri Jan 22 11:49:07 CET 2010 (acab)
-----------------------------------
* libclamav: fix shifts >= width (bb#1778)
Thu Jan 21 23:01:34 CET 2010 (tk)
---------------------------------
* sigtool: create digitally signed .info files
Thu Jan 21 16:48:56 2010 +0200 (edwin)
--------------------------------------
* libclamav: bytecode ptrdiff32 opcode.
Wed Jan 20 23:53:36 CET 2010 (acab)
-----------------------------------
* libclamav/pe.c: fix handling of 15h byte skew in upx-lzma (bb#1591)
Wed Jan 20 22:10:12 CET 2010 (tk)
---------------------------------
* libclamav: check .info files while loading CVD/CLD
Wed Jan 20 20:04:01 2010 +0200 (edwin)
--------------------------------------
* libclamav, unit_tests: Support for malloc in bytecode. Fix crash with mismatched api/flevel versions.
Wed Jan 20 18:20:53 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_api.c: longest asm instruction 4096->32.
Wed Jan 20 18:12:10 2010 +0200 (edwin)
--------------------------------------
* unit_tests/check_clamav.c: Prevent check from hanging/crashing when there is a version mismatch.
Wed Jan 20 17:16:27 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode_api.c,disasm.[ch]}: disasm_x86 api.
Wed Jan 20 16:59:05 2010 +0200 (edwin)
--------------------------------------
* libclamav/disasm-common.h: fix struct doxygen docs.
Wed Jan 20 16:19:18 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode_api*: file_find, file_byteat bytecode APIs.
Tue Jan 19 19:58:15 2010 +0200 (edwin)
--------------------------------------
* libclamav/bytecode*: Fix loading of apicall8 (disasm).
Tue Jan 19 16:38:12 2010 +0200 (edwin)
--------------------------------------
* libclamav: Support PE hook bytecodes triggered by logical signature.
Tue Jan 19 11:49:12 CET 2010 (acab)
-----------------------------------
* clamdscan/proto.c: don't stop scanning if a file is not found (bb#1760)
Tue Jan 19 11:26:11 CET 2010 (acab)
-----------------------------------
* clamscan/manager.c: use unsigned fsize (bb#1788)
Mon Jan 18 19:31:59 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode*,pe.*,clambc.h}: filesize, and pe_rawaddr API.
Fri Jan 15 18:17:55 2010 +0200 (edwin)
--------------------------------------
* libclamav/{bytecode,cache,pe_icons}.c: Fix some pointer dereferences, and sizeof.
Fri Jan 15 15:06:33 2010 +0200 (edwin)
--------------------------------------
* libclamav/pe.c: Fix UPX error handling.
Fri Jan 15 10:23:25 2010 +0200 (edwin)
--------------------------------------
* libclamav/mpool.[ch]: Fix bus error on Sparc.
Fri Jan 15 03:02:25 CET 2010 (acab)
-----------------------------------
* libclamav: cache negative matches
Thu Jan 14 23:31:51 CET 2010 (tk)
---------------------------------
* libclamav: cdb: drop FileType; cover ARJ, CAB, TAR, CPIO and 7Z
Thu Jan 14 19:43:43 CET 2010 (tk)
---------------------------------
* libclamav/readdb.c: fix compatibility issue with .zmd sigs (bb#1793)
Tue Jan 12 16:57:22 2010 +0200 (edwin)
--------------------------------------
* libclamav/readdb.c: Fix array size for parsing .ldb tokens.
Tue Jan 12 14:39:55 CET 2010 (tk)
---------------------------------
* libclamav: allow lsigs be anchored to specific containers (bb#1293),
eg. Container:CL_TYPE_ZIP
Tue Jan 12 12:14:08 CET 2010 (tk)
---------------------------------
* libclamav/readdb.c: when some lsig's attribute is unknown ignore the
entire signature and not the attribute itself
Mon Jan 11 12:43:21 2010 +0200 (edwin)
--------------------------------------
* libclamav/cache.c: Fix infinite loop in lookup.
Fri Jan 8 15:20:10 CET 2010 (tk)
---------------------------------
* libclamav: handle zmd/rmd with cdb (bb#1579)
Thu Jan 7 18:22:39 CET 2010 (tk)
---------------------------------
* libclamav: base code for unified container metadata matcher (bb#1579)
Wed Jan 6 19:53:07 2010 +0200 (edwin)
-------------------------------------
* libclamav/cache.c: Fix hash impl when replacing values.
Wed Jan 6 19:32:34 2010 +0200 (edwin)
-------------------------------------
* libclamav/cache.c: a fixed size, LRU hash-based cache.
Tue Jan 5 13:19:33 2010 +0200 (edwin)
-------------------------------------
* libclamav/readdb.c: Fix logic.
Tue Jan 5 12:04:47 CET 2010 (acab)
-----------------------------------
* libclamav/readdb.c: force VI anchored sigs into AC
Tue Jan 5 02:08:38 CET 2010 (acab)
-----------------------------------
* libclamav: merge PE VersionInformation matcher
Mon Jan 4 17:17:22 2010 +0200 (edwin)
-------------------------------------
* libclamav/hashtab.c: The hashset's bitmap needs only capacity/32 memory, not capacity/8.
Mon Jan 4 17:08:59 2010 +0200 (edwin)
-------------------------------------
* libclamav/hashtab.[ch]: add _noalloc hashset functions requested by aCaB.
Mon Jan 4 15:35:16 CET 2010 (tk)
---------------------------------
* libclamav: fix error reporting for BinHex files (bb#1685)
Wed Dec 30 15:08:35 2009 +0200 (edwin)
--------------------------------------
* libclamav: fix bswap in JIT
Wed Dec 30 12:13:40 2009 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Fix __*di3 libcalls on x86-32.
Wed Dec 30 00:19:21 CET 2009 (tk)
---------------------------------
* libclamav: add support for FileSize, EntryPoint and NumberOfSections in
lsig's tdb
Tue Dec 29 13:50:01 CET 2009 (tk)
---------------------------------
* sigtool/sigtool.c: handle lsigs created by the bytecode compiler
Mon Dec 28 23:27:40 CET 2009 (tk)
---------------------------------
* sigtool/sigtool.c: properly handle anchored sigs (bb#1780)
Mon Dec 28 20:53:46 2009 +0200 (edwin)
--------------------------------------
* win32/LLVMsupport.vcproj: Update win32 proj.
Mon Dec 28 20:18:59 2009 +0200 (edwin)
--------------------------------------
* libclamav/c++/bytecode2llvm.cpp: Fix some warnings from clang++ bytecode2llvm.cpp.
Mon Dec 28 20:08:10 2009 +0200 (edwin)
--------------------------------------
* libclamav/c++: Update to LLVM upstream r92222.
Tue Dec 22 09:32:33 EET 2009 (edwin)
------------------------------------
* libclamav/fmap.h: fix build on FreeBSD and Mac OS X (bb #1776). Thanks to
Renato Botelho.
Wed Dec 16 15:33:01 CET 2009 (acab)
-----------------------------------
* libclamav/unzip.c: do not mark embedded zipfiles as
encrypted.zip (bb#1768)
Wed Dec 16 15:22:28 CET 2009 (acab)
-----------------------------------
* clamd/server-th.c: remove c++ comment (bb#1751)
Wed Dec 16 03:15:30 CET 2009 (acab)
-----------------------------------
* libclamav/c++, win32: win32 compile system for llvm refactored
Mon Dec 14 17:16:07 CET 2009 (tk)
---------------------------------
* libclamav: integrate ldb sigs with icon matcher
Mon Dec 14 15:04:45 CET 2009 (tk)
---------------------------------
* sigtool: fix some messages (bb#1777)
Mon Dec 14 14:31:19 CET 2009 (tk)
---------------------------------
* man/freshclam.conf.5: describe SafeBrowsing (bb#1772)
Mon Dec 14 14:25:29 CET 2009 (tk)
---------------------------------
* man/clamd.8: add info about signals
Fri Dec 11 00:54:52 CET 2009 (acab)
---------------------------------
* libclamav: merge icon extraction and matching branch(exeicons)
Wed Dec 9 23:31:54 CET 2009 (tk)
---------------------------------
* sigtool: add --test-sigs (basic functionality) (bb#1246)
Fri Dec 4 15:55:51 CET 2009 (tk)
---------------------------------
* freshclam/manager.c: improve handling of problematic mirrors (bb#1758)
Fri Dec 4 14:19:23 CET 2009 (tk)
---------------------------------
* clamscan: properly describe --include/exclude (bb#1765)
Wed Dec 2 23:17:27 CET 2009 (tk)
---------------------------------
* libclamav/qsort.c: fix CMP1 macro (bb#1769)
Tue Dec 1 23:17:53 CET 2009 (tk)
---------------------------------
* libclamav/readdb.c: make sure static sigs with floating chars go into AC
Mon Nov 30 21:16:35 CET 2009 (tk)
---------------------------------
* sigtool: --decode-sigs: handle alternatives
Thu Nov 26 19:43:06 CET 2009 (tk)
---------------------------------
* sigtool: --decode-sigs: handle .ldb sigs
Thu Nov 26 16:06:30 CET 2009 (acab)
-----------------------------------
* libclamav/scanners.c: print inflateinit2 return code
Wed Nov 25 19:07:51 CET 2009 (tk)
---------------------------------
* sigtool: --decode-sigs: handle .ndb sigs
Tue Nov 24 10:24:27 EET 2009 (edwin)
------------------------------------
* clamd/server-th.c: enable more than 256 FD support on Solaris (bb #1764).
Mon Nov 23 23:15:38 CET 2009 (tk)
---------------------------------
* sigtool: --decode-sigs; decode .db entries (bb#1246)
Thu Nov 19 14:10:17 CET 2009 (tk)
---------------------------------
* sigtool/sigtool.c: handle .ign2 files (bb#1625)
Tue Nov 17 18:02:45 CET 2009 (tk)
---------------------------------
* libclamav/qsort.c: don't call med3 when using internal cmp
Mon Nov 16 23:15:37 CET 2009 (acab)
-----------------------------------
* libclamav: add qsort to the win32 build
Mon Nov 16 19:26:53 CET 2009 (tk)
---------------------------------
* libclamav: replace qsort implementation and optimize its common
usage (bb#1721)
Tue Nov 10 19:29:18 CET 2009 (tk)
---------------------------------
* clamd, clamscan: add support for OfficialDatabaseOnly/--official-db-only
(bb#1743)
Tue Nov 10 16:50:56 CET 2009 (tk)
---------------------------------
* freshclam/notify.c: fix clamd notification in TCP mode (bb#1756)
Tue Nov 10 12:52:43 CET 2009 (acab)
-----------------------------------
* doc/man/clamav-milter.8.in: fix typo
reported by Thomas Harold <thomas * betasearch.com>
Fri Nov 6 16:14:09 CET 2009 (acab)
-----------------------------------
* libclamav/tnef.c: don't use fgetc (bb#1695)
Fri Nov 6 12:22:33 CET 2009 (tk)
---------------------------------
* freshclam: add support for DetectionStatsHostID (bb#1503)
Tue Nov 3 22:50:30 CET 2009 (tk)
---------------------------------
* libclamav, freshclam: fix handling of dbs when both daily.cvd and daily.cld
are present in the db directory and ScriptedUpdates
are turned off (bb#1739)
Tue Nov 3 15:18:14 CET 2009 )tk)
---------------------------------
* libclamav/readdb.c: return error if lsig contains redundant subsigs
Sun Nov 1 21:26:10 CET 2009 (acab)
-----------------------------------
* win32: improve build system
Sat Oct 31 19:13:18 CET 2009 (acab)
-----------------------------------
* win32: add resources
Sat Oct 31 19:12:22 CET 2009 (acab)
-----------------------------------
* win32: fix warnings
Fri Oct 30 14:04:43 EET 2009 (edwin)
------------------------------------
* configure, m4/acinclude.m4: Avoid trailing slash in libdir for old gcc (#1738).
Thu Oct 29 23:42:57 CET 2009 (acab)
-----------------------------------
* win32/3rdparty/pthreads: upgrade to CVS HEAD
Thu Oct 29 17:27:40 CET 2009 (acab)
-----------------------------------
* win32: don't use . or .. in UNC names
Wed Oct 28 15:15:05 EET 2009 (edwin)
------------------------------------
* clamd/thrmgr.c: use a double instead of integer to avoid negative time (bb #1731).
Wed Oct 28 12:42:45 CET 2009 (tk)
---------------------------------
* libclamav/filetypes_int.h: sync with daily.ftm
Tue Oct 27 23:29:09 CET 2009 (tk)
---------------------------------
* clamdscan: improve error handling (bb#1729)
Tue Oct 27 20:31:36 CET 2009 (tk)
---------------------------------
* clamdscan, libclamav, clamdtop, freshclam, sigtool: fix some error path
leaks (bb#1730)
Tue Oct 27 11:59:32 CET 2009 (tk)
---------------------------------
* libclamav/scanners.c: drop hardcoded offset limits for embedded objs (bb#1664)
Mon Oct 26 16:09:29 CET 2009 (tk)
---------------------------------
* libclamav/others.c: call srand() already in cli_init() (bb#1728)
Mon Oct 26 13:08:41 CET 2009 (tk)
---------------------------------
* clamdscan/proto.c: handle recv() == 0 (bb#1717)
Sat Oct 24 15:06:50 CEST 2009 (acab)
------------------------------------
* libclamav/mpool.c: increase max pool to 8M to allow loading huge custom dbs
Sat Oct 24 14:27:10 EEST 2009 (edwin)
------------------------------------
* clamd/scanner.c, libclamav/others_common.c: fix error path leak (bb #1711)
Fri Oct 23 20:48:12 CEST 2009 (acab)
------------------------------------
* libclamav/unarj: fix error path leaks and valgrind warnings
Wed Oct 21 17:50:05 CEST 2009 (acab)
------------------------------------
* win32: introduce safe_open() (sic!)
Tue Oct 20 17:48:59 CEST 2009 (acab)
------------------------------------
* shared, win32: make hardcoded paths relocable in win32 builds
Mon Oct 19 14:13:27 CEST 2009 (acab)
------------------------------------
* win32: add clamconf
Sun Oct 18 16:52:41 CEST 2009 (acab)
------------------------------------
* win32: glob() complete
Sun Oct 18 02:30:14 CEST 2009 (acab)
------------------------------------
* win32: glob() before main (WIP)
Fri Oct 16 20:08:51 CEST 2009 (acab)
------------------------------------
* win32: stat added, dirent updated
Fri Oct 16 14:56:10 CEST 2009 (tk)
----------------------------------
* clamdscan: fix some output msgs (bb#1716)
Fri Oct 16 10:11:56 CEST 2009 (tk)
----------------------------------
* sigtool: add support for --find-sigs (part of bb#1246)
Fri Oct 16 01:46:28 CEST 2009 (acab)
------------------------------------
* win32: res_query compatible interface
Thu Oct 15 13:06:33 CEST 2009 (acab)
------------------------------------
* win32: add freshclam
Wed Oct 14 19:03:47 CEST 2009 (acab)
------------------------------------
* win32: remove stale netcode
Wed Oct 14 18:59:13 CEST 2009 (acab)
------------------------------------
* win32: preliminary winsock support files
Wed Oct 14 01:26:47 CEST 2009 (acab)
------------------------------------
* win32: unrar support
Tue Oct 13 20:13:53 CEST 2009 (acab)
------------------------------------
* win32: clamscan builds (and will scan soon...)
Tue Oct 13 00:54:05 CEST 2009 (acab)
------------------------------------
* win32/compat: add POSIX compatible snprintf
Mon Oct 12 23:39:30 CEST 2009 (acab)
------------------------------------
* win32: libclamav compiles
Mon Oct 12 23:33:32 CEST 2009 (acab)
------------------------------------
* /win32: VC project file and 3rd party stuff
Sat Oct 10 20:22:10 CEST 2009 (acab)
------------------------------------
* libclamav: completed merge of fmap4all
Thu Oct 8 19:03:57 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-bm.c: don't use mpool (bb#1710, #1715)
Tue Oct 6 22:51:00 CEST 2009 (tk)
----------------------------------
* shared/misc.h: #include <sys/types.h>
Fri Oct 2 21:01:51 CEST 2009 (tk)
----------------------------------
* libclamav: check file sizes for MD5 sigs in all cases
Reported by Edwin
Fri Oct 2 14:35:42 CEST 2009 (tk)
----------------------------------
* libclamav: unify fp checking; output fp signatures in debug mode
Fri Oct 2 14:33:09 CEST 2009 (tk)
----------------------------------
* libclamav/scanners.c: fix whitelisting of scripts (bb#1706)
Fri Oct 30 14:04:43 EET 2009 (edwin)
------------------------------------
* configure, m4/acinclude.m4: Avoid trailing slash in libdir for old gcc (#1738).
Wed Sep 30 19:41:43 EEST 2009 (edwin)
-------------------------------------
* configure{.in,}: Only use -fno-strict-aliasing for gcc-4.3+ to avoid bugs
with older compilers (bb #1581)
Wed Sep 30 17:15:05 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-bm.c: fix cli_bm_freeoff() (bb#1710)
Wed Sep 30 12:40:50 CEST 2009 (acab)
------------------------------------
* clamdscan/clamdscan.c: properly init variable (bb#1708)
Wed Sep 30 00:51:19 CEST 2009 (acab)
------------------------------------
* clamd, shared: merge a set of win32 patches from
Gianluigi Tiesi <sherpya*netfarm.it>
Tue Sep 29 21:40:29 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-ac.c: fix matching of logical sigs (bb#1707)
Reported by Thiyaga <mthiyaga*corp.untd.com>
Mon Sep 28 21:41:47 CEST 2009 (tk)
----------------------------------
* libclamav/readdb.c: fix handling of broken .ldb sigs (bb#1701)
Thanks Luca&Edwin
Mon Sep 28 19:29:32 CEST 2009 (tk)
----------------------------------
* libclamav: new signature blacklisting format (bb#1625)
* libclamav: allow arbitrary names for .ign/.ign2 files (bb#1683)
Fri Sep 25 15:13:25 CEST 2009 (acab)
------------------------------------
* sigtool/vba.c: s/cli_errmsg/logg/
* shared/misc.h: in_addr_t is now already declared
* libclamav/special.c: do not include netinet/in.h on win32
All the patches from Gianluigi Tiesi <sherpya*netfarm.it>
Fri Sep 25 15:09:02 CEST 2009 (acab)
------------------------------------
* clamav-milter/clamav.milter.c: remove debug printf
Fri Sep 25 10:36:48 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-ac.c: add support for line marker (L) (matches CR,
CRLF and boundaries)
Fri Sep 25 00:35:56 CEST 2009 (acab)
------------------------------------
* libclamav/sis.c: size check fix, thanks Tomasz
Fri Sep 25 00:31:29 CEST 2009 (acab)
------------------------------------
* fix several problems introduced by the win32 commits
many thanks edwin and sherpya
Thu Sep 24 19:43:50 CEST 2009 (acab)
------------------------------------
* libclamav/others_common.c: Accept "/" as an absolute path
Thu Sep 24 19:22:24 CEST 2009 (acab)
------------------------------------
* merge a set of win32 patches from Gianluigi Tiesi <sherpya*netfarm.it>
Thu Sep 24 19:09:38 CEST 2009 (acab)
------------------------------------
* drop OS/2 "support"
Thu Sep 24 19:07:59 CEST 2009 (acab)
------------------------------------
* clamd, libclamav: drop INTERIX "support"
Thu Sep 24 19:05:06 CEST 2009 (acab)
------------------------------------
* win32 paths handling
Thu Sep 24 16:22:25 CEST 2009 (acab)
------------------------------------
* merge initial set of win32 patches from Gianluigi Tiesi <sherpya*netfarm.it>
Thu Sep 24 01:14:50 CEST 2009 (acab)
------------------------------------
* clamav-milter: Add option ReportHostname to mangle the host name in X headers
Wed Sep 23 03:19:53 CEST 2009 (acab)
------------------------------------
* libclamav/mpool.c: update frag sizes, small cleanup
Mon Sep 21 22:05:38 CEST 2009 (tk)
----------------------------------
* clamd: add support for DazukoFS (bb#1691)
Patch from John Ogness <dazukocode*ogness.net>
Fri Sep 18 20:02:06 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-bm.c: use mpool in BM's offset mode
Thu Sep 17 22:36:30 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-ac.c: implement word delimiter (B) as requested in bb#1631
Mon Sep 14 19:52:01 CEST 2009 (tk)
----------------------------------
* freshclam: return 0 instead of 1 when database is up-to-date (bb#1312)
Mon Sep 14 13:56:42 CEST 2009 (tk)
----------------------------------
* clamd/server-th.c: fix possible race condition when restarting clamuko
(bb#1692), patch from John Ogness
Fri Sep 11 16:05:00 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-ac.c: initial limited support for word boundary (bb#1631)
Thu Sep 10 20:16:45 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-ac.c: alternatives can now be negated: !(aa|bb|cc)
Mon Sep 7 15:03:11 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-bm.c: fix uninitialized value warning
Mon Sep 7 03:45:18 CEST 2009 (acab)
------------------------------------
* libclamav/scanners.c: properly scan text files with a mail container
Thu Sep 3 15:09:57 CEST 2009 (tk)
----------------------------------
* freshclam/mirman.c: make backoff time proportional to FLEVEL (bb#1687)
Tue Sep 1 20:50:12 CEST 2009 (tk)
----------------------------------
* libclamav: use BM matcher in offset mode for PE files larger than 256kB
(10% speedup on average; 30-40% for large executables)
Tue Sep 1 11:11:43 CEST 2009 (tk)
----------------------------------
* libclamav: in bm_offmode only load sigs with non-floating absolute and
relative offsets into BM matcher (load other ones into AC)
and use per-file computed offset table to pick up best shifts
(not enabled by default, bb#1300)
Sun Aug 30 23:56:49 CEST 2009 (acab)
------------------------------------
* libclamav: unify CL_TYPE_MAIL scanning
Wed Aug 26 23:37:04 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-ac.c: improve handling of signature offsets
Mon Aug 24 22:09:12 CEST 2009 (tk)
----------------------------------
* libclamav: improve handling of PDF files (bb#1682)
Fri Aug 21 15:53:35 CEST 2009 (tk)
----------------------------------
* libclamav: handle relative offsets with cli_ac_data; fix offset logic
Fri Aug 21 02:17:11 CEST 2009 (acab)
------------------------------------
* libclamav/ishield.c: properly free() header
Fri Aug 21 00:56:03 CEST 2009 (acab)
------------------------------------
* build system: upgrade to autoconf 2.64 and automake 1.11 (bb#1528)
Thu Aug 20 00:34:39 CEST 2009 (tk)
----------------------------------
* libclamav/matcher-bm.c: micro-optimization
Tue Aug 18 23:52:20 CEST 2009 (tk)
----------------------------------
* libclamav/cpio.c: wrap unistd.h, reported by Nigel Horne
Mon Aug 17 13:54:09 CEST 2009 (acab)
------------------------------------
* libclamav/7z: convert EOL to unix for compat with suncc
Fri Aug 14 14:37:21 CEST 2009 (tk)
----------------------------------
* libclamav: improve handling of signature offsets
Tue Aug 11 02:04:54 CEST 2009 (acab)
------------------------------------
* libclamav/7z/Types.h: workaround "Byte" clash in lzma/7z (bb#805 - regression)
Mon Aug 10 22:36:19 CEST 2009 (acab)
------------------------------------
* libclamav/7z*: cosmetic fixes
Mon Aug 10 22:06:23 CEST 2009 (acab)
------------------------------------
* contrib/test: sync test files
Mon Aug 10 15:26:26 CEST 2009 (acab)
------------------------------------
* libclamav: add preliminary 7z support
Thu Aug 6 22:26:30 CEST 2009 (tk)
----------------------------------
* clamd, clamscan, libclamav: drop support for MailFollowURLs (bb#1677)
Wed Aug 5 18:33:11 CEST 2009 (tk)
----------------------------------
* clamd/clamd.c: ignore SIGHUP and SIGUSR2 during initial setup (bb#1671)
Wed Aug 5 16:27:06 CEST 2009 (tk)
----------------------------------
* clamd, clamscan: add support for CrossFilesystems/--cross-fs (bb#1607)
Tue Aug 4 23:15:26 CEST 2009 (tk)
----------------------------------
* configure, libclamav: fix compile issues on IRIX (bb#1532)
Tue Aug 4 20:24:06 CEST 2009 (tk)
----------------------------------
* libclamav/macho.c: wrap unistd.h, reported by Nigel Horne
Tue Aug 4 20:06:51 CEST 2009 (tk)
----------------------------------
* libclamav/readdb.c: make the parser more sensitive to errors in
numerical fields
Tue Aug 4 15:10:12 CEST 2009 (tk)
----------------------------------
* freshclam, libclamav: work around possible race condition during
db updates (bb#1624)
Mon Aug 3 15:22:42 CEST 2009 (tk)
----------------------------------
* freshclam/manager.c: fix confusing error message (bb#1648)
Mon Aug 3 14:48:27 CEST 2009 (tk)
----------------------------------
* libclamav/unzip.c: fix detection of encrypted zip files embedded into
other files (bb#1660)
Sun Aug 2 14:46:40 EEST 2009 (edwin)
-------------------------------------
* libclamav/bytecode_vm.c: fix SIGBUS on sparc.
Fri Jul 31 21:28:18 CEST 2009 (tk)
----------------------------------
* libclamav, clamd: handle file exclusion in cli_ftw() (bb#1656)
Fri Jul 31 15:29:36 EEST 2009 (edwin)
-------------------------------------
* unit_tests/check_regex.c: fix unit-test failure on Solaris
Fri Jul 31 12:52:08 CEST 2009 (acab)
------------------------------------
* libclamav/pe.c: fix check for pe32+
Tue Jul 28 20:34:13 CEST 2009 (tk)
----------------------------------
* clamscan, clamd, libclamav: load cvd files on-the-fly (without unpacking them
to /tmp) by default
Tue Jul 28 20:19:08 CEST 2009 (tk)
----------------------------------
* libclamav: improve loading speed of compressed databases (bb#1105)
Mon Jul 27 13:53:15 CEST 2009 (tk)
----------------------------------
* libclamav/macho.c: improve detection of Universal Binaries
Mon Jul 27 12:28:08 CEST 2009 (tk)
----------------------------------
* libclamav/macho.c: fix section alignment (bb#1667)
Sun Jul 26 18:55:37 CEST 2009 (acab)
------------------------------------
* shared/actions.c: wrap unistd - reported by njh
Sun Jul 19 16:19:49 CEST 2009 (acab)
------------------------------------
* libclamav/pe.c: check IS-cab scan result
* test/: add IS test files
Fri Jul 17 12:48:24 EEST 2009 (edwin)
-------------------------------------
* libclamav/regex_list.[ch]: improve safebrowsing.cvd load speed (20s -> 3s)
Fri Jul 17 02:28:50 CEST 2009 (acab)
------------------------------------
* libclamav/others.h, libclamav/ishield.c: fix typo,
workaround crappy preprocessors (bb#1658)
Thu Jul 16 23:01:34 CEST 2009 (tk)
----------------------------------
* libclamav/cab.c: downgrade warning message (bb#1659)
Thu Jul 16 14:20:01 CEST 2009 (acab)
------------------------------------
* libclamav, build system: fix portability issues for fseeko, sysconf(_SC_PAGESIZE),
getpagesize() (bb#1658)
Wed Jul 15 23:36:09 EEST 2009 (edwin)
-------------------------------------
* libclamav/pe.c, yc.c: Make yC able to handle more samples and variants.
Wed Jul 15 19:36:35 CEST 2009 (tk)
----------------------------------
* clamd: honour value of 0 in Max* options
Wed Jul 15 19:24:03 CEST 2009 (tk)
----------------------------------
* clamscan: honour value of 0 in --max-* options (bb#1650)
Wed Jul 15 16:25:00 EEST 2009 (edwin)
-------------------------------------
* unit_tests/check_clamd.c: fix unit tests when run as root (bb #1635).
Wed Jul 15 12:50:50 CEST 2009 (acab)
------------------------------------
* libclamav/ishield.c: fix distcheck, patch from edwin
Wed Jul 15 12:20:04 CEST 2009 (tk)
----------------------------------
* clamd, clamav-milter: make pid files globally readable (bb#1642)
Wed Jul 15 12:33:22 CEST 2009 (acab)
------------------------------------
* libclamav/ishield.c: use mmap for big files, fix some leaks,
some portability fixes
Wed Jul 15 11:20:56 CEST 2009 (tk)
----------------------------------
* libclamav/filetypes.c: fix off-by-one error (bb#1639)
Wed Jul 15 08:46:35 CEST 2009 (tk)
----------------------------------
* libclamav/mspack.c: fix valgrind warnings about use of uninitialized
values (bb#1655)
Tue Jul 14 23:41:37 CEST 2009 (acab)
------------------------------------
* libclamav: add preliminary support for IS executables (IS-cab and IS-msi)
part of bb#1571
Tue Jul 14 18:17:59 CEST 2009 (tk)
----------------------------------
* libclamav: add support for Universal Binaries (archives with Mach-O files for
different architectures, bb#1592)
Mon Jul 13 21:40:51 CEST 2009 (tk)
----------------------------------
* docs/signatures.pdf: cover Mach-O files
Mon Jul 13 21:24:05 CEST 2009 (tk)
----------------------------------
* libclamav: handle Mach-O files with type-9 signatures; all special offsets are
supported for PPC32/64 and x86 executables; for ARM and other archs
only section based extensions (Sx[+-]n, SL[+-]n) are supported atm
Mon Jul 13 19:34:36 EEST 2009 (edwin)
-------------------------------------
* clambc/, libclamav/, unit_tests/: Initial draft of bytecode interpreter (bb #1243).
Mon Jul 13 16:06:31 CEST 2009 (tk)
----------------------------------
* libclamav/macho.c: handle LC_THREAD; calculate EP
Fri Jul 10 10:10:35 CEST 2009 (tk)
----------------------------------
* libclamav/filetypes_int.h: sync with daily.ftm
Wed Jul 8 14:59:14 CEST 2009 (tk)
----------------------------------
* libclamav: initial support for Mach-O executables (part of bb#1592)
Mon Jul 6 16:56:06 CEST 2009 (tk)
----------------------------------
* test: add cpio test files
Thu Jul 2 17:05:12 CEST 2009 (tk)
----------------------------------
* libclamav: add support for cpio archives (bb#1649)
Mon Jun 29 15:40:42 CEST 2009 (acab)
------------------------------------
* clamav-milter: use s/STREAM/INSTREAM/ (bb#1548)
Mon Jun 29 11:25:46 CEST 2009 (acab)
------------------------------------
* clamav-milter/netcode.c: Properly handle clamd disconnection (bb#1643)
Mon Jun 22 17:19:45 CEST 2009 (acab)
------------------------------------
* clamav-milter/whitelist.c: print failed whitelist filename
Fri Jun 12 12:30:15 CEST 2009 (tk)
----------------------------------
* libclamav/elf.[ch]: add support for 64-bit ELF files (bb#1593)
Wed Jun 10 19:01:11 CEST 2009 (tk)
----------------------------------
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN clamav.bak/Makefile clamav/Makefile
--- clamav.bak/Makefile 1970-01-01 03:00:00.000000000 +0300
+++ clamav/Makefile 2010-04-05 12:29:13.141067298 +0300
@@ -0,0 +1,204 @@
+# New ports collection makefile for: clamav
+# Date created: 15 July 2002
+# Whom: markun at onohara.to
+#
+# $FreeBSD: ports/security/clamav/Makefile,v 1.134 2010/01/27 16:56:35 garga Exp $
+#
+
+PORTNAME= clamav
+PORTVERSION= 0.96
+CATEGORIES= security
+MASTER_SITES= SF
+
+MAINTAINER= garga at FreeBSD.org
+COMMENT= Command line virus scanner written entirely in C
+
+OPTIONS= ARC "Enable arch archives support" On \
+ ARJ "Enable arj archives support" On \
+ LHA "Enable lha archives support" On \
+ UNZOO "Enable zoo archives support" On \
+ UNRAR "Enable rar archives support" On \
+ MILTER "Compile the milter interface" Off \
+ LDAP "libmilter was built with LDAP" Off \
+ ICONV "Enable ICONV support" Off \
+ STDERR "Print logs to stderr instead of stdout" Off
+
+USE_GCC= 4.2+
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+USE_LDCONFIG= yes
+USE_RC_SUBR= clamav-clamd clamav-freshclam
+CONF_FILES= clamd freshclam
+
+PORTDOCS= *
+
+DBDIR= /var/db/clamav
+LOGDIR= /var/log/clamav
+RUNDIR= /var/run/clamav
+PLIST_SUB+= DBDIR=${DBDIR} LOGDIR=${LOGDIR} RUNDIR=${RUNDIR}
+
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
+ --with-dbdir=${DBDIR} \
+ --with-zlib=/usr \
+ --disable-clamuko \
+ --disable-clamav \
+ --enable-bigstack \
+ --enable-readdir_r \
+ --enable-gethostbyname_r \
+ --enable-experimental \
+ --disable-dependency-tracking
+CPPFLAGS+= -I${LOCALBASE}/include \
+ ${PTHREAD_CFLAGS}
+LDFLAGS+= -L${LOCALBASE}/lib \
+ ${PTHREAD_LIBS}
+
+# This port has a problem with -pthread,
+# force to use -lthr until it's not fixed.
+PTHREAD_LIBS= -lthr
+
+MAN1= clamconf.1 \
+ clamscan.1 \
+ freshclam.1 \
+ sigtool.1 \
+ clamdscan.1 \
+ clamdtop.1
+MAN5= clamd.conf.5 \
+ freshclam.conf.5
+MAN8= clamd.8 \
+ clamav-milter.8
+
+CONFLICTS= clamav-0.[0-9]*
+
+CLAMAVUSER?= clamav
+CLAMAVGROUP?= clamav
+
+CLAMAV_CLAMD_SOCKET?= ${RUNDIR}/clamd.sock
+CLAMAV_MILTER_SOCKET?= ${RUNDIR}/clmilter.sock
+
+SUB_FILES= pkg-install pkg-deinstall
+SUB_LIST+= DBDIR=${DBDIR} \
+ LOGDIR=${LOGDIR} \
+ RUNDIR=${RUNDIR} \
+ CLAMAVUSER=${CLAMAVUSER} \
+ CLAMAVGROUP=${CLAMAVGROUP} \
+ CLAMAV_CLAMD_SOCKET=${CLAMAV_CLAMD_SOCKET} \
+ CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET} \
+ CHMOD=${CHMOD} \
+ CHOWN=${CHOWN}
+
+SED_CONF= -E -e 's|^\#?(Example)$$|\#\1|' \
+ -e 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 ${LOGDIR}/\3|' \
+ -e 's|^\#?(PidFile) .*/([a-z\-]+\.pid)$$|\1 ${RUNDIR}/\2|' \
+ -e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \
+ -e 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' \
+ -e 's|^\#?(AllowSupplementaryGroups).*$$|\1 yes|' \
+ -e 's|^\#?(ScanMail).*$$|\1 yes|' \
+ -e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DBDIR}|' \
+ -e 's|^\#?(DatabaseOwner) .*$$|\1 ${CLAMAVUSER}|' \
+ -e 's|^\#?(FixStaleSocket).*$$|\1 yes|' \
+ -e 's|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|' \
+ -e 's|^\#?(MilterSocket) */tmp.*$$|\1 ${CLAMAV_MILTER_SOCKET}|' \
+ -e 's|^\#?(ClamdSocket).*$$|\1 unix:${CLAMAV_CLAMD_SOCKET}|'
+
+PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \
+ CLAMAVGROUP=${CLAMAVGROUP}
+
+PORTSCOUT= ignore:1
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386"
+CFLAGS+= -march=i486
+.endif
+
+.if ${OSVERSION} >= 700000
+BUILD_DEPENDS+= ${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
+CONFIGURE_ARGS+= --enable-check
+.endif
+
+.if defined(WITH_ARC)
+RUN_DEPENDS+= arc:${PORTSDIR}/archivers/arc
+.endif
+.if defined(WITH_ARJ)
+RUN_DEPENDS+= arj:${PORTSDIR}/archivers/arj
+.endif
+.if defined(WITH_LHA)
+RUN_DEPENDS+= lha:${PORTSDIR}/archivers/lha
+.endif
+.if defined(WITH_UNZOO)
+RUN_DEPENDS+= unzoo:${PORTSDIR}/archivers/unzoo
+.endif
+.if defined(WITH_UNRAR)
+PLIST_SUB+= UNRAR=""
+.else
+PLIST_SUB+= UNRAR="@comment "
+CONFIGURE_ARGS+= --disable-unrar
+.endif
+.if defined(WITH_ICONV)
+CONFIGURE_ARGS+=--with-iconv
+USE_ICONV= yes
+.else
+CONFIGURE_ARGS+=--without-iconv
+.endif
+
+.if defined(WITH_MILTER)
+USE_RC_SUBR+= clamav-milter
+CONF_FILES+= clamav-milter
+. if defined(WITH_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
+USE_OPENLDAP= yes
+LDFLAGS+= -lldap
+. endif
+
+. if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
+CONFIGURE_ARGS+= --with-sendmail=${LOCALBASE}/sbin/sendmail
+. else
+CONFIGURE_ARGS+= --with-sendmail=/usr/sbin/sendmail
+. endif
+
+CONFIGURE_ARGS+= --enable-milter
+PLIST_SUB+= CLAMAV-MILTER=""
+.else
+PLIST_SUB+= CLAMAV-MILTER="@comment "
+.endif
+
+.if defined(WITH_STDERR)
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-shared_output.c
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -e 's,^\(pkgconfigdir = \).*$$,\1$$\(prefix\)/libdata/pkgconfig,g' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} ${SED_CONF} \
+ ${WRKSRC}/etc/clamd.conf \
+ ${WRKSRC}/etc/freshclam.conf \
+ ${WRKSRC}/etc/clamav-milter.conf
+ @${REINPLACE_CMD} -e 's|0x100000000|0x100000000ULL|g' \
+ ${WRKSRC}/libclamunrar/unrar.c
+
+.if ${OSVERSION} >= 700000
+post-build:
+ @${MAKE} -C ${WRKSRC} check
+.endif
+
+pre-su-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${PREFIX}/include
+.for c in ${CONF_FILES}
+ @[ -f ${PREFIX}/etc/${c}.conf ] || \
+ ${CP} -v ${PREFIX}/etc/${c}.conf.default ${PREFIX}/etc/${c}.conf
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/html
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR}/html
+.endif
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.post.mk>
diff -ruN clamav.bak/distinfo clamav/distinfo
--- clamav.bak/distinfo 1970-01-01 03:00:00.000000000 +0300
+++ clamav/distinfo 2010-04-05 12:27:33.329212951 +0300
@@ -0,0 +1,3 @@
+MD5 (clamav-0.96.tar.gz) = 28ac7bec4cc03627a8e2d6e8647ee661
+SHA256 (clamav-0.96.tar.gz) = 7b0b6e67c87d43b04ce3beceaecddfaf344499f0ee45e9568df6be16808879d2
+SIZE (clamav-0.96.tar.gz) = 39792593
diff -ruN clamav.bak/files/clamav-clamd.in clamav/files/clamav-clamd.in
--- clamav.bak/files/clamav-clamd.in 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/clamav-clamd.in 2010-04-05 12:31:55.942817376 +0300
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/security/clamav/files/clamav-clamd.in,v 1.8 2010/03/27 00:14:40 dougb Exp $
+#
+
+# PROVIDE: clamd
+# REQUIRE: LOGIN
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable clamd:
+#
+# clamav_clamd_enable="YES"
+# clamav_clamd_flags="<set as needed>"
+#
+# See clamd(8) for flags
+#
+
+. /etc/rc.subr
+
+name=clamav_clamd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/clamd
+required_dirs=%%DBDIR%%
+required_files=%%PREFIX%%/etc/clamd.conf
+
+# read settings, set default values
+load_rc_config "$name"
+: ${clamav_clamd_enable="NO"}
+: ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
+
+start_precmd=clamav_clamd_precmd
+
+clamav_clamd_precmd() {
+ if [ ! -f %%DBDIR%%/main.cvd -a ! -f %%DBDIR%%/main.cld ];then
+ echo "Missing %%DBDIR%%/clamav/*.cvd or *.cld files. You must run freshclam first"
+ exit 1
+ fi
+}
+
+extra_commands="reload"
+reload_cmd=clamd_reload
+
+clamd_reload()
+{
+ %%PREFIX%%/bin/clamdscan --reload
+}
+
+run_rc_command "$1"
diff -ruN clamav.bak/files/clamav-freshclam.in clamav/files/clamav-freshclam.in
--- clamav.bak/files/clamav-freshclam.in 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/clamav-freshclam.in 2010-04-05 12:31:43.428165747 +0300
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/security/clamav/files/clamav-freshclam.in,v 1.3 2010/03/27 00:14:40 dougb Exp $
+#
+
+# PROVIDE: freshclam
+# REQUIRE: LOGIN clamd
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable the freshclam daemon:
+#
+# clamav_freshclam_enable="YES"
+# clamav_freshclam_flags="<set as needed>"
+#
+# See freshclam(1) for flags
+#
+
+. /etc/rc.subr
+
+name=clamav_freshclam
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/bin/freshclam
+pidfile=%%RUNDIR%%/freshclam.pid
+command_args="--daemon -p ${pidfile}"
+required_dirs=%%DBDIR%%
+required_files=%%PREFIX%%/etc/freshclam.conf
+
+# read settings, set default values
+load_rc_config "$name"
+: ${clamav_freshclam_enable="NO"}
+
+run_rc_command "$1"
diff -ruN clamav.bak/files/clamav-milter.in clamav/files/clamav-milter.in
--- clamav.bak/files/clamav-milter.in 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/clamav-milter.in 2010-04-05 12:31:29.123923867 +0300
@@ -0,0 +1,105 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/security/clamav/files/clamav-milter.in,v 1.13 2010/03/27 00:14:40 dougb Exp $
+#
+
+# PROVIDE: clamav-milter
+# REQUIRE: LOGIN clamd
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable clamav-milter:
+#
+#clamav_milter_enable="YES"
+#
+# See clamav-milter(1) for flags
+#
+
+. /etc/rc.subr
+
+name=clamav_milter
+rcvar=`set_rcvar`
+
+conf_file=%%PREFIX%%/etc/clamav-milter.conf
+command=%%PREFIX%%/sbin/clamav-milter
+required_dirs=%%DBDIR%%
+required_files=${conf_file}
+
+start_precmd=start_precmd
+start_postcmd=start_postcmd
+
+start_precmd()
+{
+ if [ -S "$clamav_milter_socket" ]; then
+ warn "Stale socket $clamav_milter_socket removed."
+ rm "$clamav_milter_socket"
+ fi
+ rc_flags="${flags:-$clamav_milter_flags}"
+
+ clamav_clamd_socket_prefix=${clamav_clamd_socket%:*}
+ # We can have inet or inet6, try to remove 6
+ clamav_clamd_socket_prefix=${clamav_clamd_socket_prefix%6}
+
+ if checkyesno clamav_clamd_enable && [ "x$clamav_clamd_socket" != "x" -a "${clamav_clamd_socket_prefix}" != "inet" ]; then
+ echo -n "Waiting for clamd socket.. "
+ i=${clamav_milter_socktimeout}
+ while [ $i -ne 0 ]
+ do
+ [ -S "$clamav_clamd_socket" ] && break
+ if [ `expr $i % 10` -eq 0 ]; then
+ echo -n "${i}.. "
+ fi
+ sleep 1
+ i=$(($i-1))
+ done
+ echo
+ if [ $i -eq 0 ]; then
+ echo "There is no clamd socket (${clamav_clamd_socket})!"
+ exit 1
+ fi
+ fi
+}
+
+start_postcmd()
+{
+ clamav_milter_socket_prefix=${clamav_milter_socket%:*}
+ # We can have inet or inet6, try to remove 6
+ clamav_milter_socket_prefix=${clamav_milter_socket_prefix%6}
+
+ if [ "x$clamav_milter_socket" != "x" -a "${clamav_milter_socket_prefix}" != "inet" ]; then
+ echo -n "Waiting for clamav-milter socket.. "
+ i=${clamav_milter_socktimeout}
+ while [ $i -ne 0 ]
+ do
+ [ -S "$clamav_milter_socket" ] && break
+ if [ `expr $i % 10` -eq 0 ]; then
+ echo -n "${i}.. "
+ fi
+ sleep 1
+ i=$(($i-1))
+ done
+ echo
+ if [ $i -eq 0 ]; then
+ echo "There is no clamav-milter socket (${clamav_milter_socket})!"
+ exit 1
+ fi
+ %%CHMOD%% ${clamav_milter_socket_mode} ${clamav_milter_socket}
+ %%CHOWN%% ${clamav_milter_socket_user}:${clamav_milter_socket_group} ${clamav_milter_socket}
+ fi
+}
+
+# read settings, set default values
+load_rc_config $name
+: ${clamav_milter_enable="NO"}
+: ${clamav_milter_socket="%%CLAMAV_MILTER_SOCKET%%"}
+: ${clamav_milter_flags="-c ${conf_file}"}
+: ${clamav_milter_socktimeout="60"}
+: ${clamav_milter_socket_mode="777"}
+: ${clamav_milter_socket_user="%%CLAMAVUSER%%"}
+: ${clamav_milter_socket_group="%%CLAMAVGROUP%%"}
+
+: ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
+: ${clamav_clamd_enable="NO"}
+
+run_rc_command "$1"
diff -ruN clamav.bak/files/extra-patch-shared_output.c clamav/files/extra-patch-shared_output.c
--- clamav.bak/files/extra-patch-shared_output.c 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/extra-patch-shared_output.c 2010-04-05 12:27:33.322310428 +0300
@@ -0,0 +1,17 @@
+--- shared/output.c.orig Thu May 18 22:10:40 2006
++++ shared/output.c Thu May 18 22:12:43 2006
+@@ -236,7 +236,13 @@
+ return;
+ }
+
+- fd = stdout;
++/* fd = stdout; (missing flag 'mprintf_stdout') --eh. */
++
++ if(mprintf_stdout)
++ fd = stdout;
++ else
++ fd = stderr;
++
+
+ /* legend:
+ * ! - error
diff -ruN clamav.bak/files/patch-configure clamav/files/patch-configure
--- clamav.bak/files/patch-configure 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/patch-configure 2010-04-05 12:27:33.292717770 +0300
@@ -0,0 +1,20 @@
+--- configure.orig 2008-10-15 07:41:31.000000000 -0300
++++ configure 2008-10-15 08:55:58.000000000 -0300
+@@ -17909,7 +17909,7 @@
+ ;;
+ freebsd*)
+ if test "$have_pthreads" = "yes"; then
+- THREAD_LIBS="-lthr"
++ THREAD_LIBS="%%PTHREAD_LIBS%%"
+ TH_SAFE="-thread-safe"
+
+ cat >>confdefs.h <<\_ACEOF
+@@ -18269,7 +18269,7 @@
+ if test "$have_milter" = "yes"; then
+
+ save_LIBS="$LIBS"
+- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
++ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $THREAD_LIBS"
+ if test -d /usr/lib/libmilter ; then
+ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
+ fi
diff -ruN clamav.bak/files/patch-etc_Makefile.in clamav/files/patch-etc_Makefile.in
--- clamav.bak/files/patch-etc_Makefile.in 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/patch-etc_Makefile.in 2010-04-05 12:27:33.319343424 +0300
@@ -0,0 +1,18 @@
+--- etc/Makefile.in.orig 2009-08-26 18:39:35.000000000 -0300
++++ etc/Makefile.in 2009-08-27 13:14:27.000000000 -0300
+@@ -426,12 +426,9 @@
+
+ install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(CFGINST)
+- @test -f $(DESTDIR)$(CFGINST)/clamd.conf || \
+- $(INSTALL_DATA) $(srcdir)/clamd.conf $(DESTDIR)$(CFGINST)
+- @test -f $(DESTDIR)$(CFGINST)/freshclam.conf || \
+- $(INSTALL_DATA) $(srcdir)/freshclam.conf $(DESTDIR)$(CFGINST)
+- at BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@ @test -f $(DESTDIR)$(CFGINST)/clamav-milter.conf || \
+- at BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@ $(INSTALL_DATA) $(srcdir)/clamav-milter.conf $(DESTDIR)$(CFGINST)
++ $(INSTALL_DATA) $(srcdir)/clamd.conf $(DESTDIR)$(CFGINST)/clamd.conf.default
++ $(INSTALL_DATA) $(srcdir)/freshclam.conf $(DESTDIR)$(CFGINST)/freshclam.conf.default
++ at BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@ $(INSTALL_DATA) $(srcdir)/clamav-milter.conf $(DESTDIR)$(CFGINST)/clamav-milter.conf.default
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff -ruN clamav.bak/files/pkg-deinstall.in clamav/files/pkg-deinstall.in
--- clamav.bak/files/pkg-deinstall.in 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/pkg-deinstall.in 2010-04-05 12:30:53.377569605 +0300
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+CLAMAVUSER=%%CLAMAVUSER%%
+
+echo
+echo "===================================================="
+echo
+echo "If you want remove clamav permanently from you system"
+echo "execute following commands:"
+echo
+echo " # rm -rf %%LOGDIR%%"
+echo " # rm -rf %%RUNDIR%%"
+echo " # rm -rf %%DBDIR%%"
+if pw usershow "${CLAMAVUSER}" 2>/dev/null 1>&2; then
+ echo " # pw userdel ${CLAMAVUSER}"
+fi
+echo
+echo "===================================================="
+echo
+
+exit 0
diff -ruN clamav.bak/files/pkg-install.in clamav/files/pkg-install.in
--- clamav.bak/files/pkg-install.in 1970-01-01 03:00:00.000000000 +0300
+++ clamav/files/pkg-install.in 2010-04-05 12:30:48.309302355 +0300
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+
+PREFIX=${PKG_PREFIX:-%%PREFIX%%}
+
+CLAMAVUSER=%%CLAMAVUSER%%
+CLAMAVGROUP=%%CLAMAVGROUP%%
+UID=106
+GID=$UID
+
+DBDIR=%%DBDIR%%
+LOGDIR=%%LOGDIR%%
+RUNDIR=%%RUNDIR%%
+
+PW="pw"
+CHOWN="chown"
+INSTALL_DIR="install -d -o ${CLAMAVUSER} -g ${CLAMAVGROUP} -m 0755"
+
+if [ "$2" = "PRE-INSTALL" ]; then
+
+ if ! ${PW} groupshow ${CLAMAVGROUP} 2>/dev/null 1>&2; then
+ if ${PW} groupadd ${CLAMAVGROUP} -g $GID; then
+ echo "=> Added group \"${CLAMAVGROUP}\"."
+ else
+ echo "=> Adding group \"${CLAMAVGROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if ! ${PW} usershow ${CLAMAVUSER} 2>/dev/null 1>&2; then
+ if ${PW} useradd ${CLAMAVUSER} -u $UID -g ${CLAMAVGROUP} -h - \
+ -s "/sbin/nologin" -d "/nonexistent" \
+ -c "Clam Antivirus"; \
+ then
+ ${PW} groupmod mail -m ${CLAMAVUSER}
+ echo "=> Added user \"${CLAMAVUSER}\"."
+ else
+ echo "=> Adding user \"${CLAMAVUSER}\" failed..."
+ exit 1
+ fi
+ fi
+
+elif [ "$2" = "POST-INSTALL" ]; then
+ ${INSTALL_DIR} ${DBDIR} ${LOGDIR} ${RUNDIR}
+ ${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DBDIR} ${LOGDIR} ${RUNDIR}
+fi
+
+exit 0
diff -ruN clamav.bak/pkg-descr clamav/pkg-descr
--- clamav.bak/pkg-descr 1970-01-01 03:00:00.000000000 +0300
+++ clamav/pkg-descr 2010-04-05 12:27:33.333132548 +0300
@@ -0,0 +1,8 @@
+This is a snapshot version of Clam Antivirus.
+Clam Antivirus is command line virus scanner written entirely in C
+and its database is kept up to date. It also detects polymorphic
+viruses, scans compressed files and supported by AMaViS.
+Optionally you can use the clamav-milter interface to connect
+clamav with sendmail.
+
+WWW: http://www.clamav.net/
diff -ruN clamav.bak/pkg-plist clamav/pkg-plist
--- clamav.bak/pkg-plist 1970-01-01 03:00:00.000000000 +0300
+++ clamav/pkg-plist 2010-04-05 12:32:24.195397519 +0300
@@ -0,0 +1,36 @@
+ at comment $FreeBSD: ports/security/clamav/pkg-plist,v 1.38 2009/03/27 11:52:22 garga Exp $
+bin/clamav-config
+bin/clambc
+bin/clamconf
+bin/clamdtop
+bin/clamscan
+bin/clamdscan
+bin/freshclam
+bin/sigtool
+%%CLAMAV-MILTER%%sbin/clamav-milter
+sbin/clamd
+include/clamav.h
+include/clamav-config.h
+lib/libclamav.la
+lib/libclamav.so
+lib/libclamav.so.7
+%%UNRAR%%lib/libclamunrar.la
+%%UNRAR%%lib/libclamunrar.so
+%%UNRAR%%lib/libclamunrar.so.7
+%%UNRAR%%lib/libclamunrar_iface.la
+%%UNRAR%%lib/libclamunrar_iface.so
+%%UNRAR%%lib/libclamunrar_iface.so.7
+libdata/pkgconfig/libclamav.pc
+ at unexec if cmp -s %D/etc/clamd.conf %D/etc/clamd.conf.default; then rm -f %D/etc/clamd.conf; fi
+etc/clamd.conf.default
+ at exec [ -f %B/clamd.conf ] || cp %B/%f %B/clamd.conf
+ at unexec if cmp -s %D/etc/freshclam.conf %D/etc/freshclam.conf.default; then rm -f %D/etc/freshclam.conf; fi
+etc/freshclam.conf.default
+%%CLAMAV-MILTER%%@unexec if cmp -s %D/etc/clamav-milter.conf %D/etc/clamav-milter.conf.default; then rm -f %D/etc/clamav-milter.conf; fi
+%%CLAMAV-MILTER%%etc/clamav-milter.conf.default
+ at exec [ -f %B/freshclam.conf ] || cp %B/%f %B/freshclam.conf
+ at unexec [ -s %%DBDIR%%/daily.cvd ] || rm -f %%DBDIR%%/daily.cvd || true
+ at unexec [ -s %%DBDIR%%/main.cvd ] || rm -f %%DBDIR%%/main.cvd || true
+ at dirrmtry %%DBDIR%%
+ at dirrmtry %%LOGDIR%%
+ at dirrmtry %%RUNDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list