aboutsummaryrefslogtreecommitdiffstats
path: root/security/vscan
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2006-11-03 22:25:24 +0800
committerjeh <jeh@FreeBSD.org>2006-11-03 22:25:24 +0800
commite3b62d3888a794d417ab0d52a5dec535a591a7fa (patch)
tree7ce35bbeaba5007b3e279bc6480494d7db99fd60 /security/vscan
parent701f2534fdc6bd4cb46e8e6aff968c9499dae346 (diff)
downloadfreebsd-ports-gnome-e3b62d3888a794d417ab0d52a5dec535a591a7fa.tar.gz
freebsd-ports-gnome-e3b62d3888a794d417ab0d52a5dec535a591a7fa.tar.zst
freebsd-ports-gnome-e3b62d3888a794d417ab0d52a5dec535a591a7fa.zip
Fix update_dat so it won't repeatedly fetch the same DAT file
PR: 105114
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