Update to 4164
files/update_dat: Chase the ever changing version number format
This commit is contained in:
parent
721417c37e
commit
6df0895f15
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48413
@ -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}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (dat-4163.tar) = dadebcbede7dbc0bb900199f786ba263
|
||||
MD5 (dat-4164.tar) = bee1eec524d6cf7b9b2d09021e1fe1ff
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user