mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
947131db94
This is a Massively Multiplayer Online Roleplaying Game (MMORPG) MMORPG. The download and first 24 hours of trial gameplay are free. http://www.atitd.com/ for more info.
40 lines
569 B
Bash
40 lines
569 B
Bash
#!/bin/sh
|
|
|
|
PATH=/bin:/usr/sbin
|
|
|
|
if [ -n "${PACKAGE_BUILDING}" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
case $2 in
|
|
DEINSTALL)
|
|
rm -fr ${PKG_PREFIX}/games/atitd
|
|
|
|
;;
|
|
|
|
POST-DEINSTALL)
|
|
PW=/usr/sbin/pw
|
|
USER=atitd
|
|
GROUP=atitd
|
|
|
|
echo -n "Checking for group '$GROUP'... "
|
|
|
|
if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then
|
|
echo "doesn't exist."
|
|
else
|
|
echo "deleting."
|
|
${PW} groupdel -n ${GROUP}
|
|
fi
|
|
|
|
echo -n "Checking for user '$USER'... "
|
|
|
|
if ! ${PW} usershow $USER >/dev/null 2>&1; then
|
|
echo "doesn't exist."
|
|
else
|
|
echo "deleting."
|
|
${PW} userdel -n ${USER}
|
|
fi
|
|
|
|
;;
|
|
esac
|