aboutsummaryrefslogtreecommitdiffstats
path: root/security/uvscan-dat/files
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-09-27 19:15:17 +0800
committerjeh <jeh@FreeBSD.org>2001-09-27 19:15:17 +0800
commit19957662f87126c61595f08c2a0ec031fbbd9cc7 (patch)
tree41c8fda7397027a8955aef3ddd722d03cf25a7dd /security/uvscan-dat/files
parentd3f869a483d2130b39c8c93d24a8de5512d44498 (diff)
downloadfreebsd-ports-gnome-19957662f87126c61595f08c2a0ec031fbbd9cc7.tar.gz
freebsd-ports-gnome-19957662f87126c61595f08c2a0ec031fbbd9cc7.tar.zst
freebsd-ports-gnome-19957662f87126c61595f08c2a0ec031fbbd9cc7.zip
They seem to have changed the format of the readme.txt file and
broke our update_dat utility. This should fix that.
Diffstat (limited to 'security/uvscan-dat/files')
-rw-r--r--security/uvscan-dat/files/update_dat3
1 files changed, 3 insertions, 0 deletions
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