diff options
Diffstat (limited to 'security/uvscan-dat/INSTALL')
-rw-r--r-- | security/uvscan-dat/INSTALL | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/security/uvscan-dat/INSTALL b/security/uvscan-dat/INSTALL new file mode 100644 index 00000000000..048eae5a021 --- /dev/null +++ b/security/uvscan-dat/INSTALL @@ -0,0 +1,49 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 01:18:02 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CP="@CP@" +MKDIR="@MKDIR@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/uvscan +CONFDIR=${PKG_PREFIX}/libexec/uvscan +CONFFILES="@DATFILES@" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${MKDIR} ${CONFDIR} + echo "Installing VirusScan data files:" + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file} + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + fi + done + ${CAT} << EOF + +=========================================================================== +The VirusScan data files may be updated to the latest versions from the +Network Associates Website (www.nai.com) by running the update_dat script. +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |