summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorrh <rh>2001-09-27 07:55:17 +0000
committerrh <rh>2001-09-27 07:55:17 +0000
commit798e9831eb58a919f72f90fa9af550b30cf42dd3 (patch)
treedc9554049394b21cf6756f2bec6a4a12d0f84d4d /security
parente1fdb8551ae700b0cc819d73ebb102e1b3979a66 (diff)
downloadpkgsrc-798e9831eb58a919f72f90fa9af550b30cf42dd3.tar.gz
Update uvscan-dat to 4163. Changes are updated virus definitions and some
fixes to the update script: - correctly parse the new readme.txt files - be verbose only if -v option is given (for cron-lovers) - optional parameter to specify an alternate download location
Diffstat (limited to 'security')
-rw-r--r--security/uvscan-dat/Makefile4
-rw-r--r--security/uvscan-dat/distinfo6
-rwxr-xr-xsecurity/uvscan-dat/files/update_dat17
3 files changed, 17 insertions, 10 deletions
diff --git a/security/uvscan-dat/Makefile b/security/uvscan-dat/Makefile
index 0cc5dded9e1..c490b071aaa 100644
--- a/security/uvscan-dat/Makefile
+++ b/security/uvscan-dat/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2001/09/09 20:36:46 agc Exp $
+# $NetBSD: Makefile,v 1.21 2001/09/27 07:55:17 rh Exp $
#
-DISTNAME= dat-4154
+DISTNAME= dat-4163
PKGNAME= uvscan-${DISTNAME}
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/datfiles/4.x/nai/ \
diff --git a/security/uvscan-dat/distinfo b/security/uvscan-dat/distinfo
index 8d7890fd47d..12a7984c927 100644
--- a/security/uvscan-dat/distinfo
+++ b/security/uvscan-dat/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2001/08/16 00:01:24 jlam Exp $
+$NetBSD: distinfo,v 1.8 2001/09/27 07:55:17 rh Exp $
-SHA1 (dat-4154.tar) = c3b6dd4d5a1862c084e56a36f2b755cb12e5b645
-Size (dat-4154.tar) = 2232320 bytes
+SHA1 (dat-4163.tar) = c5afb7e7ae93d57ab8e8811097008af0b6f90b57
+Size (dat-4163.tar) = 2201600 bytes
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index b8449a0b523..6e34637e51e 100755
--- a/security/uvscan-dat/files/update_dat
+++ b/security/uvscan-dat/files/update_dat
@@ -1,14 +1,21 @@
#!/bin/sh
#
-# $NetBSD: update_dat,v 1.2 2001/08/16 00:01:25 jlam Exp $
+# $NetBSD: update_dat,v 1.3 2001/09/27 07:55:18 rh Exp $
#
# Script to update the VirusScan data files.
UVSCANDIR=@PREFIX@/libexec/uvscan
-DAT_SITE=http://download.nai.com/products/datfiles/4.x/nai/
+DAT_SITE=http://download.nai.com/products/datfiles/4.x/nai
DAT_FILES="@DATFILES@"
TMPDIR=${TMPDIR:-/tmp}/$$
+if [ "$1" = "-v" ]; then
+ verbose=1
+ shift
+fi
+
+[ -z "$1" ] || DAT_SITE="$1"
+
mkdir -p ${TMPDIR}
mkdir -p ${UVSCANDIR}
cd ${TMPDIR}
@@ -21,12 +28,12 @@ then
exit 1
fi
-CURVER=`head -1 readme.txt | cut -d' ' -f11`
-OLDVER=`head -1 ${UVSCANDIR}/readme.txt | cut -d' ' -f11`
+CURVER=`head -n 2 readme.txt | grep DAT | sed -e 's/^.*\([0-9][0-9][0-9][0-9]\).*$/\1/'`
+OLDVER=`head -n 2 ${UVSCANDIR}/readme.txt | grep DAT | sed -e 's/^.*\([0-9][0-9][0-9][0-9]\).*$/\1/'`
exitcode=0
if [ "${CURVER}" = "${OLDVER}" ]
then
- echo "$0: VirusScan DAT files are current (${CURVER})"
+ [ -z "$verbose" ] || echo "$0: VirusScan DAT files are current (${CURVER})"
else
DAT_TAR=dat-${CURVER}.tar
if ftp ${DAT_SITE}/${DAT_TAR} >/dev/null