From ler@lerctr.org  Fri Nov  3 14:09:45 2006
Return-Path: <ler@lerctr.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6BB2B16A4E2
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Nov 2006 14:09:45 +0000 (UTC)
	(envelope-from ler@lerctr.org)
Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2CC4143D9E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Nov 2006 14:09:38 +0000 (GMT)
	(envelope-from ler@lerctr.org)
Received: from ler by thebighonker.lerctr.org with local (Exim 4.63 (FreeBSD))
	(envelope-from <ler@lerctr.org>)
	id 1Gfzjm-0002Tt-Fu
	for FreeBSD-gnats-submit@freebsd.org; Fri, 03 Nov 2006 08:09:38 -0600
Message-Id: <E1Gfzjm-0002Tt-Fu@thebighonker.lerctr.org>
Date: Fri, 03 Nov 2006 08:09:38 -0600
From: Larry Rosenman <ler@lerctr.org>
Reply-To: Larry Rosenman <ler@lerctr.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: update_dat script for port security/vscan no longer skips download if no change
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         105114
>Category:       ports
>Synopsis:       update_dat script for port security/vscan no longer skips download if no change
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jeh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 03 14:10:24 GMT 2006
>Closed-Date:    Fri Nov 03 14:25:55 GMT 2006
>Last-Modified:  Fri Nov  3 14:30:17 GMT 2006
>Originator:     Larry Rosenman
>Release:        FreeBSD 6.2-PRERELEASE amd64
>Organization:
LERCTR Consulting
>Environment:
System: FreeBSD thebighonker.lerctr.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #78: Sat Oct 28 11:38:29 CDT 2006 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64


	
>Description:
Apparently McAfee stopped shipping the file_id.diz file in the tar balls on
October 27.  I made the following change to make it work with the current file
set. 
>How-To-Repeat:
run update_dat twice, see that it still downloads the file even when it's current.
>Fix:

 
 # Force a low default and then get the current version's value
 cur_AVVER="1"
-if [ -f "file_id.diz" ]; then
-	cur_AVVER="`tail -1 file_id.diz | sed -e 's/^(\(4[0-9]*\)).*$/\1/'`"
+if [ -f pkgdesc.ini ]; then
+	cur_AVVER=`grep Version pkgdesc.ini | cut -f2 -d= |sed -e 's/^(\(4[0-9]+\)).*$/\1/'`
 fi


(I don't have the exact line numbers, as I have other local changes, so this
is submitted as a general idea).


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jeh 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Nov 3 14:10:52 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105114 
State-Changed-From-To: open->closed 
State-Changed-By: jeh 
State-Changed-When: Fri Nov 3 14:25:40 UTC 2006 
State-Changed-Why:  
Commited, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105114 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/105114: commit references a PR
Date: Fri,  3 Nov 2006 14:26:52 +0000 (UTC)

 jeh         2006-11-03 14:25:24 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/vscan       Makefile 
     security/vscan/files update_dat 
   Log:
   Fix update_dat so it won't repeatedly fetch the same DAT file
   
   PR:     105114
   
   Revision  Changes    Path
   1.41      +1 -0      ports/security/vscan/Makefile
   1.2       +2 -2      ports/security/vscan/files/update_dat
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
