aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-09-27 11:15:17 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-09-27 11:15:17 +0000
commit65bb30c922cde2732f3680fc11fa4c1269550f18 (patch)
treedb5b2f0cc51f6d98d03ac0f767186e4b3d77d7ef /security
parentd290fd9e735b101e23b4032f9801ff9287d2f3eb (diff)
downloadports-65bb30c922cde2732f3680fc11fa4c1269550f18.tar.gz
ports-65bb30c922cde2732f3680fc11fa4c1269550f18.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/uvscan-dat/Makefile1
-rw-r--r--security/uvscan-dat/files/update_dat3
2 files changed, 4 insertions, 0 deletions
diff --git a/security/uvscan-dat/Makefile b/security/uvscan-dat/Makefile
index 8d82f474a61b..97edce47d566 100644
--- a/security/uvscan-dat/Makefile
+++ b/security/uvscan-dat/Makefile
@@ -7,6 +7,7 @@
PORTNAME= uvscan_dat
PORTVERSION= 4163
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/datfiles/4.x/nai/
DISTNAME= dat-${PORTVERSION}
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index 214f5f6e8227..00e2194daf37 100644
--- a/security/uvscan-dat/files/update_dat
+++ b/security/uvscan-dat/files/update_dat
@@ -2,6 +2,9 @@
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 [ ! -f dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old