summaryrefslogtreecommitdiff
path: root/mk/install/deinstall-pre
blob: b3656bdf4e5e06c1bf620408a94668c194fa1e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# start of deinstall-pre
#
# $NetBSD: deinstall-pre,v 1.1 2003/11/23 07:14:43 jlam Exp $

# Ensure that the VIEW-DEINSTALL action is called for overwrite packages.
# This is here to ensure that it's the first DEINSTALL action (before
# any DEINSTALL_EXTRA_TMPL DEINSTALL actions).
#
case ${STAGE} in
DEINSTALL)
	if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then
		${SETENV} PKG_PREFIX="${PKG_PREFIX}" \
			$0 ${PKGNAME} VIEW-DEINSTALL
        fi
	;;
esac

# end of deinstall-pre