diff options
Diffstat (limited to 'mk/pkginstall/install-post')
-rw-r--r-- | mk/pkginstall/install-post | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mk/pkginstall/install-post b/mk/pkginstall/install-post new file mode 100644 index 00000000000..2e2ea84fd3a --- /dev/null +++ b/mk/pkginstall/install-post @@ -0,0 +1,15 @@ +# $NetBSD: install-post,v 1.1 2006/05/21 23:50:15 jlam Exp $ + +# Ensure that the VIEW-INSTALL action is called for overwrite packages. +# This is here to ensure that it's the final POST-INSTALL action (after +# any INSTALL_TEMPLATE POST-INSTALL actions). +# +case ${STAGE} in +POST-INSTALL) + if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then + ${SETENV} PKG_PREFIX="${PKG_PREFIX}" \ + $0 ${PKGNAME} VIEW-INSTALL + fi + ;; +esac + |