62fd86d085
* Ensure that VIEW-INSTALL is called after _all_ POST-INSTALL actions (including any in the INSTALL_EXTRA_TMPL file) by moving the call to a file that is included after all other INSTALL templates. * Ensure that VIEW-DEINSTALL is called before _all_ DEINSTALL actions (including any in the DEINSTALL_EXTRA_TMPL file) by moving the call to a file that is included before all other DEINSTALL templates.
18 lines
483 B
Text
18 lines
483 B
Text
# 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
|