pkgsrc/sysutils/webmin/DEINSTALL
obache 9db02f94ae Make sure to run all modules' postinstall script and standard module's
uninstall script.

Affected modules are standard modules (acl, cron) and apache module.
Bump PKGREVISION.
2007-10-08 08:47:03 +00:00

17 lines
508 B
Text

# $NetBSD: DEINSTALL,v 1.5 2007/10/08 08:47:03 obache Exp $
case ${STAGE} in
DEINSTALL)
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 @WEBMIN_MINIMAL_MODULES@ )
fi
${RM} -f @PKG_SYSCONFDIR@/module.infos.cache
;;
esac