- Remove DEINSTALL script

- Replace @exec mkdir with @sample and @mode
- Bump PKGNAME

ok pvalchev@
This commit is contained in:
alek 2004-11-14 10:31:08 +00:00
parent 192cef5c7a
commit 79c8cfe9a7
3 changed files with 6 additions and 51 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2004/02/21 01:18:07 pvalchev Exp $
# $OpenBSD: Makefile,v 1.6 2004/11/14 10:31:08 alek Exp $
COMMENT= "drive some car across the moon"
DISTNAME= moon-buggy-0.5.1
PKGNAME= ${DISTNAME}p0
CATEGORIES= games
HOMEPAGE= http://hangout.de/moon-buggy/

View File

@ -1,47 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2004/01/09 20:49:36 sturm Exp $
#
# moon-buggy de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/moon-buggy
do_notice()
{
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
}
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname DEINSTALL" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
DEINSTALL)
if [ $PKG_DELETE_EXTRA != "Yes" -a -d $SCORE_DIR ]; then
do_notice "$1"
fi
;;
*)
echo "usage: $0 distname DEINSTALL" >&2
exit 1
;;
esac
exit 0

View File

@ -1,8 +1,9 @@
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:46:09 espie Exp $
@comment $OpenBSD: PLIST,v 1.4 2004/11/14 10:31:08 alek Exp $
bin/maint-buggy
bin/moon-buggy
@info info/moon-buggy.info
@man man/man6/maint-buggy.6
@man man/man6/moon-buggy.6
@exec mkdir -p -m775 /var/games/moon-buggy
@extraunexec rm -fr /var/games/moon-buggy
@mode 775
@sample /var/games/moon-buggy/
@extraunexec rm -fr /var/games/moon-buggy/*