update from maintainer Jolan Luff <jolan@crypotonomicon.org>

move hiscore dir to /var/games
This commit is contained in:
wilfried 2003-04-15 13:43:18 +00:00
parent 8f167ffd57
commit 00a5f21f41
4 changed files with 59 additions and 6 deletions

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-configure,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $
$OpenBSD: patch-configure,v 1.2 2003/04/15 13:43:18 wilfried Exp $
--- configure.orig Fri Jun 14 19:17:58 2002
+++ configure Thu Apr 10 03:17:41 2003
+++ configure Mon Apr 14 14:08:00 2003
@@ -3478,8 +3478,8 @@ echo $ECHO_N "checking target platform a
build_macosx_bundle=no
build_simple_bundle=no
@ -8,7 +8,7 @@ $OpenBSD: patch-configure,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $
-DATADIR='$(datadir)/games/kobo-deluxe'
-SCOREDIR='$(prefix)/games/kobo-deluxe/scores'
+DATADIR='$(datadir)/kobodeluxe'
+SCOREDIR='$(datadir)/kobodeluxe/scores'
+SCOREDIR='/var/games/kobodeluxe'
CONFIGDIR='HOME>>'
CONFIGFILE='.kobodlrc'
EXEFILE=kobodl

View File

@ -0,0 +1,22 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2003/04/15 13:43:18 wilfried Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/kobodeluxe
if [ -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

@ -0,0 +1,33 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1 2003/04/15 13:43:18 wilfried Exp $
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
SCORE_DIR=/var/games/kobodeluxe
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.1.1.1 2003/04/12 15:22:10 espie Exp $
@comment $OpenBSD: PLIST,v 1.2 2003/04/15 13:43:18 wilfried Exp $
@group games
@mode 2555
bin/kobodl
@ -120,8 +120,6 @@ share/kobodeluxe/sfx/tububells2.agw
share/kobodeluxe/sfx/warmpad1.agw
share/kobodeluxe/sfx/xylophone1.agw
share/kobodeluxe/sfx/xylophone2.agw
@exec install -d -m 775 -o root -g games %B/../scores/
@unexec rm -rf %B/../scores/
@dirrm share/kobodeluxe/sfx
@dirrm share/kobodeluxe/gfx
@dirrm share/kobodeluxe