aboutsummaryrefslogtreecommitdiff
path: root/security/uvscan-dat/files/update_dat
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2002-05-04 01:00:21 +0000
committerJames E. Housley <jeh@FreeBSD.org>2002-05-04 01:00:21 +0000
commit68fc467fd6af4262efa004bf61a651bd659fe278 (patch)
treed9c3eb9f5687b5b8af678d0ba30b12aff729822f /security/uvscan-dat/files/update_dat
parenta47a306c728f033e2f3a27ba1fc17be4c0bc4060 (diff)
Notes
Diffstat (limited to 'security/uvscan-dat/files/update_dat')
-rw-r--r--security/uvscan-dat/files/update_dat4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index 360e09501089..3ffdd506a5a8 100644
--- a/security/uvscan-dat/files/update_dat
+++ b/security/uvscan-dat/files/update_dat
@@ -2,9 +2,9 @@
#
# $Id$
#
-cd @PREFIX@/libexec/uvscan/
+cd /usr/local/libexec/uvscan/
ftp http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null
-AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \(4[0-9]*\) .*$/\1/'`
+AVVER=`grep DAT readme.txt | head -5 | grep '[^0-9]4[0-9][0-9][0-9][^0-9]' | head -1 | sed -e 's/^.*[^0-9]\(4[0-9]*\)[^0-9].*$/\1/'`
if [ ! -f dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old