diff options
author | rh <rh@pkgsrc.org> | 2001-09-27 07:55:17 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2001-09-27 07:55:17 +0000 |
commit | 59162214ac6af5e9239a2bc3886e0d0354991020 (patch) | |
tree | dc9554049394b21cf6756f2bec6a4a12d0f84d4d /security | |
parent | 5ec21d37330fbb86da9ecb70d40c201cb2d7e25e (diff) | |
download | pkgsrc-59162214ac6af5e9239a2bc3886e0d0354991020.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/Makefile | 4 | ||||
-rw-r--r-- | security/uvscan-dat/distinfo | 6 | ||||
-rwxr-xr-x | security/uvscan-dat/files/update_dat | 17 |
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 |