summaryrefslogtreecommitdiff
path: root/security/uvscan-dat/pkg/INSTALL
blob: 92eabd96ab266f50da4743917519e613d800507a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1 2001/08/16 00:01:25 jlam 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