diff options
Diffstat (limited to 'mk/haskell')
-rw-r--r-- | mk/haskell/DEINSTALL.in | 14 | ||||
-rw-r--r-- | mk/haskell/INSTALL.in | 13 |
2 files changed, 27 insertions, 0 deletions
diff --git a/mk/haskell/DEINSTALL.in b/mk/haskell/DEINSTALL.in new file mode 100644 index 00000000000..bd28ce97545 --- /dev/null +++ b/mk/haskell/DEINSTALL.in @@ -0,0 +1,14 @@ +# -*- sh -*- +# $NetBSD: DEINSTALL.in,v 1.1 2014/02/05 07:02:30 obache Exp $ +# +DISTNAME="@DISTNAME@" +HASKELL_PKG_BIN="@HASKELL_PKG_BIN@" +HASKELL_PKG_DESCR_FILE="@HASKELL_PKG_DESCR_FILE@" + +case ${STAGE} in + DEINSTALL) + if [ -f ${HASKELL_PKG_DESCR_FILE} ]; then + ${HASKELL_PKG_BIN} unregister --force ${DISTNAME} + fi + ;; +esac diff --git a/mk/haskell/INSTALL.in b/mk/haskell/INSTALL.in new file mode 100644 index 00000000000..6761b1cb857 --- /dev/null +++ b/mk/haskell/INSTALL.in @@ -0,0 +1,13 @@ +# -*- sh -*- +# $NetBSD: INSTALL.in,v 1.1 2014/02/05 07:02:30 obache Exp $ +# +HASKELL_PKG_BIN="@HASKELL_PKG_BIN@" +HASKELL_PKG_DESCR_FILE="@HASKELL_PKG_DESCR_FILE@" + +case ${STAGE} in + POST-INSTALL) + if [ -f ${HASKELL_PKG_DESCR_FILE} ]; then + ${HASKELL_PKG_BIN} update ${HASKELL_PKG_DESCR_FILE}; + fi + ;; +esac |