kill INSTALL

This commit is contained in:
espie 2004-09-22 18:38:13 +00:00
parent 5d07f0799d
commit 6f8954e1b8
3 changed files with 5 additions and 57 deletions

View File

@ -1,22 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/04/13 10:19:59 xsa Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/rocksndiamonds
if [ ${PKG_DELETE_EXTRA} != Yes -a -d $SCORE_DIR ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -rf $SCORE_DIR"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,33 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2003/04/15 15:02:32 wilfried Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/rocksndiamonds
do_install()
{
install -d -m 775 -o root -g games $SCORE_DIR
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -d $SCORE_DIR ]; then
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.7 2004/09/15 00:46:10 espie Exp $
@comment $OpenBSD: PLIST,v 1.8 2004/09/22 18:38:13 espie Exp $
@mode 2555
@group games
bin/rocksndiamonds
@ -3501,4 +3501,7 @@ share/rocksndiamonds/sounds/snd_classic/soundsinfo.conf
share/rocksndiamonds/sounds/snd_classic/zisch.wav
share/rocksndiamonds/sounds/snd_classic/zonkdown.wav
share/rocksndiamonds/sounds/snd_classic/zonkpush.wav
@extraunexec rm -rf /var/games/rocksndiamonds
@mode 775
@group games
@sample /var/games/rocksndiamonds/
@extraunexec rm -rf /var/games/rocksndiamonds/* >/dev/null || true