diff options
author | garbled <garbled@pkgsrc.org> | 1998-08-27 12:58:51 +0000 |
---|---|---|
committer | garbled <garbled@pkgsrc.org> | 1998-08-27 12:58:51 +0000 |
commit | fe0e1402b436ef51c347a50217e55deafdeaf483 (patch) | |
tree | 1fb16f875fda4099cf2b39327e32fef825e2ef7a /games/nethack-lib/patches | |
parent | 74b1a3594bff069b0119e1516fea73bea9fbf1c0 (diff) | |
download | pkgsrc-fe0e1402b436ef51c347a50217e55deafdeaf483.tar.gz |
nethack-lib pkg: data files for Nethack
Diffstat (limited to 'games/nethack-lib/patches')
-rw-r--r-- | games/nethack-lib/patches/patch-aa | 31 | ||||
-rw-r--r-- | games/nethack-lib/patches/patch-ab | 76 | ||||
-rw-r--r-- | games/nethack-lib/patches/patch-ac | 26 | ||||
-rw-r--r-- | games/nethack-lib/patches/patch-ad | 17 | ||||
-rw-r--r-- | games/nethack-lib/patches/patch-ae | 8 |
5 files changed, 158 insertions, 0 deletions
diff --git a/games/nethack-lib/patches/patch-aa b/games/nethack-lib/patches/patch-aa new file mode 100644 index 00000000000..89e8b1030ef --- /dev/null +++ b/games/nethack-lib/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1 1998/08/27 12:58:51 garbled Exp $ +--- include/config.h.orig Sat Aug 8 06:06:46 1998 ++++ include/config.h Sat Aug 8 06:08:27 1998 +@@ -298,8 +298,8 @@ + /* path and file name extension for compression program */ +-# define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ +-# define COMPRESS_EXTENSION ".Z" /* compress's extension */ ++/* # define COMPRESS "/usr/ucb/compress" /* Lempel-Ziv compression */ ++/* # define COMPRESS_EXTENSION ".Z" /* compress's extension */ + + /* An example of one alternative you might want to use: */ +-/* # define COMPRESS "/usr/local/bin/gzip" /* FSF gzip compression */ +-/* # define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ ++# define COMPRESS "/usr/bin/gzip" /* FSF gzip compression */ ++# define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ + #endif +@@ -333,3 +333,3 @@ + # ifndef HACKDIR +-# define HACKDIR "/usr/games/lib/nethackdir" /* nethack directory */ ++# define HACKDIR "XXXLOCALBASEXXX/share/nethackdir" /* nethack directory */ + # endif +@@ -429,3 +429,3 @@ + +-/*#define VISION_TABLES /* use vision tables generated at compile time */ ++#define VISION_TABLES /* use vision tables generated at compile time */ + #ifndef VISION_TABLES +@@ -467,3 +467,3 @@ + #define EXP_ON_BOTL /* Show experience on bottom line */ +-/* #define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ ++#define SCORE_ON_BOTL /* added by Gary Erickson (erickson@ucivax) */ + diff --git a/games/nethack-lib/patches/patch-ab b/games/nethack-lib/patches/patch-ab new file mode 100644 index 00000000000..09a1317ff79 --- /dev/null +++ b/games/nethack-lib/patches/patch-ab @@ -0,0 +1,76 @@ +$NetBSD: patch-ab,v 1.1 1998/08/27 12:58:51 garbled Exp $ +--- sys/unix/Makefile.top.orig Tue Dec 10 13:20:10 1996 ++++ sys/unix/Makefile.top Sat Aug 8 06:10:41 1998 +@@ -17,4 +17,4 @@ + GAME = nethack +-GAMEUID = games +-GAMEGRP = bin ++GAMEUID = bin ++GAMEGRP = games + +@@ -22,6 +22,6 @@ + # See also the option "SECURE" in include/config.h +-GAMEPERM = 04755 +-FILEPERM = 0644 ++GAMEPERM = 2755 ++FILEPERM = 0664 + EXEPERM = 0755 +-DIRPERM = 0755 ++DIRPERM = 0775 + +@@ -34,4 +34,4 @@ + # instructions) +-GAMEDIR = /usr/games/lib/$(GAME)dir +-SHELLDIR = /usr/games ++GAMEDIR = $(LOCALBASE)/share/$(GAME)dir ++SHELLDIR = $(LOCALBASE)/bin + +@@ -40,3 +40,3 @@ + # VARDATND = x11tiles pet_mark.xbm +-# VARDATND = x11tiles pet_mark.xbm rip.xpm ++VARDATND = x11tiles pet_mark.xbm rip.xpm + +@@ -76,5 +76,8 @@ + +-all: $(GAME) Guidebook $(VARDAT) dungeon spec_levs check-dlb ++all: $(GAME) datastuff + @echo "Done." + ++datastuff: Guidebook $(VARDAT) dungeon spec_levs check-dlb ++ @echo "Data Sets Built" ++ + Guidebook: +@@ -128,2 +131,7 @@ + ++binfiles: $(GAME) ++ cp src/$(GAME) $(SHELLDIR)/$(GAME)$(GTYPE) ++ -( cd $(GAMEDIR) ; $(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME)$(GTYPE) ; \ ++ $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME)$(GTYPE) ) ++ chmod $(GAMEPERM) $(SHELLDIR)/$(GAME)$(GTYPE) + +@@ -137,3 +145,2 @@ + $(MAKE) dofiles-$${target-nodlb} +- cp src/$(GAME) $(GAMEDIR) + -rm -f $(SHELLDIR)/$(GAME) +@@ -141,2 +148,3 @@ + -e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \ ++ -e 's;XXXPREFIXXXX;$(LOCALBASE);' \ + < sys/unix/nethack.sh \ +@@ -144,5 +152,2 @@ + # set up their permissions +- -( cd $(GAMEDIR) ; $(CHOWN) $(GAMEUID) $(GAME) ; \ +- $(CHGRP) $(GAMEGRP) $(GAME) ) +- chmod $(GAMEPERM) $(GAMEDIR)/$(GAME) + -$(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME) +@@ -182,3 +187,3 @@ + +-install: $(GAME) $(VARDAT) dungeon spec_levs ++install-dat: $(VARDAT) dungeon spec_levs + # set up the directories +@@ -197,2 +202,6 @@ + chmod $(FILEPERM) perm record logfile ) ++ -mkdir -p $(LOCALBASE)/share/doc/nethack ++ cp doc/Guidebook $(LOCALBASE)/share/doc/nethack ++ chown $(GAMEUID):$(GAMEGRP) $(LOCALBASE)/share/doc/nethack/Guidebook ++ chmod $(FILEPERM) $(LOCALBASE)/share/doc/nethack/Guidebook + # and a reminder diff --git a/games/nethack-lib/patches/patch-ac b/games/nethack-lib/patches/patch-ac new file mode 100644 index 00000000000..9ad08fde339 --- /dev/null +++ b/games/nethack-lib/patches/patch-ac @@ -0,0 +1,26 @@ +$NetBSD: patch-ac,v 1.1 1998/08/27 12:58:51 garbled Exp $ +--- include/system.h.rorig Sun Aug 9 05:31:34 1998 ++++ include/system.h Sun Aug 9 05:31:40 1998 +@@ -82,3 +82,3 @@ + # else +-# ifndef bsdi ++# if !defined(bsdi) && !defined(__NetBSD__) + E int FDECL(srandom, (unsigned int)); +@@ -132,3 +132,3 @@ + #else +-# if defined(BSD) || defined(ULTRIX) ++# if (defined(BSD) || defined(ULTRIX)) && !defined(__NetBSD__) + E int qsort(); +@@ -398,3 +398,3 @@ + # else +-# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) ++# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) && !defined(__NetBSD__) + E int FDECL(strlen, (const char *)); +@@ -509,2 +509,3 @@ + ++#ifndef __NetBSD__ + # if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) +@@ -514,2 +515,3 @@ + # endif /* ULTRIX */ ++#endif + diff --git a/games/nethack-lib/patches/patch-ad b/games/nethack-lib/patches/patch-ad new file mode 100644 index 00000000000..52bf7356e7f --- /dev/null +++ b/games/nethack-lib/patches/patch-ad @@ -0,0 +1,17 @@ +$NetBSD: patch-ad,v 1.1 1998/08/27 12:58:52 garbled Exp $ +--- sys/unix/nethack.sh.orig Tue Sep 12 13:01:39 1995 ++++ sys/unix/nethack.sh Sat Aug 8 03:43:07 1998 +@@ -3,4 +3,11 @@ + +-HACKDIR=/usr/games/lib/nethackdir +-HACK=$HACKDIR/nethack ++if [ "$1" = "" ]; then ++ TTY=tty ++else ++ TTY=$1 ++fi ++ ++HACKDIR=XXXPREFIXXXX/share/nethackdir ++export HACKDIR ++HACK=XXXPREFIXXXX/bin/nethack-$TTY + MAXNROFPLAYERS=4 diff --git a/games/nethack-lib/patches/patch-ae b/games/nethack-lib/patches/patch-ae new file mode 100644 index 00000000000..41d95575af8 --- /dev/null +++ b/games/nethack-lib/patches/patch-ae @@ -0,0 +1,8 @@ +$NetBSD: patch-ae,v 1.1 1998/08/27 12:58:52 garbled Exp $ +--- sys/unix/Makefile.doc.orig Sat Aug 8 00:35:44 1998 ++++ sys/unix/Makefile.doc Sat Aug 8 00:36:41 1998 +@@ -33,3 +33,3 @@ + GAME = nethack +-MANDIR = /usr/man/man6 ++MANDIR = $(LOCALBASE)/man/man6 + MANEXT = 6 |