update to dat-4083
add script to simplify dat-file upgrade (from NetBSD + rewritten)
This commit is contained in:
parent
f0a7ee7755
commit
001b71ddd6
@ -1,7 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/06/26 19:32:59 jakob Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2000/06/27 18:40:54 jakob Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2000/06/19 14:30:02 rh Exp $
|
||||
|
||||
DISTNAME= dat-4082
|
||||
DISTNAME= dat-4083
|
||||
PKGNAME= uvscan_${DISTNAME}
|
||||
CATEGORIES= security
|
||||
NEED_VERSION= 1.302
|
||||
@ -22,6 +22,10 @@ ONLY_FOR_ARCH= i386
|
||||
NO_BUILD= Yes
|
||||
WRKDIST= ${WRKDIR}
|
||||
|
||||
do-configure:
|
||||
sed -e 's:@PREFIX@:${PREFIX}:g' \
|
||||
<${FILESDIR}/uvscan_update >${WRKDIR}/uvscan_update
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/libexec/uvscan
|
||||
.for file in clean.dat internet.dat names.dat scan.dat
|
||||
@ -31,5 +35,6 @@ do-install:
|
||||
.for file in reseller.txt readme.txt packing.lst
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/uvscan
|
||||
.endfor
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/uvscan_update ${PREFIX}/sbin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (dat-4082.tar) = 54448d1637ef64f37e6ff9d208347f9c
|
||||
RMD160 (dat-4082.tar) = 406aa8d7d976b24bde008b706bc015e6f6d9a034
|
||||
SHA1 (dat-4082.tar) = 65d2f53da8fecf74c3e66babe5649bbf2eb020e6
|
||||
MD5 (dat-4083.tar) = 7d644fe05fdee43904bf1cb6e7785637
|
||||
RMD160 (dat-4083.tar) = 193b6f00e9db3f2c84bbb2ee1a337b78db8555fb
|
||||
SHA1 (dat-4083.tar) = 557f049c4628f27ca9be39a5c384131557d67c66
|
||||
|
26
security/uvscan_dat/files/uvscan_update
Executable file
26
security/uvscan_dat/files/uvscan_update
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: uvscan_update,v 1.1 2000/06/27 18:40:55 jakob Exp $
|
||||
|
||||
PATH=/bin:/usr/bin; export PATH
|
||||
URLBASE=http://download.nai.com/products/datfiles/4.x/nai
|
||||
FILES="clean.dat internet.dat names.dat scan.dat"
|
||||
|
||||
cd @PREFIX@/libexec/uvscan
|
||||
|
||||
AVVER=`ftp -o - $URLBASE/readme.txt | head -1 | cut -d' ' -f11`
|
||||
DISTFILE=dat-$AVVER.tar
|
||||
|
||||
if [ ! -f $DISTFILE ]; then
|
||||
ftp $URLBASE/$DISTFILE
|
||||
|
||||
if [ -f $DISTFILE ]; then
|
||||
for i in $FILES ; do
|
||||
rm -f $i.bak
|
||||
cp -p $i $i.bak
|
||||
done
|
||||
if tar xf dat-$AVVER.tar $FILES ; then
|
||||
echo `date` Successfully updated AntiVirus DAT files to $AVVER
|
||||
fi
|
||||
fi
|
||||
fi
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/06/26 19:32:59 jakob Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2000/06/27 18:40:55 jakob Exp $
|
||||
libexec/uvscan/clean.dat
|
||||
libexec/uvscan/internet.dat
|
||||
libexec/uvscan/names.dat
|
||||
@ -6,5 +6,6 @@ libexec/uvscan/scan.dat
|
||||
share/doc/uvscan/reseller.txt
|
||||
share/doc/uvscan/readme.txt
|
||||
share/doc/uvscan/packing.lst
|
||||
sbin/uvscan_update
|
||||
@dirrm libexec/uvscan
|
||||
@dirrm share/doc/uvscan
|
||||
|
Loading…
Reference in New Issue
Block a user