ports/122770: update: clamav to 0.93

Michael Scheidell scheidell at secnap.net
Mon Apr 14 20:20:02 UTC 2008


>Number:         122770
>Category:       ports
>Synopsis:       update: clamav to 0.93
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 20:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scheidell
>Release:        6.3
>Organization:
SECNAP Network Security
>Environment:
na
>Description:
Clamav has been updated to 0.93, warning: two incompatibilities. options ArchiveMax* changed to Max*.  DBDIR/*.inc dirs not user, need *.cvd files or it won't even start.

patches TRY to address both issues.

0.93
----

This release introduces many new features and engine enhancements, please
see the notes below for the list of major changes. The most visible one
is the new logic in scan limits which affects some command line and config
options of clamscan and clamd. Please see clamscan(1) and clamd.conf(5)
and the example config file for more information on the new options.

Most important changes include:

  * libclamav:
    - New logic in scan limits: provides much more efficient protection against
Most important changes include:

  * libclamav:
    - New logic in scan limits: provides much more efficient protection against
      DoS attacks but also results in different command line and config options
      to clamscan and clamd (see below)
    - New/improved modules: unzip, SIS, cabinet, CHM, SZDD, text normalisator,
      entity converter
    - Improved filetype detection; filetype definitions can be remotely updated
    - Support for .cld containers (which replace .inc directories)
    - Improved pattern matcher and signature formats
    - More efficient scanning of HTML files
    - Many other improvements

  * clamd:
    - NEW CONFIG FILE OPTIONS: MaxScanSize, MaxFileSize, MaxRecursion, MaxFiles
    - ** THE FOLLOWING OPTIONS ARE NO LONGER SUPPORTED **: MailMaxRecursion,
      ArchiveMaxFileSize, ArchiveMaxRecursion, ArchiveMaxFiles,
      ArchiveMaxCompressionRatio, ArchiveBlockMax

  * clamscan:
    - NEW CMDLINE OPTIONS: --max-filesize, --max-scansize
    - REMOVED OPTIONS: --block-max, --max-space, --max-ratio

  * freshclam:
    - NEW CONFIG OPTION CompressLocalDatabase
    - NEW CMDLINE SWITCH --no-warnings
    - main.inc and daily.inc directories are no longer used by ClamAV; please
      remove them manually from your database directory

>How-To-Repeat:
install, 

(can't attach patch since you broke that translator or whatever funky thing you did)
>Fix:
and attached, since pr seems to trash either the web or attached patches.

diff -bBru /var/tmp/clamav/ ./
diff -bBru /var/tmp/clamav/Makefile ./Makefile
--- /var/tmp/clamav/Makefile    Thu Feb 21 08:19:50 2008
+++ ./Makefile  Mon Apr 14 15:16:20 2008
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=      clamav
-PORTVERSION=   0.92.1
-PORTREVISION=  1
+PORTVERSION=   0.93
 CATEGORIES=    security
 MASTER_SITES=  SF
 
@@ -91,7 +90,9 @@
                -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|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|' \
+               -e 's|ArchiveMax|Max|' \
+               -e 's|MailMaxRecursion|MaxRecursion|'
 
 PLIST_SUB+=    CLAMAVUSER=${CLAMAVUSER} \
                CLAMAVGROUP=${CLAMAVGROUP}
diff -bBru /var/tmp/clamav/distinfo ./distinfo
--- /var/tmp/clamav/distinfo    Wed Feb 13 10:37:27 2008
+++ ./distinfo  Mon Apr 14 13:57:11 2008
@@ -1,3 +1,3 @@
-MD5 (clamav-0.92.1.tar.gz) = c16e60f569b6ec575d8de494e788f9d2
-SHA256 (clamav-0.92.1.tar.gz) = e08a63adb3eda3dfc190d7a8b3fa55c881b1632583fbdf67327d3767d6966581
-SIZE (clamav-0.92.1.tar.gz) = 15284752
+MD5 (clamav-0.93.tar.gz) = 72ed6f4706858e72f24dda8a591df0da
+SHA256 (clamav-0.93.tar.gz) = 1fedc2bb4a850c962d6b0938b77b14480297bffa4cbf69ed95c4ee4f35b5db69
+SIZE (clamav-0.93.tar.gz) = 16134725
diff -bBru /var/tmp/clamav/files/clamav-clamd.in ./files/clamav-clamd.in
--- /var/tmp/clamav/files/clamav-clamd.in       Thu Apr  6 11:20:18 2006
+++ ./files/clamav-clamd.in     Mon Apr 14 15:43:29 2008
@@ -32,4 +32,16 @@
 : ${clamav_clamd_flags=""}
 : ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
 
+start_precmd=clamav_clamd_precmd
+
+# clamav .93 won't start without a valid main.cvd file
+clamav_clamd_precmd() {
+   if [ ! -f %%DBDIR%%/main.cvd ];then
+      echo "Missing %%DBDIR%%/clamav/*.cvd files.  You must run freshclam first"
+      return 1
+   fi
+}
+
 run_rc_command "$1"
+
+


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list