# $NetBSD: deinstall-pre,v 1.3 2006/03/15 04:52:57 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_TEMPLATE DEINSTALL actions). # case ${STAGE} in DEINSTALL) if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then ${SETENV} PKG_PREFIX="${PKG_PREFIX}" \ $0 ${PKGNAME} VIEW-DEINSTALL fi ;; esac