From 65bb30c922cde2732f3680fc11fa4c1269550f18 Mon Sep 17 00:00:00 2001 From: "James E. Housley" Date: Thu, 27 Sep 2001 11:15:17 +0000 Subject: They seem to have changed the format of the readme.txt file and broke our update_dat utility. This should fix that. --- security/uvscan-dat/Makefile | 1 + security/uvscan-dat/files/update_dat | 3 +++ 2 files changed, 4 insertions(+) (limited to 'security') diff --git a/security/uvscan-dat/Makefile b/security/uvscan-dat/Makefile index 8d82f474a61b..97edce47d566 100644 --- a/security/uvscan-dat/Makefile +++ b/security/uvscan-dat/Makefile @@ -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} diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat index 214f5f6e8227..00e2194daf37 100644 --- a/security/uvscan-dat/files/update_dat +++ b/security/uvscan-dat/files/update_dat @@ -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 -- cgit v1.2.3