They seem to have changed the format of the readme.txt file and

broke our update_dat utility.  This should fix that.
This commit is contained in:
James E. Housley 2001-09-27 11:15:17 +00:00
parent d290fd9e73
commit 65bb30c922
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48218
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= uvscan_dat
PORTVERSION= 4163
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/datfiles/4.x/nai/
DISTNAME= dat-${PORTVERSION}

View File

@ -2,6 +2,9 @@
cd @PREFIX@/libexec/uvscan/
ftp http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null
AVVER=`head -1 readme.txt | cut -d' ' -f11`
if [ "x$AVVER" = "x" ] ; then
AVVER=`grep 'DAT [0-9]* Release Date' readme.txt | head -1 | sed -e 's/^.*DAT \([0-9]*\) Release Date.*$/\1/'`
fi
if [ ! -f dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old