aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-11-01 01:27:47 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-11-01 01:27:47 +0000
commite79438e798b2c26b4c3301bdd6f42f4da24151b6 (patch)
treebcb256a280d2903f742f0f2aafb17ae5b4f3d9c5 /security
parentaf8ba09bbb5742c70052ec410cffdb8e28622df4 (diff)
downloadports-e79438e798b2c26b4c3301bdd6f42f4da24151b6.tar.gz
ports-e79438e798b2c26b4c3301bdd6f42f4da24151b6.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/uvscan-dat/files/update_dat8
1 files changed, 1 insertions, 7 deletions
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index 864d00fbbba5..360e09501089 100644
--- a/security/uvscan-dat/files/update_dat
+++ b/security/uvscan-dat/files/update_dat
@@ -4,13 +4,7 @@
#
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
+AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \(4[0-9]*\) .*$/\1/'`
if [ ! -f dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old