openbsd-ports/games/dopewars/pkg/DEINSTALL
brad 50c7891004 - leave datadir alone and override the score file location elsewhere
- add @extra support
--
the problem with datadir noticed by espie@
2003-12-24 04:00:38 +00:00

25 lines
589 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.6 2003/12/24 04:00:38 brad Exp $
#
# dopewars de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_FILE=/var/games/dopewars.sco
if [ "$PKG_DELETE_EXTRA" != Yes -a -f $SCORE_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need"
echo "| to perform this step as root:"
echo "|"
echo "| rm -f $SCORE_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0