From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 17 17:40:19 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87FD916A4CF for ; Sat, 17 Jul 2004 17:40:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DBDB43D41 for ; Sat, 17 Jul 2004 17:40:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i6HHeJ7R070920 for ; Sat, 17 Jul 2004 17:40:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6HHeJM8070919; Sat, 17 Jul 2004 17:40:19 GMT (envelope-from gnats) Resent-Date: Sat, 17 Jul 2004 17:40:19 GMT Resent-Message-Id: <200407171740.i6HHeJM8070919@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olafur Osvaldsson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D9A816A4CE; Sat, 17 Jul 2004 17:36:31 +0000 (GMT) Received: from aker.isnic.is (aker.isnic.is [193.4.58.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22F9E43D1F; Sat, 17 Jul 2004 17:36:31 +0000 (GMT) (envelope-from root@aker.isnic.is) Received: by aker.isnic.is (Postfix, from userid 0) id 9DF0C8A1DD; Sat, 17 Jul 2004 17:36:29 +0000 (GMT) Message-Id: <20040717173629.9DF0C8A1DD@aker.isnic.is> Date: Sat, 17 Jul 2004 17:36:29 +0000 (GMT) From: Olafur Osvaldsson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: jeh@FreeBSD.org Subject: ports/69203: security/uvscan-dat: Problem with fetching new dat files (with patch) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Olafur Osvaldsson List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2004 17:40:19 -0000 >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: