Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Oct 2001 00:11:17 -0500
From:      Greg Panula <greg.panula@dolaninformation.com>
To:        jeh@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: uvscan-4.14e
Message-ID:  <3BBA9DF5.953C782D@dolaninformation.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------523A6F89FCA24ED17BC6F11C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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
--------------523A6F89FCA24ED17BC6F11C
Content-Type: text/plain; charset=us-ascii;
 name="update_dat"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="update_dat"

#!/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


--------------523A6F89FCA24ED17BC6F11C--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBA9DF5.953C782D>