Subject: Re: Quest
To: Michael Richardson <mcr@sandelman.ottawa.on.ca>
From: Assar Westerlund <assar@netbsd.org>
List: tech-userlevel
Date: 12/20/2000 06:29:29
--=-=-=
Michael Richardson <mcr@sandelman.ottawa.on.ca> writes:
> Never heard of Quest. There isn't a better reference in the man
> page that I could find. Is there another reference?
Just apply the appended patch and you shall get a quest game on your
NetBSD box :-)
/assar
--=-=-=
Content-Disposition: attachment; filename=netbsd-quest.diff
Content-Description: the quest game
? games/quest
Index: distrib/sets/lists/games/mi
===================================================================
RCS file: /cvsroot/basesrc/distrib/sets/lists/games/mi,v
retrieving revision 1.23
diff -u -w -r1.23 mi
--- distrib/sets/lists/games/mi 2000/08/17 16:59:23 1.23
+++ distrib/sets/lists/games/mi 2000/12/20 05:28:26
@@ -18,6 +18,7 @@
./usr/games/fortune
./usr/games/gomoku
./usr/games/hack
+./usr/games/quest
./usr/games/hangman
./usr/games/hide/adventure
./usr/games/hide/arithmetic
@@ -40,6 +41,7 @@
./usr/games/hide/morse
./usr/games/hide/phantasia
./usr/games/hide/ppt
+./usr/games/hide/quest
./usr/games/hide/quiz
./usr/games/hide/robots
./usr/games/hide/rogue
@@ -258,6 +260,10 @@
./var/games/hackdir/help
./var/games/hackdir/hh
./var/games/hackdir/perm
+./var/games/questdir/data
+./var/games/questdir/help
+./var/games/questdir/hh
+./var/games/questdir/perm
./var/games/phantasia/gold
./var/games/phantasia/lastdead
./var/games/phantasia/mess
Index: etc/mtree/NetBSD.dist
===================================================================
RCS file: /cvsroot/basesrc/etc/mtree/NetBSD.dist,v
retrieving revision 1.124
diff -u -w -r1.124 NetBSD.dist
--- etc/mtree/NetBSD.dist 2000/12/11 13:44:01 1.124
+++ etc/mtree/NetBSD.dist 2000/12/20 05:28:38
@@ -2126,6 +2126,17 @@
# ./var/games/hackdir
..
+# ./var/games/questdir
+questdir uname=games gname=games mode=0775
+
+# ./var/games/questdir/save
+save uname=games gname=games mode=0770
+# ./var/games/questdir/save
+..
+
+# ./var/games/questdir
+..
+
# ./var/games/larn
larn uname=games gname=games mode=0775
# ./var/games/larn
Index: games/Makefile
===================================================================
RCS file: /cvsroot/basesrc/games/Makefile,v
retrieving revision 1.17
diff -u -w -r1.17 Makefile
--- games/Makefile 1999/07/22 01:09:00 1.17
+++ games/Makefile 2000/12/20 05:28:38
@@ -8,7 +8,7 @@
SUBDIR= adventure arithmetic atc backgammon banner battlestar bcd boggle \
caesar canfield countmail cribbage dm factor fish fortune gomoku hack \
hangman hunt larn mille monop morse number phantasia pig pom ppt \
- primes quiz rain random robots rogue sail snake tetris trek wargames \
- worm worms wtf wump
+ primes quiz quest rain random robots rogue sail snake tetris trek \
+ wargames worm worms wtf wump
.include <bsd.subdir.mk>
--- /dev/null Wed Dec 20 06:17:05 2000
+++ games/quest/Makefile Wed Dec 20 06:26:46 2000
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile,v 1.31 2000/09/23 13:53:42 simonb Exp $
+# @(#)Makefile 8.2 (Berkeley) 4/27/95
+
+.include <bsd.own.mk>
+
+.PATH: ${.CURDIR}/../hack
+
+PROG= quest
+CPPFLAGS+=-I. -DQUEST
+SRCS+= hack.onames.h
+SRCS+= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
+ hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
+ hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
+ hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
+ hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
+ hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
+ hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
+ hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
+ hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
+ hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
+ hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
+MAN=
+DPADD+= ${LIBTERM} ${LIBCOMPAT}
+LDADD+= -ltermcap
+HIDEGAME=hidegame
+SETGIDGAME=yes
+CLEANFILES+=hack.onames.h makedefs
+FILES=help hh data
+FILESDIR=/var/games/questdir
+
+hack.onames.h: makedefs def.objects.h
+ ${.OBJDIR}/makedefs ${.CURDIR}/def.objects.h > hack.onames.h
+
+makedefs: makedefs.c
+ ${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c
+
+hack.h: hack.onames.h
+
+alloc.o hack.Decl.o hack.apply.o hack.bones.o hack.o hack.cmd.o hack.do.o \
+ hack.do_name.o hack.do_wear.o hack.dog.o hack.eat.o hack.end.o \
+ hack.engrave.o hack.fight.o hack.invent.o hack.ioctl.o hack.lev.o \
+ hack.main.o hack.makemon.o hack.mhitu.o hack.mklev.o hack.mkmaze.o \
+ hack.mkobj.o hack.mkshop.o hack.mon.o hack.monst.o hack.o_init.o \
+ hack.objnam.o hack.options.o hack.pager.o hack.potion.o hack.pri.o \
+ hack.read.o hack.rip.o hack.rumors.o hack.save.o hack.search.o hack.shk.o \
+ hack.shknam.o hack.steal.o hack.termcap.o hack.timeout.o hack.topl.o \
+ hack.track.o hack.trap.o hack.tty.o hack.u_init.o hack.unix.o hack.vault.o \
+ hack.version.o hack.wield.o hack.wizard.o hack.worm.o hack.worn.o \
+ hack.zap.o rnd.o: hack.h
+
+.if !exists(${DESTDIR}${FILESDIR}/perm)
+afterinstall: clobber
+.endif
+
+clobber:
+ ${INSTALL} ${INSTPRIV} ${COPY} -o games -g games -m 660 /dev/null \
+ ${DESTDIR}/var/games/questdir/perm
+ ${INSTALL} ${INSTPRIV} ${COPY} -o games -g games -m 660 /dev/null \
+ ${DESTDIR}/var/games/questdir/record
+ rm -f ${DESTDIR}/var/games/questdir/bones*
+
+.include <bsd.prog.mk>
--=-=-=--