Date: Mon, 19 Jul 2004 15:35:08 +0200 From: "Willem Jan Withagen" <wjw@withagen.nl> To: "Johan Hendriks" <Johan@double-l.nl>, <jeh@freebsd.org> Cc: ports@freebsd.org Subject: Re: Version Message-ID: <134d01c46d95$35ae8140$471b3dd4@digiware.nl> References: <DCEE01466A8BC541AFF5B671084EF4560E0A00@doublel01.double-l.lokaal>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Johan Hendriks" <Johan@double-l.nl> To: <jeh@freebsd.org> Cc: <ports@freebsd.org> Sent: Monday, July 19, 2004 2:35 PM Subject: Version > The auto update_dat file is not working anymore. > > Secondly There is already dat number 4378 For some severe Viruses. > > Is the maintainer on vacation or are they trying to fix the update_dat > script > > Thanks in advance This is what it takes: ---------- #!/bin/sh # # $Id$ # cd /usr/local/libexec/uvscan/ ftp http://download.nai.com/products/datfiles/4.x/nai/update.ini >/dev/null AVVER=`grep DAT update.ini | 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/'` if [ ! -f dat-$AVVER.tar ]; then for i in *.tar ; do mv $i $i.old done if ftp http://download.nai.com/products/datfiles/4.x/nai/dat-$AVVER.tar >/dev/null ; 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 --------------- Make shure you get the wrapping right. --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?134d01c46d95$35ae8140$471b3dd4>