modify angband in order to use /var/games/zangband for
user modifiable files (like score, bone and save files). Add pkg/INSTALL and pkg/DEINSTALL to manage them. Also, sync the installation with the way zangband does it. Instead of "No", specify that the license is unclear for distribution rights on CDROM.
This commit is contained in:
parent
b303a22b77
commit
2f62e89795
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2001/08/08 23:39:12 pvalchev Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2001/08/11 17:18:50 lebel Exp $
|
||||
# Original from: Robert Ruehlmann
|
||||
|
||||
COMMENT= "rogue-like game with X11 support"
|
||||
@ -12,9 +12,9 @@ HOMEPAGE= http://thangorodrim.angband.org/
|
||||
|
||||
MAINTAINER= Carsten Ilchmann <ci2@gmx.net>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= No
|
||||
PERMIT_PACKAGE_CDROM= "unclear license"
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= No
|
||||
PERMIT_DISTFILES_CDROM= "unclear license"
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ftp://clockwork.dementia.org/angband/Source/ \
|
||||
@ -22,6 +22,7 @@ MASTER_SITES= ftp://clockwork.dementia.org/angband/Source/ \
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --with-setgid=games
|
||||
CONFIGURE_ENV= TRUEPREFIX="${TRUEPREFIX}"
|
||||
|
||||
FLAVORS= no_x11
|
||||
FLAVOR?=
|
||||
@ -33,4 +34,14 @@ USE_X11= Yes
|
||||
CONFIGURE_ARGS+= --with-x
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/angband
|
||||
(cd ${WRKDIST}/lib && tar -cf - * ) | \
|
||||
(cd ${PREFIX}/share/angband && tar -xf - )
|
||||
@chown -R ${SHAREOWN}:games ${PREFIX}/share/angband
|
||||
@find ${PREFIX} \( -name Makefile\* -o -name delete.me \) \
|
||||
-exec rm "{}" \;
|
||||
${INSTALL} -s -o ${BINOWN} -g games -m 2555 ${WRKSRC}/src/angband \
|
||||
${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
16
games/angband/patches/patch-configure
Normal file
16
games/angband/patches/patch-configure
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-configure,v 1.1 2001/08/11 17:18:50 lebel Exp $
|
||||
--- configure.orig Sat Aug 11 12:56:43 2001
|
||||
+++ configure Sat Aug 11 12:57:29 2001
|
||||
@@ -843,10 +843,10 @@ fi
|
||||
|
||||
|
||||
cat >> confdefs.h <<EOF
|
||||
-#define DEFAULT_PATH "$game_datadir"
|
||||
+#define DEFAULT_PATH "$TRUEPREFIX/share/angband"
|
||||
EOF
|
||||
|
||||
-DEFAULT_PATH="$game_datadir"
|
||||
+DEFAULT_PATH="$TRUEPREFIX/share/angband"
|
||||
|
||||
|
||||
# Extract the first word of "gcc", so it can be a program name with args.
|
33
games/angband/patches/patch-src_init2_c
Normal file
33
games/angband/patches/patch-src_init2_c
Normal file
@ -0,0 +1,33 @@
|
||||
$OpenBSD: patch-src_init2_c,v 1.1 2001/08/11 17:18:50 lebel Exp $
|
||||
--- src/init2.c.orig Sat Aug 4 07:11:13 2001
|
||||
+++ src/init2.c Sat Aug 11 12:42:38 2001
|
||||
@@ -133,16 +133,13 @@ void init_file_paths(char *path)
|
||||
/*** Build the sub-directory names ***/
|
||||
|
||||
/* Build a path name */
|
||||
- strcpy(tail, "apex");
|
||||
- ANGBAND_DIR_APEX = string_make(path);
|
||||
+ ANGBAND_DIR_APEX = string_make("/var/games/angband/apex");
|
||||
|
||||
/* Build a path name */
|
||||
- strcpy(tail, "bone");
|
||||
- ANGBAND_DIR_BONE = string_make(path);
|
||||
+ ANGBAND_DIR_BONE = string_make("/var/games/angband/bone");
|
||||
|
||||
/* Build a path name */
|
||||
- strcpy(tail, "data");
|
||||
- ANGBAND_DIR_DATA = string_make(path);
|
||||
+ ANGBAND_DIR_DATA = string_make("/var/games/angband/data");
|
||||
|
||||
/* Build a path name */
|
||||
strcpy(tail, "edit");
|
||||
@@ -161,8 +158,7 @@ void init_file_paths(char *path)
|
||||
ANGBAND_DIR_INFO = string_make(path);
|
||||
|
||||
/* Build a path name */
|
||||
- strcpy(tail, "save");
|
||||
- ANGBAND_DIR_SAVE = string_make(path);
|
||||
+ ANGBAND_DIR_SAVE = string_make("/var/games/angband/save");
|
||||
|
||||
/* Build a path name */
|
||||
strcpy(tail, "pref");
|
25
games/angband/pkg/DEINSTALL
Normal file
25
games/angband/pkg/DEINSTALL
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2001/08/11 17:18:50 lebel Exp $
|
||||
#
|
||||
# dopewars de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_DIR=/var/games/angband
|
||||
|
||||
if [ -f $SCORE_FILE ]; 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
|
49
games/angband/pkg/INSTALL
Normal file
49
games/angband/pkg/INSTALL
Normal file
@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 2001/08/11 17:18:50 lebel Exp $
|
||||
#
|
||||
# Pre/post-installation setup of angband
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_DIR=/var/games/angband
|
||||
|
||||
# Function: install the directories and files for angband
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
install -m 775 -d $SCORE_DIR
|
||||
install -m 775 -d $SCORE_DIR/apex
|
||||
install -m 775 -d $SCORE_DIR/save
|
||||
install -m 775 -d $SCORE_DIR/data
|
||||
install -m 775 -d $SCORE_DIR/bone
|
||||
chown -R root.games $SCORE_DIR
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
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,89 +1,65 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2001/08/08 23:36:28 lebel Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2001/08/11 17:18:50 lebel Exp $
|
||||
bin/angband
|
||||
share/games/angband/lib/edit/artifact.txt
|
||||
share/games/angband/lib/edit/cost_adj.txt
|
||||
share/games/angband/lib/edit/ego_item.txt
|
||||
share/games/angband/lib/edit/limits.txt
|
||||
share/games/angband/lib/edit/monster.txt
|
||||
share/games/angband/lib/edit/object.txt
|
||||
share/games/angband/lib/edit/p_class.txt
|
||||
share/games/angband/lib/edit/p_hist.txt
|
||||
share/games/angband/lib/edit/p_race.txt
|
||||
share/games/angband/lib/edit/shop_own.txt
|
||||
share/games/angband/lib/edit/terrain.txt
|
||||
share/games/angband/lib/edit/vault.txt
|
||||
share/games/angband/lib/file/dead.txt
|
||||
share/games/angband/lib/file/news.txt
|
||||
share/games/angband/lib/help/attack.txt
|
||||
share/games/angband/lib/help/birth.txt
|
||||
share/games/angband/lib/help/command.txt
|
||||
share/games/angband/lib/help/dungeon.txt
|
||||
share/games/angband/lib/help/general.txt
|
||||
share/games/angband/lib/help/help.hlp
|
||||
share/games/angband/lib/help/option.txt
|
||||
share/games/angband/lib/help/playing.txt
|
||||
share/games/angband/lib/help/version.txt
|
||||
share/games/angband/lib/pref/font-ami.prf
|
||||
share/games/angband/lib/pref/font-dos.prf
|
||||
share/games/angband/lib/pref/font-ibm.prf
|
||||
share/games/angband/lib/pref/font-mac.prf
|
||||
share/games/angband/lib/pref/font-win.prf
|
||||
share/games/angband/lib/pref/font-x11.prf
|
||||
share/games/angband/lib/pref/font-xxx.prf
|
||||
share/games/angband/lib/pref/font.prf
|
||||
share/games/angband/lib/pref/graf-ami.prf
|
||||
share/games/angband/lib/pref/graf-gcu.prf
|
||||
share/games/angband/lib/pref/graf-ibm.prf
|
||||
share/games/angband/lib/pref/graf-lsl.prf
|
||||
share/games/angband/lib/pref/graf-mac.prf
|
||||
share/games/angband/lib/pref/graf-new.prf
|
||||
share/games/angband/lib/pref/graf-win.prf
|
||||
share/games/angband/lib/pref/graf-x11.prf
|
||||
share/games/angband/lib/pref/graf-xxx.prf
|
||||
share/games/angband/lib/pref/graf.prf
|
||||
share/games/angband/lib/pref/message.prf
|
||||
share/games/angband/lib/pref/pref-acn.prf
|
||||
share/games/angband/lib/pref/pref-ami.prf
|
||||
share/games/angband/lib/pref/pref-emx.prf
|
||||
share/games/angband/lib/pref/pref-gcu.prf
|
||||
share/games/angband/lib/pref/pref-mac.prf
|
||||
share/games/angband/lib/pref/pref-win.prf
|
||||
share/games/angband/lib/pref/pref-x11.prf
|
||||
share/games/angband/lib/pref/pref.prf
|
||||
share/games/angband/lib/pref/user-mac.prf
|
||||
share/games/angband/lib/pref/user.prf
|
||||
share/games/angband/lib/pref/xtra-new.prf
|
||||
share/games/angband/lib/pref/xtra-xxx.prf
|
||||
@exec mkdir -p %D/share/games/angband/lib/apex
|
||||
@exec mkdir -p %D/share/games/angband/lib/bone
|
||||
@exec mkdir -p %D/share/games/angband/lib/data
|
||||
@exec mkdir -p %D/share/games/angband/lib/save
|
||||
@exec mkdir -p %D/share/games/angband/lib/user
|
||||
@exec mkdir -p %D/share/games/angband/lib/info
|
||||
@exec mkdir -p %D/share/games/angband/lib/xtra
|
||||
@exec chmod 0775 %D/share/games/angband/lib/apex
|
||||
@exec chmod 0775 %D/share/games/angband/lib/bone
|
||||
@exec chmod 0775 %D/share/games/angband/lib/data
|
||||
@exec chmod 0775 %D/share/games/angband/lib/save
|
||||
@exec chmod 0775 %D/share/games/angband/lib/user
|
||||
@exec chgrp games %D/share/games/angband/lib/apex
|
||||
@exec chgrp games %D/share/games/angband/lib/bone
|
||||
@exec chgrp games %D/share/games/angband/lib/data
|
||||
@exec chgrp games %D/share/games/angband/lib/save
|
||||
@exec chgrp games %D/share/games/angband/lib/user
|
||||
@unexec rm -f %D/share/games/angband/lib/apex/*
|
||||
@unexec rm -f %D/share/games/angband/lib/save/*
|
||||
@unexec rm -f %D/share/games/angband/lib/data/*
|
||||
@dirrm share/games/angband/lib/xtra
|
||||
@dirrm share/games/angband/lib/user
|
||||
@dirrm share/games/angband/lib/save
|
||||
@dirrm share/games/angband/lib/pref
|
||||
@dirrm share/games/angband/lib/info
|
||||
@dirrm share/games/angband/lib/help
|
||||
@dirrm share/games/angband/lib/file
|
||||
@dirrm share/games/angband/lib/edit
|
||||
@dirrm share/games/angband/lib/data
|
||||
@dirrm share/games/angband/lib/bone
|
||||
@dirrm share/games/angband/lib/apex
|
||||
@dirrm share/games/angband/lib
|
||||
@dirrm share/games/angband
|
||||
share/angband/edit/artifact.txt
|
||||
share/angband/edit/cost_adj.txt
|
||||
share/angband/edit/ego_item.txt
|
||||
share/angband/edit/limits.txt
|
||||
share/angband/edit/monster.txt
|
||||
share/angband/edit/object.txt
|
||||
share/angband/edit/p_class.txt
|
||||
share/angband/edit/p_hist.txt
|
||||
share/angband/edit/p_race.txt
|
||||
share/angband/edit/shop_own.txt
|
||||
share/angband/edit/terrain.txt
|
||||
share/angband/edit/vault.txt
|
||||
share/angband/file/dead.txt
|
||||
share/angband/file/news.txt
|
||||
share/angband/help/attack.txt
|
||||
share/angband/help/birth.txt
|
||||
share/angband/help/command.txt
|
||||
share/angband/help/dungeon.txt
|
||||
share/angband/help/general.txt
|
||||
share/angband/help/help.hlp
|
||||
share/angband/help/option.txt
|
||||
share/angband/help/playing.txt
|
||||
share/angband/help/version.txt
|
||||
share/angband/pref/font-ami.prf
|
||||
share/angband/pref/font-dos.prf
|
||||
share/angband/pref/font-ibm.prf
|
||||
share/angband/pref/font-mac.prf
|
||||
share/angband/pref/font-win.prf
|
||||
share/angband/pref/font-x11.prf
|
||||
share/angband/pref/font-xxx.prf
|
||||
share/angband/pref/font.prf
|
||||
share/angband/pref/graf-ami.prf
|
||||
share/angband/pref/graf-gcu.prf
|
||||
share/angband/pref/graf-ibm.prf
|
||||
share/angband/pref/graf-lsl.prf
|
||||
share/angband/pref/graf-mac.prf
|
||||
share/angband/pref/graf-new.prf
|
||||
share/angband/pref/graf-win.prf
|
||||
share/angband/pref/graf-x11.prf
|
||||
share/angband/pref/graf-xxx.prf
|
||||
share/angband/pref/graf.prf
|
||||
share/angband/pref/message.prf
|
||||
share/angband/pref/pref-acn.prf
|
||||
share/angband/pref/pref-ami.prf
|
||||
share/angband/pref/pref-emx.prf
|
||||
share/angband/pref/pref-gcu.prf
|
||||
share/angband/pref/pref-mac.prf
|
||||
share/angband/pref/pref-win.prf
|
||||
share/angband/pref/pref-x11.prf
|
||||
share/angband/pref/pref.prf
|
||||
share/angband/pref/user-mac.prf
|
||||
share/angband/pref/user.prf
|
||||
share/angband/pref/xtra-new.prf
|
||||
share/angband/pref/xtra-xxx.prf
|
||||
@exec mkdir -p %D/share/angband/info
|
||||
@exec mkdir -p %D/share/angband/xtra
|
||||
@dirrm share/angband/xtra
|
||||
@dirrm share/angband/pref
|
||||
@dirrm share/angband/info
|
||||
@dirrm share/angband/help
|
||||
@dirrm share/angband/file
|
||||
@dirrm share/angband/edit
|
||||
@dirrm share/angband
|
||||
|
Loading…
Reference in New Issue
Block a user