From owner-svn-ports-all@FreeBSD.ORG Thu Sep 6 22:47:00 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FB2D106564A; Thu, 6 Sep 2012 22:47:00 +0000 (UTC) (envelope-from lippe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EF9BB8FC14; Thu, 6 Sep 2012 22:46:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q86MkxUX096430; Thu, 6 Sep 2012 22:46:59 GMT (envelope-from lippe@svn.freebsd.org) Received: (from lippe@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q86MkxJN096427; Thu, 6 Sep 2012 22:46:59 GMT (envelope-from lippe@svn.freebsd.org) Message-Id: <201209062246.q86MkxJN096427@svn.freebsd.org> From: Felippe de Meirelles Motta Date: Thu, 6 Sep 2012 22:46:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r303795 - head/mail/simscan/files X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 22:47:00 -0000 Author: lippe Date: Thu Sep 6 22:46:59 2012 New Revision: 303795 URL: http://svn.freebsd.org/changeset/ports/303795 Log: Fix configure script when clamav DB is not already downloaded. PR: ports/169462 Submitted by: "Bryan Drewery" Modified: head/mail/simscan/files/patch-fix_clamav_0.93 Modified: head/mail/simscan/files/patch-fix_clamav_0.93 ============================================================================== --- head/mail/simscan/files/patch-fix_clamav_0.93 Thu Sep 6 21:58:21 2012 (r303794) +++ head/mail/simscan/files/patch-fix_clamav_0.93 Thu Sep 6 22:46:59 2012 (r303795) @@ -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 @@