Willem Jan Withagen wjw at
Mon Jul 19 06:43:30 PDT 2004

----- Original Message ----- 
From: "Johan Hendriks" <Johan at>
To: <jeh at>
Cc: <ports at>
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:
# $Id$
cd /usr/local/libexec/uvscan/
ftp >/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
        if ftp$AVVER.tar
>/dev/null ; then
                for i in *.dat ; do
                        cp -p $i $i.bak
                if tar xf dat-$AVVER.tar ; then
                  rm -f *.old
                  echo `date` Successfully updated AntiVirus DAT files to $AVVER

Make shure you get the wrapping right.


More information about the freebsd-ports mailing list