blob: 44e9ea9b8c48ddbc8ac72ee4305a5bbb6be8c478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# $NetBSD: INSTALL,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $
#
FP_DATADIR="${PREFIX}/@DATADIR@"
FP_FPROTDIR="${PREFIX}/@FPROTDIR@"
FP_EGDIR="${PREFIX}/@EGDIR@"
FP_VARDIR="@VARDIR@"
FP_DEF_FILE="@FP_DATA@"
case ${STAGE} in
POST-INSTALL)
if [ ! -f "${FP_FPROTDIR}/${FP_DEF_FILE}" ]; then
${ECHO} "Install default signature file from ${FP_DATADIR}/${FP_DEF_FILE}."
${RM} -f "${FP_FPROTDIR}/${FP_DEF_FILE}"
${CP} -p "${FP_DATADIR}/${FP_DEF_FILE}" "${FP_FPROTDIR}"
else
${ECHO} "Use existing signature file: ${FP_FPROTDIR}/${FP_DEF_FILE}"
fi
${ECHO}
${LN} -fs ${PKG_SYSCONFDIR}/f-prot.conf /etc
;;
esac
|