diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/Makefile | 2 | ||||
-rw-r--r-- | security/uvscan-dat/Makefile | 37 | ||||
-rw-r--r-- | security/uvscan-dat/distinfo | 1 | ||||
-rw-r--r-- | security/uvscan-dat/files/update_dat | 18 | ||||
-rw-r--r-- | security/uvscan-dat/pkg-comment | 1 | ||||
-rw-r--r-- | security/uvscan-dat/pkg-descr | 4 | ||||
-rw-r--r-- | security/uvscan-dat/pkg-plist | 11 |
7 files changed, 74 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 1618f99a796c..75db267e8aa7 100644 --- a/security/Makefile +++ b/security/Makefile @@ -106,6 +106,8 @@ SUBDIR += trinokiller SUBDIR += tripwire SUBDIR += tripwire-131 + SUBDUR += uvscan + SUBDIR += uvscan-dat SUBDIR += vscan SUBDIR += whisker SUBDIR += xinetd diff --git a/security/uvscan-dat/Makefile b/security/uvscan-dat/Makefile new file mode 100644 index 000000000000..76fa2df72fa3 --- /dev/null +++ b/security/uvscan-dat/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: uvscan_dat +# Date created: 01 Sep 2000 +# Whom: Kris Kennaway <kris@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= uvscan_dat +PORTVERSION= 4093 +CATEGORIES= security +MASTER_SITES= http://download.nai.com/products/datfiles/4.x/nai/ +DISTNAME= dat-${PORTVERSION} +EXTRACT_SUFX= .tar + +MAINTAINER= kris@FreeBSD.org + +NO_BUILD= YES +NO_WRKSUBDIR= YES + +RESTRICTED= "Restricted to the license terms set for VirusScan" + +do-configure: + ${SED} -e 's:@PREFIX@:${PREFIX}:g' \ + <${FILESDIR}/update_dat >${WRKDIR}/update_dat + +do-install: + ${MKDIR} ${PREFIX}/libexec/uvscan +.for file in clean.dat internet.dat names.dat scan.dat + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/libexec/uvscan +.endfor + ${MKDIR} ${PREFIX}/share/doc/uvscan +.for file in reseller.txt readme.txt packing.lst + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/uvscan +.endfor + ${INSTALL_SCRIPT} ${WRKDIR}/update_dat ${PREFIX}/sbin + +.include <bsd.port.mk> diff --git a/security/uvscan-dat/distinfo b/security/uvscan-dat/distinfo new file mode 100644 index 000000000000..e8b8c27ac838 --- /dev/null +++ b/security/uvscan-dat/distinfo @@ -0,0 +1 @@ +MD5 (dat-4093.tar) = 8fdb00c6ffc7a69d4fa64171dd23be0f 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 diff --git a/security/uvscan-dat/pkg-comment b/security/uvscan-dat/pkg-comment new file mode 100644 index 000000000000..d978ee93d64b --- /dev/null +++ b/security/uvscan-dat/pkg-comment @@ -0,0 +1 @@ +AntiVirus DAT file for uvscan diff --git a/security/uvscan-dat/pkg-descr b/security/uvscan-dat/pkg-descr new file mode 100644 index 000000000000..3d7203d2879f --- /dev/null +++ b/security/uvscan-dat/pkg-descr @@ -0,0 +1,4 @@ +This package contains the AntiVirus DAT files required for +commercial and evaluation versions of uvscan. + +WWW: http://www.nai.com/asp_set/download/dats/mcafee_4x.asp diff --git a/security/uvscan-dat/pkg-plist b/security/uvscan-dat/pkg-plist new file mode 100644 index 000000000000..df9d85b5f15a --- /dev/null +++ b/security/uvscan-dat/pkg-plist @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.2 2000/06/27 10:18:07 rh Exp $ +libexec/uvscan/clean.dat +libexec/uvscan/internet.dat +libexec/uvscan/names.dat +libexec/uvscan/scan.dat +sbin/update_dat +share/doc/uvscan/reseller.txt +share/doc/uvscan/readme.txt +share/doc/uvscan/packing.lst +@dirrm libexec/uvscan +@dirrm share/doc/uvscan |