diff options
Diffstat (limited to 'sysutils/webmin/files/wbm-deinstall.tmpl')
-rw-r--r-- | sysutils/webmin/files/wbm-deinstall.tmpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/webmin/files/wbm-deinstall.tmpl b/sysutils/webmin/files/wbm-deinstall.tmpl new file mode 100644 index 00000000000..7057de38e7b --- /dev/null +++ b/sysutils/webmin/files/wbm-deinstall.tmpl @@ -0,0 +1,16 @@ +# $NetBSD: wbm-deinstall.tmpl,v 1.1 2006/05/19 17:14:53 jlam Exp $ + +case "${STAGE}" in +DEINSTALL) + WBMNAME="@WBMNAME@" + WEBMIN_DIR="@WEBMIN_DIR@" + WEBMIN_CONFIG="${PKG_SYSCONFDIR}" + WEBMIN_VAR="@WEBMIN_VARDIR@" + ${TEST} ! -f "${WEBMIN_CONFIG}/var-path" || + WEBMIN_VAR=`${CAT} ${WEBMIN_CONFIG}/var-path` + export WEBMIN_CONFIG WEBMIN_VAR + if ${TEST} -x "${WEBMIN_DIR}/run-uninstalls.pl"; then + ( cd ${WEBMIN_DIR} && + ${WEBMIN_DIR}/run-uninstalls.pl ${WBMNAME} ) + fi +esac |