Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2004 17:36:29 +0000 (GMT)
From:      Olafur Osvaldsson <oli@isnic.is>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jeh@FreeBSD.org
Subject:   ports/69203: security/uvscan-dat: Problem with fetching new dat files (with patch)
Message-ID:  <20040717173629.9DF0C8A1DD@aker.isnic.is>
Resent-Message-ID: <200407171740.i6HHeJM8070919@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69203
>Category:       ports
>Synopsis:       security/uvscan-dat: Problem with fetching new dat files (with patch)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 17 17:40:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Olafur Osvaldsson
>Release:        FreeBSD 5.2.1-RELEASE-p4 i386
>Organization:
ISNIC
>Environment:
System: FreeBSD aker.isnic.is 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4 #6: Wed Mar 31 09:08:35 GMT 2004 oli@aker.isnic.is:/usr/obj/usr/src/sys/HP360 i386


	
>Description:
	
The script stopped updating the dat files and always spit out the following error:

mv: *.tar: No such file or directory
ftp: Error retrieving file - `404 Object Not Found'

>How-To-Repeat:
	
Run the /usr/local/sbin/update_dat script
>Fix:
They seem to have changed the readme.txt file to stop including the latest DAT
version but they provide a update.ini file at the same URL wich has the version.

I've included a fix for this and added a version bump as there is a new DAT aswell
with that version.

	

--- uvscan-dat.diff begins here ---
diff -ruN uvscan-dat.orig/Makefile uvscan-dat/Makefile
--- uvscan-dat.orig/Makefile	Wed Jul 14 18:09:00 2004
+++ uvscan-dat/Makefile	Sat Jul 17 17:21:28 2004
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	uvscan_dat
-PORTVERSION=	4376
+PORTVERSION=	4377
 CATEGORIES=	security
 MASTER_SITES=	http://download.nai.com/products/datfiles/4.x/nai/
 DISTNAME=	dat-${PORTVERSION}
diff -ruN uvscan-dat.orig/distinfo uvscan-dat/distinfo
--- uvscan-dat.orig/distinfo	Wed Jul 14 18:09:00 2004
+++ uvscan-dat/distinfo	Sat Jul 17 17:23:08 2004
@@ -1,2 +1,2 @@
-MD5 (dat-4376.tar) = 860c5ebd4dadd5ada5a9e5922b34b96b
-SIZE (dat-4376.tar) = 4526080
+MD5 (dat-4377.tar) = a86632718ae5509ea33d0f86293b65ff
+SIZE (dat-4377.tar) = 4515840
diff -ruN uvscan-dat.orig/files/update_dat uvscan-dat/files/update_dat
--- uvscan-dat.orig/files/update_dat	Sat May  4 01:00:21 2002
+++ uvscan-dat/files/update_dat	Sat Jul 17 17:20:57 2004
@@ -3,8 +3,8 @@
 # $Id$
 #
 cd /usr/local/libexec/uvscan/
-ftp http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null
-AVVER=`grep DAT readme.txt | head -5 | grep '[^0-9]4[0-9][0-9][0-9][^0-9]' | head -1 | sed -e 's/^.*[^0-9]\(4[0-9]*\)[^0-9].*$/\1/'`
+ftp http://download.nai.com/products/datfiles/4.x/nai/update.ini >/dev/null
+AVVER=`grep DATVersion update.ini | head -1 | sed -e 's/^DATVersion=\(4[0-9]*\)[^0-9].*$/\1/'`
 if [ ! -f dat-$AVVER.tar ]; then
 	for i in *.tar ; do
 		mv $i $i.old
--- uvscan-dat.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040717173629.9DF0C8A1DD>