-
Notifications
You must be signed in to change notification settings - Fork 106
/
DEINSTALL
33 lines (29 loc) · 991 Bytes
/
DEINSTALL
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
#!/bin/sh
# $NetBSD: DEINSTALL,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $
#
FP_DATADIR="${PREFIX}/@DATADIR@"
FP_EGDIR="${PREFIX}/@EGDIR@"
FP_FPROTDIR="${PREFIX}/@FPROTDIR@"
FP_DEF_FILE="@FP_DATA@"
fp_deinstall_info() {
${ECHO} "==========================================================================="
${ECHO} "The following directories are no longer being used by"
${ECHO} "${PKGNAME}, and it can be removed if no other"
${ECHO} "packages are using it or you will not plan to install"
${ECHO} "newer version of this package:"
${ECHO} " ${FP_FPROTDIR}"
}
case ${STAGE} in
DEINSTALL)
if [ -f ${FP_EGDIR}/license.key -a -f ${PKG_SYSCONFDIR}/license.key ] && ${CMP} -s ${FP_EGDIR}/license.key ${PKG_SYSCONFDIR}/license.key; then
${RM} -f ${PKG_SYSCONFDIR}/license.key
fi
if cmp -s "${FP_DATADIR}/${FP_DEF_FILE}" "${FP_FPROTDIR}/${FP_DEF_FILE}"; then
${RM} -f "${FP_FPROTDIR}/${FP_DEF_FILE}"
fi
;;
POST-DEINSTALL)
if [ -d ${FP_FPROTDIR} ]; then
fp_deinstall_info
fi
esac