mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
ab731d04ec
DOS/Windows files for viruses. This is trial software which may only be used for 30 days without purchasing a retail version. It includes a useful script (update_dat) for automatically downloading the latest .dat files should the port become out of date. Obtained from: NetBSD
19 lines
499 B
Bash
19 lines
499 B
Bash
#!/bin/sh
|
|
cd @PREFIX@/libexec/uvscan/
|
|
ftp http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null
|
|
AVVER=`head -1 readme.txt | cut -d' ' -f11`
|
|
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
|