diff options
author | James E. Housley <jeh@FreeBSD.org> | 2001-10-03 20:16:33 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2001-10-03 20:16:33 +0000 |
commit | 6df0895f155cb719c1fb537526a0316848078a96 (patch) | |
tree | c93b507691f9e1c9c46f45e2f4f30ff706f6fda9 /security/uvscan-dat/files/update_dat | |
parent | 721417c37e8f035e93ada07723f0b6f9cc292f88 (diff) |
Notes
Diffstat (limited to 'security/uvscan-dat/files/update_dat')
-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 |