Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / f-prot-antivirus6 / DEINSTALL
blobd878ff2e89f7719504c7c445fb90ab544b2094f6
1 #!/bin/sh
2 # $NetBSD$
4 FP_DATADIR="${PREFIX}/@DATADIR@"
5 FP_EGDIR="${PREFIX}/@EGDIR@"
6 FP_FPROTDIR="${PREFIX}/@FPROTDIR@"
8 FP_DEF_FILE="@FP_DATA@"
10 fp_deinstall_info() {
11 ${ECHO} "==========================================================================="
12 ${ECHO} "The following directories are no longer being used by"
13 ${ECHO} "${PKGNAME}, and it can be removed if no other"
14 ${ECHO} "packages are using it or you will not plan to install"
15 ${ECHO} "newer version of this package:"
16 ${ECHO} " ${FP_FPROTDIR}"
19 case ${STAGE} in
20 DEINSTALL)
21 if [ -f ${FP_EGDIR}/license.key -a -f ${PKG_SYSCONFDIR}/license.key ] && ${CMP} -s ${FP_EGDIR}/license.key ${PKG_SYSCONFDIR}/license.key; then
22 ${RM} -f ${PKG_SYSCONFDIR}/license.key
24 if cmp -s "${FP_DATADIR}/${FP_DEF_FILE}" "${FP_FPROTDIR}/${FP_DEF_FILE}"; then
25 ${RM} -f "${FP_FPROTDIR}/${FP_DEF_FILE}"
28 POST-DEINSTALL)
29 if [ -d ${FP_FPROTDIR} ]; then
30 fp_deinstall_info
32 esac