From owner-freebsd-ports Thu Oct 4 21:12:59 2001 Delivered-To: freebsd-ports@freebsd.org Received: from host185.dolanmedia.com (host185.dolanmedia.com [209.98.197.185]) by hub.freebsd.org (Postfix) with SMTP id 4DC0237B405 for ; Thu, 4 Oct 2001 21:12:56 -0700 (PDT) Received: (qmail 4800 invoked by uid 0); 5 Oct 2001 04:12:52 -0000 Received: from greg.panula@dolaninformation.com by proxy with qmail-scanner-0.96 (. Clean. Processed in 0.321519 secs); 05 Oct 2001 04:12:52 -0000 X-Qmail-Scanner-Mail-From: greg.panula@dolaninformation.com via proxy X-Qmail-Scanner-Rcpt-To: hetzels@westbend.net,jeh@FreeBSD.ORG,ports@FreeBSD.ORG X-Qmail-Scanner: 0.96 (No viruses found. Processed in 0.321519 secs) Received: from mail.dolanmedia.com (10.1.1.23) by proxy.dolanmedia.com with SMTP; 5 Oct 2001 04:12:51 -0000 Received: from dolaninformation.com (10.1.1.135) by mail.dolanmedia.com (Worldmail 1.3.167); 4 Oct 2001 23:12:51 -0500 Message-ID: <3BBD3343.1AF5D64F@dolaninformation.com> Date: Thu, 04 Oct 2001 23:12:51 -0500 From: Greg Panula Reply-To: greg.panula@dolaninformation.com Organization: Dolan Information Inc X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Scot W. Hetzel" Cc: jeh@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: FreeBSD Port: uvscan-4.14e References: <3BBA9DF5.953C782D@dolaninformation.com> <009801c14d4f$d8fb7d80$11fd2fd8@westbend.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hehehe, good to see they know their own name. I just updated my security ports collection and the latest update_dat script Jim commited was able to retrieve the 4164 dat file without any problems. His script is much more flexible than mine, I recommend using it.... seeing how mine doesn't work. :-) Greg "Scot W. Hetzel" wrote: > > It didn't work with the 4164 dat file. I had to replace AVVER with: > > AVVER=`head -2 readme.txt | grep -e "McAfee" -e "MacAfee" | cut -d' ' -f5` > > They misspelled McAfee in readme.txt. > > Scot > > From: "Greg Panula" > > Attached is a corrected update_dat script for updating the dat file to version > > 4163. Should also work for future dat files, unless McAfee changes the layout > > of the readme.txt file. > > > > Thanks, > > Greg > > -------------------------------------------------------------------------------- > > > #!/bin/sh > > cd /usr/local/libexec/uvscan/ > > fetch http://download.nai.com/products/datfiles/4.x/nai/readme.txt > /dev/null 2>&1 > > AVVER=`head -2 readme.txt | grep McAfee | cut -d' ' -f14` > > if [ ! -f dat-$AVVER.tar ]; then > > for i in *.tar ; do > > mv $i $i.old > > done > > if fetch http://download.nai.com/products/datfiles/4.x/nai/dat-$AVVER.tar > /dev/null 2>&1 ; then > > for i in *.dat ; do > > cp -p $i $i.bak > > done > > if tar xf dat-$AVVER.tar ; then > > rm -f *.old > > echo `date` Successfully updated AntiVirus DAT files to $AVVER > > fi > > fi > > fi > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message