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 | |
parent | 74b1a3594bff069b0119e1516fea73bea9fbf1c0 (diff) | |
download | pkgsrc-fe0e1402b436ef51c347a50217e55deafdeaf483.tar.gz |
nethack-lib pkg: data files for Nethack
Diffstat (limited to 'games/nethack-lib')
-rw-r--r-- | games/nethack-lib/Makefile | 22 | ||||
-rw-r--r-- | games/nethack-lib/files/md5 | 1 | ||||
-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 | ||||
-rw-r--r-- | games/nethack-lib/pkg/COMMENT | 1 | ||||
-rw-r--r-- | games/nethack-lib/pkg/DESCR | 10 | ||||
-rw-r--r-- | games/nethack-lib/pkg/PLIST | 124 |
10 files changed, 316 insertions, 0 deletions
diff --git a/games/nethack-lib/Makefile b/games/nethack-lib/Makefile new file mode 100644 index 00000000000..f5619212bca --- /dev/null +++ b/games/nethack-lib/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 1998/08/27 12:58:51 garbled Exp $ +# + +DISTNAME= nethack-3.2.2 +PKGNAME= nethack-lib-3.2.2 +CATEGORIES= games +MASTER_SITES= http://pinky.wtower.com/nethack/sources/ + +MAINTAINER= root@garbled.net +HOMEPAGE= http://www.win.tue.nl/games/roguelike/nethack/ + +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= sys/unix/setup.sh +ALL_TARGET= datastuff +INSTALL_TARGET= manpages install-dat + +post-patch: + @${MV} ${WRKSRC}/include/config.h foo + @${SED} -e 's@XXXLOCALBASEXXX@$(LOCALBASE)@g' <foo> ${WRKSRC}/include/config.h + @${RM} -f foo + +.include "../../mk/bsd.pkg.mk" diff --git a/games/nethack-lib/files/md5 b/games/nethack-lib/files/md5 new file mode 100644 index 00000000000..e5173626ad0 --- /dev/null +++ b/games/nethack-lib/files/md5 @@ -0,0 +1 @@ +MD5 (nethack-3.2.2.tar.gz) = c85de4d14453b3a2d182d1dfc2ca04df 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 diff --git a/games/nethack-lib/pkg/COMMENT b/games/nethack-lib/pkg/COMMENT new file mode 100644 index 00000000000..1eeca048261 --- /dev/null +++ b/games/nethack-lib/pkg/COMMENT @@ -0,0 +1 @@ +data files for Nethack diff --git a/games/nethack-lib/pkg/DESCR b/games/nethack-lib/pkg/DESCR new file mode 100644 index 00000000000..31f01787b04 --- /dev/null +++ b/games/nethack-lib/pkg/DESCR @@ -0,0 +1,10 @@ +Nethack is a single player, ASCII graphics-based adventure game, similar +to the lines of Dungeons & Dragons and similar fantasy games. It is +commonly classified in the larger group of Rogue-like Games, which +generally are all text-based, solo adventures. + +Within the game, your character is after the infamous Wizard of Yendor, +who has stolen the Amulet of Yendor and plans to use it for his evil +purposes. You, a young member of your chosen class, have been blessed by +your people and your god to retrieve the Amulet, and to save the world +from the Wizard's evil plans. diff --git a/games/nethack-lib/pkg/PLIST b/games/nethack-lib/pkg/PLIST new file mode 100644 index 00000000000..fd561405624 --- /dev/null +++ b/games/nethack-lib/pkg/PLIST @@ -0,0 +1,124 @@ +@comment $NetBSD: PLIST,v 1.1 1998/08/27 12:58:52 garbled Exp $ +bin/nethack +man/man6/nethack.6 +man/man6/lev_comp.6 +man/man6/dgn_comp.6 +man/man6/recover.6 +man/man6/dlb.6 +share/nethackdir/rip.xpm +share/nethackdir/pet_mark.xbm +share/nethackdir/x11tiles +share/nethackdir/license +share/nethackdir/quest.dat +share/nethackdir/options +share/nethackdir/oracles +share/nethackdir/data +share/nethackdir/W-start.lev +share/nethackdir/V-start.lev +share/nethackdir/T-start.lev +share/nethackdir/S-start.lev +share/nethackdir/R-start.lev +share/nethackdir/P-start.lev +share/nethackdir/K-start.lev +share/nethackdir/H-start.lev +share/nethackdir/E-start.lev +share/nethackdir/C-start.lev +share/nethackdir/B-start.lev +share/nethackdir/A-start.lev +share/nethackdir/W-locate.lev +share/nethackdir/V-locate.lev +share/nethackdir/T-locate.lev +share/nethackdir/S-locate.lev +share/nethackdir/R-locate.lev +share/nethackdir/P-locate.lev +share/nethackdir/K-locate.lev +share/nethackdir/H-locate.lev +share/nethackdir/E-locate.lev +share/nethackdir/C-locate.lev +share/nethackdir/B-locate.lev +share/nethackdir/A-locate.lev +share/nethackdir/W-fillb.lev +share/nethackdir/W-filla.lev +share/nethackdir/V-fillb.lev +share/nethackdir/V-filla.lev +share/nethackdir/T-fillb.lev +share/nethackdir/T-filla.lev +share/nethackdir/S-fillb.lev +share/nethackdir/S-filla.lev +share/nethackdir/R-fillb.lev +share/nethackdir/R-filla.lev +share/nethackdir/P-fillb.lev +share/nethackdir/P-filla.lev +share/nethackdir/K-fillb.lev +share/nethackdir/K-filla.lev +share/nethackdir/H-fillb.lev +share/nethackdir/H-filla.lev +share/nethackdir/E-fillb.lev +share/nethackdir/E-filla.lev +share/nethackdir/C-fillb.lev +share/nethackdir/C-filla.lev +share/nethackdir/B-fillb.lev +share/nethackdir/B-filla.lev +share/nethackdir/A-fillb.lev +share/nethackdir/A-filla.lev +share/nethackdir/W-goal.lev +share/nethackdir/V-goal.lev +share/nethackdir/T-goal.lev +share/nethackdir/S-goal.lev +share/nethackdir/R-goal.lev +share/nethackdir/P-goal.lev +share/nethackdir/K-goal.lev +share/nethackdir/H-goal.lev +share/nethackdir/E-goal.lev +share/nethackdir/C-goal.lev +share/nethackdir/B-goal.lev +share/nethackdir/A-goal.lev +share/nethackdir/water.lev +share/nethackdir/fire.lev +share/nethackdir/earth.lev +share/nethackdir/air.lev +share/nethackdir/astral.lev +share/nethackdir/wizard3.lev +share/nethackdir/wizard2.lev +share/nethackdir/dungeon +share/nethackdir/wizard1.lev +share/nethackdir/valley.lev +share/nethackdir/tower3.lev +share/nethackdir/tower2.lev +share/nethackdir/tower1.lev +share/nethackdir/sanctum.lev +share/nethackdir/orcus.lev +share/nethackdir/oracle.lev +share/nethackdir/minetn-2.lev +share/nethackdir/minetn-1.lev +share/nethackdir/minefill.lev +share/nethackdir/minend-2.lev +share/nethackdir/minend-1.lev +share/nethackdir/medusa-2.lev +share/nethackdir/medusa-1.lev +share/nethackdir/knox.lev +share/nethackdir/juiblex.lev +share/nethackdir/fakewiz2.lev +share/nethackdir/fakewiz1.lev +share/nethackdir/castle.lev +share/nethackdir/bigrm-5.lev +share/nethackdir/bigrm-4.lev +share/nethackdir/bigrm-3.lev +share/nethackdir/wizhelp +share/nethackdir/bigrm-2.lev +share/nethackdir/bigrm-1.lev +share/nethackdir/baalz.lev +share/nethackdir/asmodeus.lev +share/nethackdir/opthelp +share/nethackdir/history +share/nethackdir/cmdhelp +share/nethackdir/hh +share/nethackdir/help +share/nethackdir/rumors +share/nethackdir/perm +share/doc/nethack/Guidebook +@unexec rm -f %D/share/nethackdir/record +@unexec rm -f %D/share/nethackdir/logfile +@dirrm share/doc/nethack +@dirrm share/nethackdir/save +@dirrm share/nethackdir |