9db02f94ae
uninstall script. Affected modules are standard modules (acl, cron) and apache module. Bump PKGREVISION.
17 lines
508 B
Text
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
|