diff options
author | jeh <jeh@FreeBSD.org> | 2001-10-04 04:16:33 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2001-10-04 04:16:33 +0800 |
commit | d3202eb8228598f8e0eb6065aedc92a9850b3720 (patch) | |
tree | c8d64b70bb14f6428ca78da732924a3a71e13dac /security/uvscan-dat/files | |
parent | ee3da2e5dba3a7acdeefefdd5c3e1dcd054510c1 (diff) | |
download | freebsd-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_dat | 6 |
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 |