[FUGSPBR] Re: [FUGSPBR] Atualização do UVSCAN

Fernando Costa de Almeida unix em computeasy.com.br
Sex Out 4 09:54:59 BRT 2002


Siga estes passos para atualizar automaticamente o seu antivirus todo dia:

Coloca estas entradas no arquivo .netrc do home do root:

---------------------------------------------
machine ftp.nai.com
login anonymous
password <email>
macdef init
cd pub/antivirus/datfiles/4.x
bin
prompt
mget dat-*.tar
close
bye

---------------------------------------------

e poe este script pra rodar todo dia na cron do root:

---------------------------------------------
#!/bin/sh

# Assume uvscan is installed in the same directory
# as this script.
install_directory='/usr/local/uvscan'

# Get the version of the currently installed .DATs
# from the info given by the --version switch
current_version=`$install_directory/uvscan --version | grep "Virus data
file" | awk '{ print substr($4,2,4) }'`

# Create a download directory
rm -rf /tmp/dat-updates
mkdir /tmp/dat-updates
cd /tmp/dat-updates

# Get the new .DATs.
# The entry in your .netrc file should take care
# of the downloading.
ftp ftp.nai.com

# Get the version of the new .DATs from the filename.
new_version=`echo dat-*.tar | awk '{ print substr($1,5,4) }'`

# If they are the same age or older than the current ones,
# do not install them
if [ "$current_version" -ge "$new_version" ]
   then
echo "No new .DATs available at this time"
echo "Currently installed version: $current_version"
echo "Version on FTP site: $new_version"
   else
tar -xf dat-*.tar
# Move them to the install directory, making sure
# the filename is lower case.
for file in `tar -tf dat-*.tar`
do
newfile=`echo $file | tr [A-Z] [a-z]`
mv ./$file $install_directory/$newfile
done
# Get the current version again and make sure
# the new .DATs installed correctly.
current_version=`$install_directory/uvscan --version | grep "Virus data
file" | awk '{ print substr($4,2,4) }'`
if [ ! "$current_version" -eq "$new_version" ]
   then
echo "DAT file updates did not work correctly."
echo "Please try manually."
fi
fi

---------------------------------------------

Atenciosamente,

_______________________________________
ALMEIDA, Fernando Costa de
Computeasy Informática
www.computeasy.com.br
BSD USER BSD050945
ICQ 72293951
----- Original Message -----
From: "Ivan Carlos Ricci" <ricci em process.com.br>
To: <fugspbr em fugspbr.org>
Sent: Friday, October 04, 2002 9:40 AM
Subject: [FUGSPBR] Atualização do UVSCAN


> Bom Dia!
>
> Pessoal, estou com o Amavis+Uvcan em nosso sendmail, porém o Engine dele
> está antigo e preciso atualizá-lo.
> Como posso fazer isso? No site da McAfee(pelo menos não achei) não há
> atualização p/ Unix.
> Isso é meio urgente!
>
> OBRIGADO PESSOAL.
>
> Atenciosamente
>
> Ivan Carlos Ricci - Webmaster
> ivan em process.com.br
> Process / Net Site
> Fone: (16) 282-7949
> Fax: (16) 282-5304
> Matão - SP
>
> _______________________________________________________________
> Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/

_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd