aboutsummaryrefslogtreecommitdiff
path: root/security/vscan
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2006-11-03 14:25:24 +0000
committerJames E. Housley <jeh@FreeBSD.org>2006-11-03 14:25:24 +0000
commit66f86ccc3afc2e5d32653457e5cc588487312282 (patch)
tree7c949218c19afc3a33907b6833a271937f5d0983 /security/vscan
parent47af927410307190adabc1e037fbfd1f4b78b78a (diff)
downloadports-66f86ccc3afc2e5d32653457e5cc588487312282.tar.gz
ports-66f86ccc3afc2e5d32653457e5cc588487312282.zip
Fix update_dat so it won't repeatedly fetch the same DAT file
PR: 105114
Notes
Notes: svn path=/head/; revision=176276
Diffstat (limited to 'security/vscan')
-rw-r--r--security/vscan/Makefile1
-rw-r--r--security/vscan/files/update_dat4
2 files changed, 3 insertions, 2 deletions
diff --git a/security/vscan/Makefile b/security/vscan/Makefile
index 28c10257e778..905ba1f01d2d 100644
--- a/security/vscan/Makefile
+++ b/security/vscan/Makefile
@@ -7,6 +7,7 @@
PORTNAME= uvscan
PORTVERSION= 5.10e
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/evaluation/virusscan/english/cmdline/bsd/v5.10/
DISTNAME= vbsd510e
diff --git a/security/vscan/files/update_dat b/security/vscan/files/update_dat
index 29283944a82e..81edcf12841c 100644
--- a/security/vscan/files/update_dat
+++ b/security/vscan/files/update_dat
@@ -6,8 +6,8 @@ cd @PREFIX@/libexec/uvscan/
# Force a low default and then get the current version's value
cur_AVVER="1"
-if [ -f "file_id.diz" ]; then
- cur_AVVER="`tail -1 file_id.diz | sed -e 's/^(\(4[0-9]*\)).*$/\1/'`"
+if [ -f pkgdesc.ini ]; then
+ cur_AVVER=`grep Version pkgdesc.ini | cut -f2 -d= |sed -e 's/^(\(4[0-9]+\)).*$/\1/'`
fi
# Find what the website has for the current version