Version

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


----- Original Message ----- 
From: "Johan Hendriks" <Johan at double-l.nl>
To: <jeh at freebsd.org>
Cc: <ports at 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



More information about the freebsd-ports mailing list