update from maintainer Jolan Luff <jolan@crypotonomicon.org>
move hiscore dir to /var/games
This commit is contained in:
parent
80a47b3d1e
commit
336d0e8196
@ -1,4 +1,4 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2003/04/11 15:31:34 wilfried Exp $
|
||||
$OpenBSD: patch-Makefile,v 1.2 2003/04/15 15:02:32 wilfried Exp $
|
||||
--- Makefile.orig Mon Aug 12 18:52:36 2002
|
||||
+++ Makefile Thu Apr 10 05:44:04 2003
|
||||
@@ -9,22 +9,22 @@
|
||||
@ -25,7 +25,7 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2003/04/11 15:31:34 wilfried Exp $
|
||||
# specify directory for writable game data (like highscore files)
|
||||
# default is '.', so you can play without installing game data somewhere
|
||||
-# RW_GAME_DIR = /var/games
|
||||
+RW_GAME_DIR = ${PREFIX}/share/rocksndiamonds
|
||||
+RW_GAME_DIR = /var/games/rocksndiamonds
|
||||
|
||||
# uncomment this if your system has no joystick include file
|
||||
# JOYSTICK = -DNO_JOYSTICK
|
||||
|
22
games/rocksndiamonds/pkg/DEINSTALL
Normal file
22
games/rocksndiamonds/pkg/DEINSTALL
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,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
|
||||
|
||||
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
|
33
games/rocksndiamonds/pkg/INSTALL
Normal file
33
games/rocksndiamonds/pkg/INSTALL
Normal file
@ -0,0 +1,33 @@
|
||||
#!/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
|
@ -1,11 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/04/11 15:31:34 wilfried Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2003/04/15 15:02:32 wilfried Exp $
|
||||
@group games
|
||||
@mode 2555
|
||||
bin/rocksndiamonds
|
||||
@group
|
||||
@mode
|
||||
@exec install -d -m 775 -o root -g games ${PREFIX}/share/rocksndiamonds/scores
|
||||
@unexec rm -rf ${PREFIX}/share/rocksndiamonds/scores
|
||||
share/rocksndiamonds/graphics/gfx_animal_kingdom/RocksHeroes.pcx
|
||||
share/rocksndiamonds/graphics/gfx_animal_kingdom/RocksMore.pcx
|
||||
share/rocksndiamonds/graphics/gfx_animal_kingdom/RocksScreen.pcx
|
||||
|
Loading…
x
Reference in New Issue
Block a user