Date: Tue, 26 Jun 2012 14:29:20 -0500 From: "Bryan Drewery" <bryan@shatow.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/169462: [mail/simscan] configure failure with HEADERS when clamav DB is not already downloaded Message-ID: <20120626193001.B123C106566C@hub.freebsd.org> Resent-Message-ID: <201206261930.q5QJUKr8003884@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169462 >Category: ports >Synopsis: [mail/simscan] configure failure with HEADERS when clamav DB is not already downloaded >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jun 26 19:30:20 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Bryan Drewery >Release: FreeBSD 8.3-RELEASE i386 >Organization: >Environment: >Description: mail/simscan does not build with HEADERS if clamav is either not already installed or its DB has not been downloaded yet. This was also reported at http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2007-May/120044.html >How-To-Repeat: Uninstall clamav, rm -f /var/db/clamav/* /usr/ports/mail/simscan# find /var/db/clamav/ /var/db/clamav/ /usr/ports/mail/simscan# make showconfig ===> The following configuration options are available for simscan-1.4.0_6: CLAMAV=on: Support for ClamAV Virus Scanning RIPMIME=on: Ripmime Processing (if Clamav ScanMail disabled) SPAMD=off: Support for SpamAssassin Spam Filtering USER=off: Turn On Per User SpamAssassin (required SPAMD) DOMAIN=off: Turn On Per Domain Based Checking ATTACH=on: Turn On Attachment Scanning (required CLAMAV) DROPMSG=off: Drop Message in Case of Virus Found PASSTHRU=off: Pass Spam Thru, Do Not Reject (required SPAMD) HEADERS=on: Add a Received Line With Versions of Scanners DSPAM=off: Turn on DSPAM scanning /usr/ports/mail/simscan# make configure ===> License check disabled, port has not defined LICENSE ===> Found saved configuration for simscan-1.4.0_6 <..snip..> checking whether we can locate the clamav db path... no configure: error: Unable to find your clamav databases, specify --enable-clamavdb-path. ===> Script "configure" failed unexpectedly. >Fix: The fix makes the default fall back on /var/db/clamav/daily.cld instead of failing. --- patch-simscan-clamav-headers.txt begins here --- Only in ./files: .patch-fix_clamav_0.93.swp diff -ur ../simscan.orig/files/patch-fix_clamav_0.93 ./files/patch-fix_clamav_0.93 --- ../simscan.orig/files/patch-fix_clamav_0.93 2008-08-29 11:48:17.000000000 -0500 +++ ./files/patch-fix_clamav_0.93 2012-06-26 14:22:17.000000000 -0500 @@ -1,23 +1,36 @@ ---- configure 2007-10-29 10:14:25.000000000 -0400 -+++ configure 2008-05-02 15:31:51.000000000 -0400 -@@ -4686,6 +4686,14 @@ - then - clamavdb=$f - break -+ elif test -f "$f/daily.cld" +--- ./configure.orig 2007-10-29 09:14:25.000000000 -0500 ++++ ./configure 2012-06-26 14:20:22.000000000 -0500 +@@ -4682,13 +4682,26 @@ + clamavdb="" + for f in "$CLAMAV_DB" /usr/local/share/clamav /var/lib/clamav + do +- if test -f "$f/daily.cvd" ++ if test -f "$f/daily.cvd" || test -d "$f/daily.inc" + then + clamavdb=$f + break -+ elif test -f "$f/daily.inc/daily.info" ++ elif test -f "$f/daily.cld" + then + clamavdb=$f + break ++ elif test -f "$f/daily.inc/daily.info" + then + clamavdb=$f + break fi done ---- configure.in 2007-10-29 10:13:40.000000000 -0400 -+++ configure.in 2008-05-02 15:31:32.000000000 -0400 -@@ -622,6 +622,14 @@ ++ # Default to $f/daily.cld ++ if test "$clamavdb" = ""; then ++ clamavdb="$f/daily.cld" ++ fi ++ + if test "$clamavdb" = "" + then + echo "$as_me:$LINENO: result: no" >&5 +--- ./configure.in.orig 2007-10-29 09:13:40.000000000 -0500 ++++ ./configure.in 2012-06-26 14:20:02.000000000 -0500 +@@ -622,9 +622,22 @@ then clamavdb=$f break @@ -32,6 +45,14 @@ fi done ++ # Default to $f/daily.cld ++ if test "$clamavdb" = ""; then ++ clamavdb="$f/daily.cld" ++ fi ++ + if test "$clamavdb" = "" + then + AC_MSG_RESULT(no) --- simscanmk.c 2006-10-10 19:15:17.000000000 -0400 +++ simscanmk.c 2008-07-07 14:21:46.000000000 -0400 @@ -123,6 +123,7 @@ --- patch-simscan-clamav-headers.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120626193001.B123C106566C>