[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uvscan_dat ports update.



On Thu, Aug 21, 2003 at 02:10:04PM -0300, Eduardo Augusto Alvarenga wrote:

Hi,

>  Recentlly, McAfee/NAI has changed somethings in the DAT files download
>  area. Since this the 'uvscan_dat' port do not work anymore, then I've
>  made a patch to the 'files/uvscan_update' file.

It doesn't seem like jakob@ is currently reading emails. I've sent him a
patch for this a couple of days ago, and haven't received any respons.
My solution, inspired by FreeBSDs port, was a tad different. But I
updated the whole port to use the latest DAT-file, so I'm including it
below (it's updated again to use the DAT-file released yesterday).

I also think that the rmdir's of libexec/uvscan and share/doc/uvscan are
incorrect. They should be in the uvscan-port, since it's the one
creating the directories. uvscan_dat only updates part of the information
in them.

//Ibo


Index: Makefile
===================================================================
RCS file: /cvs/ports/security/uvscan_dat/Makefile,v
retrieving revision 1.21
diff -c -r1.21 Makefile
*** Makefile	2003/04/10 18:08:57	1.21
--- Makefile	2003/08/21 19:08:40
***************
*** 3,9 ****
  
  COMMENT=	"AntiVirus DAT file for uvscan"
  
! VERSION=	4234
  DISTNAME=	dat-${VERSION}
  PKGNAME=	uvscan_${DISTNAME}
  CATEGORIES=	security
--- 3,9 ----
  
  COMMENT=	"AntiVirus DAT file for uvscan"
  
! VERSION=	4288
  DISTNAME=	dat-${VERSION}
  PKGNAME=	uvscan_${DISTNAME}
  CATEGORIES=	security
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/uvscan_dat/distinfo,v
retrieving revision 1.4
diff -c -r1.4 distinfo
*** distinfo	2002/11/25 08:16:14	1.4
--- distinfo	2003/08/21 19:08:40
***************
*** 1,3 ****
! MD5 (dat-4234.tar) = 1cef020016c14d64c251c1eae352fb95
! RMD160 (dat-4234.tar) = 88dfed2b6359c2cb1d3e0e4aecd422e6f4ec320a
! SHA1 (dat-4234.tar) = 4799c38d50aaec4cde4b315450ea9f2f2041b984
--- 1,3 ----
! MD5 (dat-4288.tar) = 0ac9b2981753d99d0dcf793e11fa5682
! RMD160 (dat-4288.tar) = b8359864282f740c93ddf7061b4cc0787fb97265
! SHA1 (dat-4288.tar) = 8e1b4d978009a3b3c2cbc3d8a3b0386e2189ebf2
Index: files/uvscan_update
===================================================================
RCS file: /cvs/ports/security/uvscan_dat/files/uvscan_update,v
retrieving revision 1.3
diff -c -r1.3 uvscan_update
*** files/uvscan_update	2002/07/09 20:32:02	1.3
--- files/uvscan_update	2003/08/21 19:08:40
***************
*** 8,14 ****
  
  cd @PREFIX@/libexec/uvscan
  
! AVVER=`ftp -o - $URLBASE/readme.txt | head -1 | cut -d' ' -f7`
  DISTFILE=dat-$AVVER.tar
  
  if [ ! -f $DISTFILE ]; then
--- 8,15 ----
  
  cd @PREFIX@/libexec/uvscan
  
! AVVER=`ftp -o - $URLBASE/readme.txt 2>/dev/null | grep "DAT Version:" | sed -e 's/^.*[^0-9]\(4[0-9]*\)[^0-9].*$/\1/'`
! 
  DISTFILE=dat-$AVVER.tar
  
  if [ ! -f $DISTFILE ]; then