ports/105114: update_dat script for port security/vscan no longer skips download if no change
Larry Rosenman
ler at lerctr.org
Fri Nov 3 14:10:26 UTC 2006
>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: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 03 14:10:24 GMT 2006
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list