summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-10-03 20:16:33 +0000
committerjeh <jeh@FreeBSD.org>2001-10-03 20:16:33 +0000
commitd3202eb8228598f8e0eb6065aedc92a9850b3720 (patch)
treec8d64b70bb14f6428ca78da732924a3a71e13dac /security
parentee3da2e5dba3a7acdeefefdd5c3e1dcd054510c1 (diff)
downloadFreeBSD-ports-d3202eb8228598f8e0eb6065aedc92a9850b3720.zip
FreeBSD-ports-d3202eb8228598f8e0eb6065aedc92a9850b3720.tar.gz
Update to 4164
files/update_dat: Chase the ever changing version number format
Diffstat (limited to 'security')
-rw-r--r--security/uvscan-dat/Makefile3
-rw-r--r--security/uvscan-dat/distinfo2
-rw-r--r--security/uvscan-dat/files/update_dat6
3 files changed, 8 insertions, 3 deletions
diff --git a/security/uvscan-dat/Makefile b/security/uvscan-dat/Makefile
index 97edce4..b8ec522 100644
--- a/security/uvscan-dat/Makefile
+++ b/security/uvscan-dat/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= uvscan_dat
-PORTVERSION= 4163
-PORTREVISION= 1
+PORTVERSION= 4164
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/datfiles/4.x/nai/
DISTNAME= dat-${PORTVERSION}
diff --git a/security/uvscan-dat/distinfo b/security/uvscan-dat/distinfo
index ecdacf9..76eccc4 100644
--- a/security/uvscan-dat/distinfo
+++ b/security/uvscan-dat/distinfo
@@ -1 +1 @@
-MD5 (dat-4163.tar) = dadebcbede7dbc0bb900199f786ba263
+MD5 (dat-4164.tar) = bee1eec524d6cf7b9b2d09021e1fe1ff
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index 00e2194..864d00f 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
OpenPOWER on IntegriCloud