aboutsummaryrefslogtreecommitdiffstats
path: root/security/uvscan-dat/files
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-10-04 04:16:33 +0800
committerjeh <jeh@FreeBSD.org>2001-10-04 04:16:33 +0800
commitd3202eb8228598f8e0eb6065aedc92a9850b3720 (patch)
treec8d64b70bb14f6428ca78da732924a3a71e13dac /security/uvscan-dat/files
parentee3da2e5dba3a7acdeefefdd5c3e1dcd054510c1 (diff)
downloadfreebsd-ports-gnome-d3202eb8228598f8e0eb6065aedc92a9850b3720.tar.gz
freebsd-ports-gnome-d3202eb8228598f8e0eb6065aedc92a9850b3720.tar.zst
freebsd-ports-gnome-d3202eb8228598f8e0eb6065aedc92a9850b3720.zip
Update to 4164
files/update_dat: Chase the ever changing version number format
Diffstat (limited to 'security/uvscan-dat/files')
-rw-r--r--security/uvscan-dat/files/update_dat6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index 00e2194daf37..864d00fbbba5 100644
--- a/security/uvscan-dat/files/update_dat
+++ b/security/uvscan-dat/files/update_dat
@@ -1,10 +1,16 @@
#!/bin/sh
+#
+# $Id$
+#
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 [ "x$AVVER" = "x" ] ; then
+ AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \([0-9]*\) .*$/\1/'`
+fi
if [ ! -f dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old