3ba41e8b0c
variables so that the default INSTALL/DEINSTALL scripts from the pkginstall framework do the right thing. Where possible, move some post-install directions for package setup into MESSAGE files so that they may be re-inspected by querying the installed package using "pkg_info -D ...".
14 lines
302 B
Text
14 lines
302 B
Text
# $NetBSD: DEINSTALL,v 1.2 2006/07/05 06:53:13 jlam Exp $
|
|
|
|
case "${STAGE}" in
|
|
DEINSTALL)
|
|
LIST="${PKG_PREFIX}/share/tetrinetx/game.log"
|
|
for to_trash in ${LIST}; do
|
|
if ${TEST} -d "$to_trash"; then
|
|
${RM} -fr $to_trash/*
|
|
elif ${TEST} -f "$to_trash"; then
|
|
${RM} -f $to_trash
|
|
fi
|
|
done
|
|
;;
|
|
esac
|