Subject: pkg/30290: uvscan does not work with recent definitions files
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: pkgsrc-bugs
Date: 05/20/2005 14:20:00
>Number:         30290
>Category:       pkg
>Synopsis:       uvscan does not work with recent definitions files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 20 14:20:00 +0000 2005
>Originator:     Nicolas Joly
>Release:        NetBSD 3.99.3
>Organization:
Institut Pasteur
>Environment:
System: NetBSD hal.sis.pasteur.fr 3.99.3 NetBSD 3.99.3 (HAL) #1: Tue Apr 5 14:52:49 CEST 2005 njoly@hal.sis.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/HAL i386
Architecture: i386
Machine: i386
>Description:
current uvscan (4.24) seems to be incompatible with latest virus definitions
files (DAT 4495).
Upgrading to version 4.40 seems to fix this problem.

>How-To-Repeat:

njoly@hal [~]> uvscan --version
Virus Scan for Linux v4.24.0
Copyright (c) 1992-2003 Networks Associates Technology Inc. All rights reserved.
(408) 988-3832  EVALUATION COPY - Jan 27 2003
Missing or invalid DAT:  /usr/pkg/libexec/uvscan/scan.dat
njoly@hal [~]> sudo /usr/pkg/sbin/update_dat   
Fri May 20 15:59:55 CEST 2005 Successfully updated VirusScan DAT files to 4495.
njoly@hal [~]> uvscan ~/virus/worm.exe 
Missing or invalid DAT:  /usr/pkg/libexec/uvscan/scan.dat

njoly@hal [~]> uvscan --version
Virus Scan for Linux v4.40.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights reserved.
(408) 988-3832  EVALUATION COPY - Sep 23 2004
Scan engine v4.4.00 for Linux.
Virus data file v4400 created Oct 20 2004
Scanning for 104507 viruses, trojans and variants.
njoly@hal [~]> sudo /usr/pkg/sbin/update_dat
Fri May 20 16:07:02 CEST 2005 Successfully updated VirusScan DAT files to 4495.
njoly@hal [~]> uvscan ~/virus/worm.exe
/home/njoly/virus/worm.exe
        Found the W32/Bagle.gen@MM virus !!!
[...]

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/uvscan/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile	29 Jul 2004 22:19:57 -0000	1.25
+++ Makefile	20 May 2005 14:10:36 -0000
@@ -1,9 +1,9 @@
 # $NetBSD: Makefile,v 1.25 2004/07/29 22:19:57 wiz Exp $
 
-DISTNAME=		vlnx424e
-PKGNAME=		uvscan-4.24.1
+DISTNAME=		vlnx440e
+PKGNAME=		uvscan-4.40
 CATEGORIES=		security
-MASTER_SITES=		http://download.nai.com/products/evaluation/virusscan/english/cmdline/linux/version_4.24/intel/
+MASTER_SITES=		http://download.nai.com/products/evaluation/virusscan/english/cmdline/linux/v4.40/
 EXTRACT_SUFX=		.tar.Z
 
 MAINTAINER=		tech-pkg@NetBSD.org
@@ -30,6 +30,8 @@
 UVSCANDIR=		${PREFIX}/libexec/uvscan
 DATFILES=		clean.dat internet.dat names.dat scan.dat pkgdesc.ini
 
+PKGSRC_USE_TOOLS+= 	gtar
+
 USE_PKGINSTALL=		yes
 DEINSTALL_EXTRA_TMPL+=	${.CURDIR}/DEINSTALL
 
@@ -56,6 +58,7 @@
 	${INSTALL_DATA} ${WRKSRC}/liblnxfv.so.4 ${UVSCANDIR}
 	${RM} -f ${UVSCANDIR}/liblnxfv.so
 	${LN} -s liblnxfv.so.4 ${UVSCANDIR}/liblnxfv.so
+	${MKDIR} -p ${PREFIX}/emul/linux/usr/local/lib
 	for file in liblnxfv.so.4 liblnxfv.so; do			\
 		${RM} -f ${PREFIX}/emul/linux/usr/local/lib/$${file};	\
 		${LN} -s ${UVSCANDIR}/$${file}				\
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/uvscan/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	24 Feb 2005 13:10:14 -0000	1.5
+++ distinfo	20 May 2005 14:10:36 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.5 2005/02/24 13:10:14 agc Exp $
 
-SHA1 (vlnx424e.tar.Z) = ab60091a790e5ac2f7c343158a2b599894f61c2e
-RMD160 (vlnx424e.tar.Z) = 94ee339ed5eb1209d0bd830b93d0d48b02df1d4e
-Size (vlnx424e.tar.Z) = 6958655 bytes
+SHA1 (vlnx440e.tar.Z) = 867176cb5ea1b8e7f5f031a7d8bd38b0eac55024
+RMD160 (vlnx440e.tar.Z) = 64150f29f404251cdb49a480d4ece5284a23ebbe
+Size (vlnx440e.tar.Z) = 9013085 bytes