aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-09-27 19:15:17 +0800
committerjeh <jeh@FreeBSD.org>2001-09-27 19:15:17 +0800
commit19957662f87126c61595f08c2a0ec031fbbd9cc7 (patch)
tree41c8fda7397027a8955aef3ddd722d03cf25a7dd
parentd3f869a483d2130b39c8c93d24a8de5512d44498 (diff)
downloadfreebsd-ports-gnome-19957662f87126c61595f08c2a0ec031fbbd9cc7.tar.gz
freebsd-ports-gnome-19957662f87126c61595f08c2a0ec031fbbd9cc7.tar.zst
freebsd-ports-gnome-19957662f87126c61595f08c2a0ec031fbbd9cc7.zip
They seem to have changed the format of the readme.txt file and
broke our update_dat utility. This should fix that.
-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