From ab731d04ec215fa558add98a099b2f4bfbe8abe1 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 2 Sep 2000 23:35:10 +0000 Subject: This is a freebsd-native version of the McAfee virus scanner, for scanning 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 --- security/uvscan-dat/files/update_dat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 security/uvscan-dat/files/update_dat (limited to 'security/uvscan-dat/files/update_dat') diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat new file mode 100644 index 000000000000..214f5f6e8227 --- /dev/null +++ b/security/uvscan-dat/files/update_dat @@ -0,0 +1,18 @@ +#!/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 -- cgit v1.2.3