Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 1999 15:19:30 GMT
From:      dscheidt@enteract.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15469: New port: nethack-3.3.0
Message-ID:  <199912131519.PAA24626@rally3.jazz.att.com>

next in thread | raw e-mail | index | archive | help

>Number:         15469
>Category:       ports
>Synopsis:       New port: nethack-3.3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 13 12:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     David Scheidt
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	

>How-To-Repeat:

	

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./patches
#	./patches/patch-ae
#	./patches/patch-ad
#	./patches/patch-ac
#	./patches/patch-ab
#	./patches/patch-aa
#	./patches/patch-af
#	./files
#	./files/md5
#	./pkg
#	./pkg/PLIST
#	./pkg/COMMENT
#	./pkg/DESCR
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	nethack
X# Version required:	3.3.0
X# Date created:		12 December 1999
X# Whom:			dscheidt@enteract.com
X#
X
XDISTNAME=	nethack-3.3.0
XCATEGORIES=	games
X#MASTER_SITES=	ftp://ftp.wtower.com/nethack/sources/ \
X#		${MASTER_SITE_GNU}
XMASTER_SITES=	ftp://ftp.nethack.org/pub/nethack/src/ \
X		${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR=	nethack
X
XMAINTAINER=	dscheidt@enteract.com
X
XLIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm
X
XUSE_GMAKE=	yes
X
X#MANDIR=		${PREFIX}/man/man
X#MAN6=		dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6
X
Xpre-configure:
X	@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
X
Xpost-install:
X	@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
X	@cd ${WRKSRC}/doc; PREFIX=${PREFIX} ${MAKE} manpages
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/nethack
X	${CP} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
X.endif
X
X.include <bsd.port.mk>
END-of-./Makefile
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-ae
sed 's/^X//' >./patches/patch-ae << 'END-of-./patches/patch-ae'
X--- ./sys/unix/Makefile.top.orig	Sat Dec 11 05:21:05 1999
X+++ ./sys/unix/Makefile.top	Mon Dec 13 11:51:27 1999
X@@ -14,17 +14,16 @@
X # MAKE = make
X 
X # make NetHack
X-PREFIX	 = /usr
X GAME     = nethack
X GAMEUID  = games
X-GAMEGRP  = bin
X+GAMEGRP  = games
X 
X # Permissions - some places use setgid instead of setuid, for instance
X # See also the option "SECURE" in include/config.h
X-GAMEPERM = 04755
X-FILEPERM = 0644
X+GAMEPERM = 02755
X+FILEPERM = 0664
X EXEPERM  = 0755
X-DIRPERM  = 0755
X+DIRPERM  = 0775
X 
X # GAMEDIR also appears in config.h as "HACKDIR".
X #
X@@ -33,8 +32,8 @@
X # therefore there should not be anything in GAMEDIR that you want to keep
X # (if there is, you'll have to do the installation by hand or modify the
X # instructions)
X-GAMEDIR  = $(PREFIX)/games/lib/$(GAME)dir
X-SHELLDIR = $(PREFIX)/games
X+GAMEDIR  = $(PREFIX)/share/$(GAME)
X+SHELLDIR = $(PREFIX)/bin
X 
X # per discussion in Install.X11 and Install.Qt
X VARDATND = 
X@@ -184,9 +183,9 @@
X 
X install: $(GAME) $(VARDAT) dungeon spec_levs
X # set up the directories
X-	-mkdir $(SHELLDIR)
X+	-mkdir -p $(SHELLDIR)
X 	-rm -rf $(GAMEDIR)
X-	-mkdir $(GAMEDIR) $(GAMEDIR)/save
X+	-mkdir -p $(GAMEDIR) $(GAMEDIR)/save
X 	-$(CHOWN) $(GAMEUID) $(GAMEDIR) $(GAMEDIR)/save
X 	$(CHGRP) $(GAMEGRP) $(GAMEDIR) $(GAMEDIR)/save
X 	chmod $(DIRPERM) $(GAMEDIR) $(GAMEDIR)/save
END-of-./patches/patch-ae
echo x - ./patches/patch-ad
sed 's/^X//' >./patches/patch-ad << 'END-of-./patches/patch-ad'
X--- ./sys/unix/Makefile.src.orig	Sat Dec 11 00:21:05 1999
X+++ ./sys/unix/Makefile.src	Sun Dec 12 20:27:50 1999
X@@ -132,8 +132,8 @@
X # flags for debugging:
X # CFLAGS = -g -I../include
X 
X-CFLAGS = -O -I../include
X-LFLAGS = 
X+CFLAGS += -O -I../include -I${X11BASE}/include
X+LFLAGS =  -L${X11BASE}/lib
X 
X # Only used for Qt interface (other interfaces are standard C)
X CXXFLAGS = -g $(CFLAGS) -I. -I$(QTDIR)/include
X@@ -165,8 +165,8 @@
X 
X #
X # 
X-WINSRC = $(WINTTYSRC)
X-WINOBJ = $(WINTTYOBJ)
X+WINSRC = $(WINTTYSRC) $(WINX11SRC)
X+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
X 
X # on some systems the termcap library is in -ltermcap or -lcurses
X # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
X@@ -186,7 +186,7 @@
X #
X # libraries for X11
X # If USE_XPM is defined in config.h, you will also need -lXpm here.
X-WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
X+WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
X # WINX11LIB = -lXaw -lXmu -lXt -lX11
X # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
X # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
X@@ -199,7 +199,7 @@
X #
X #
X 
X-WINLIB = $(WINTTYLIB)
X+WINLIB = $(WINTTYLIB) $(WINX11LIB)
X 
X # any other strange libraries your system needs (for Sysunix only -- the more
X # specialized targets should already be right)
X@@ -223,7 +223,7 @@
X # IRIX 4.0.x needs -lsun if NIS (YP) is being used for passwd file lookup
X # LIBS = -lsun
X #
X-LIBS =
X+LIBS = -lSM -lICE
X 
X # make NetHack
X GAME     = nethack
END-of-./patches/patch-ad
echo x - ./patches/patch-ac
sed 's/^X//' >./patches/patch-ac << 'END-of-./patches/patch-ac'
X--- ./include/unixconf.h.orig	Sat Dec 11 00:20:51 1999
X+++ ./include/unixconf.h	Sun Dec 12 20:45:41 1999
X@@ -135,7 +135,7 @@
X  * A stat system call is done on the mailbox every MAILCKFREQ moves.
X  */
X 
X-#define MAIL			/* Deliver mail during the game */
X+/* #define MAIL			/* Deliver mail during the game */
X 
X /* The Andrew Message System does mail a little differently from normal
X  * UNIX.  Mail is deposited in the user's own directory in ~/Mailbox
END-of-./patches/patch-ac
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X--- ./include/system.h.orig	Sat Dec 11 00:20:51 1999
X+++ ./include/system.h	Sun Dec 12 20:44:40 1999
X@@ -80,7 +80,7 @@
X # if !defined(SUNOS4) || defined(RANDOM)
X E void FDECL(srandom, (unsigned int));
X # else
X-#  ifndef bsdi
X+#  if !defined(bsdi) && !defined(__FreeBSD__)
X E int FDECL(srandom, (unsigned int));
X #  endif
X # endif
X@@ -516,7 +516,7 @@
X # if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
X E time_t FDECL(time, (time_t *));
X # else
X-E long FDECL(time, (time_t *));
X+E time_t FDECL(time, (time_t *));
X # endif /* ULTRIX */
X 
X #ifdef VMS
END-of-./patches/patch-ab
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X--- ./include/config.h.orig	Sat Dec 11 00:20:49 1999
X+++ ./include/config.h	Sun Dec 12 20:28:09 1999
X@@ -43,7 +43,7 @@
X  * Some combinations make no sense.  See the installation document.
X  */
X #define TTY_GRAPHICS	/* good old tty based graphics */
X-/* #define X11_GRAPHICS */ /* X11 interface */
X+#define X11_GRAPHICS  /* X11 interface */
X /* #define QT_GRAPHICS */	/* Qt interface */
X 
X /*
X@@ -92,7 +92,7 @@
X  * would allow:
X  *  xpmtoppm <x11tiles.xpm | pnmscale 1.25 | ppmquant 90 >x11tiles_big.xpm
X  */
X-/* # define USE_XPM */		/* Disable if you do not have the XPM library */
X+# define USE_XPM 		/* Disable if you do not have the XPM library */
X # ifdef USE_XPM
X #  define GRAPHIC_TOMBSTONE	/* Use graphical tombstone (rip.xpm) */
X # endif
X@@ -133,11 +133,11 @@
X 
X #ifdef UNIX
X /* path and file name extension for compression program */
X-#define COMPRESS "/usr/bin/compress"	/* Lempel-Ziv compression */
X-#define COMPRESS_EXTENSION ".Z"		/* compress's extension */
X+/* #define COMPRESS "/usr/bin/compress"*/	/* Lempel-Ziv compression */
X+/* #define COMPRESS_EXTENSION ".Z"	*/	/* compress's extension */
X /* An example of one alternative you might want to use: */
X-/* #define COMPRESS "/usr/local/bin/gzip" */	/* FSF gzip compression */
X-/* #define COMPRESS_EXTENSION ".gz" */		/* normal gzip extension */
X+#define COMPRESS "/usr/local/bin/gzip" 	/* FSF gzip compression */
X+#define COMPRESS_EXTENSION ".gz" 		/* normal gzip extension */
X #endif
X 
X #ifndef COMPRESS
X@@ -168,7 +168,7 @@
X  * otherwise it will be the current directory.
X  */
X # ifndef HACKDIR
X-#  define HACKDIR "/usr/games/lib/nethackdir"	/* nethack directory */
X+#  define HACKDIR "/usr/local/share/nethack"	/* nethack directory */
X # endif
X 
X /*
END-of-./patches/patch-aa
echo x - ./patches/patch-af
sed 's/^X//' >./patches/patch-af << 'END-of-./patches/patch-af'
X--- ./sys/unix/Makefile.doc.orig	Mon Dec 13 14:49:15 1999
X+++ ./sys/unix/Makefile.doc	Mon Dec 13 14:44:53 1999
X@@ -31,7 +31,7 @@
X 
X 
X GAME	= nethack
X-MANDIR	= /usr/man/man6
X+MANDIR	= ${PREFIX}/man/man
X MANEXT	= 6
X 
X # manual installation for most BSD-style systems
X@@ -48,11 +48,11 @@
X # DLBMANCREATE = nroff -man dlb.6 >
X 
X manpages:
X-	-$(GAMEMANCREATE) $(MANDIR)/$(GAME).$(MANEXT)
X-	-$(LEVMANCREATE) $(MANDIR)/lev_comp.$(MANEXT)
X-	-$(DGNMANCREATE) $(MANDIR)/dgn_comp.$(MANEXT)
X-	-$(RCVRMANCREATE) $(MANDIR)/recover.$(MANEXT)
X-	-$(DLBMANCREATE) $(MANDIR)/dlb.$(MANEXT)
X+	-$(GAMEMANCREATE) $(MANDIR)$(MANEXT)/$(GAME).$(MANEXT)
X+	-$(LEVMANCREATE) $(MANDIR)$(MANEXT)/lev_comp.$(MANEXT)
X+	-$(DGNMANCREATE) $(MANDIR)$(MANEXT)/dgn_comp.$(MANEXT)
X+	-$(RCVRMANCREATE) $(MANDIR)$(MANEXT)/recover.$(MANEXT)
X+	-$(DLBMANCREATE) $(MANDIR)$(MANEXT)/dlb.$(MANEXT)
X 
X # manual creation for distribution
X DISTRIB = Guidebook.txt nethack.txt lev_comp.txt dgn_comp.txt recover.txt dlb.txt
END-of-./patches/patch-af
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/md5
sed 's/^X//' >./files/md5 << 'END-of-./files/md5'
XMD5 (nethack-3.3.0.tar.gz) = cf9f4039408321f39c3ef733455cb73a
END-of-./files/md5
echo c - ./pkg
mkdir -p ./pkg > /dev/null 2>&1
echo x - ./pkg/PLIST
sed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST'
Xbin/nethack
Xshare/nethack/nethack
X@exec mkdir %D/share/nethack/save
X@exec chmod -R 775 %D/share/nethack
X@exec chmod 2755 %D/share/nethack/nethack
X@exec chown games.games %D/share/nethack/save
X@unexec rm -rf %D/share/nethack/save
Xshare/doc/nethack/Guidebook.txt
Xshare/nethack/Arc-fila.lev
Xshare/nethack/Arc-filb.lev
Xshare/nethack/Arc-goal.lev
Xshare/nethack/Arc-loca.lev
Xshare/nethack/Arc-strt.lev
Xshare/nethack/Bar-fila.lev
Xshare/nethack/Bar-filb.lev
Xshare/nethack/Bar-goal.lev
Xshare/nethack/Bar-loca.lev
Xshare/nethack/Bar-strt.lev
Xshare/nethack/Cav-fila.lev
Xshare/nethack/Cav-filb.lev
Xshare/nethack/Cav-goal.lev
Xshare/nethack/Cav-loca.lev
Xshare/nethack/Cav-strt.lev
Xshare/nethack/Hea-fila.lev
Xshare/nethack/Hea-filb.lev
Xshare/nethack/Hea-goal.lev
Xshare/nethack/Hea-loca.lev
Xshare/nethack/Hea-strt.lev
Xshare/nethack/Kni-fila.lev
Xshare/nethack/Kni-filb.lev
Xshare/nethack/Kni-goal.lev
Xshare/nethack/Kni-loca.lev
Xshare/nethack/Kni-strt.lev
Xshare/nethack/Mon-fila.lev
Xshare/nethack/Mon-filb.lev
Xshare/nethack/Mon-goal.lev
Xshare/nethack/Mon-loca.lev
Xshare/nethack/Mon-strt.lev
Xshare/nethack/Pri-fila.lev
Xshare/nethack/Pri-filb.lev
Xshare/nethack/Pri-goal.lev
Xshare/nethack/Pri-loca.lev
Xshare/nethack/Pri-strt.lev
Xshare/nethack/Ran-fila.lev
Xshare/nethack/Ran-filb.lev
Xshare/nethack/Ran-goal.lev
Xshare/nethack/Ran-loca.lev
Xshare/nethack/Ran-strt.lev
Xshare/nethack/Rog-fila.lev
Xshare/nethack/Rog-filb.lev
Xshare/nethack/Rog-goal.lev
Xshare/nethack/Rog-loca.lev
Xshare/nethack/Rog-strt.lev
Xshare/nethack/Sam-fila.lev
Xshare/nethack/Sam-filb.lev
Xshare/nethack/Sam-goal.lev
Xshare/nethack/Sam-loca.lev
Xshare/nethack/Sam-strt.lev
Xshare/nethack/Tou-fila.lev
Xshare/nethack/Tou-filb.lev
Xshare/nethack/Tou-goal.lev
Xshare/nethack/Tou-loca.lev
Xshare/nethack/Tou-strt.lev
Xshare/nethack/Val-fila.lev
Xshare/nethack/Val-filb.lev
Xshare/nethack/Val-goal.lev
Xshare/nethack/Val-loca.lev
Xshare/nethack/Val-strt.lev
Xshare/nethack/Wiz-fila.lev
Xshare/nethack/Wiz-filb.lev
Xshare/nethack/Wiz-goal.lev
Xshare/nethack/Wiz-loca.lev
Xshare/nethack/Wiz-strt.lev
Xshare/nethack/air.lev
Xshare/nethack/asmodeus.lev
Xshare/nethack/astral.lev
Xshare/nethack/baalz.lev
Xshare/nethack/bigrm-1.lev
Xshare/nethack/bigrm-2.lev
Xshare/nethack/bigrm-3.lev
Xshare/nethack/bigrm-4.lev
Xshare/nethack/bigrm-5.lev
Xshare/nethack/castle.lev
Xshare/nethack/cmdhelp
Xshare/nethack/data
Xshare/nethack/dungeon
Xshare/nethack/earth.lev
Xshare/nethack/fakewiz1.lev
Xshare/nethack/fakewiz2.lev
Xshare/nethack/fire.lev
Xshare/nethack/help
Xshare/nethack/hh
Xshare/nethack/history
Xshare/nethack/juiblex.lev
Xshare/nethack/knox.lev
Xshare/nethack/license
Xshare/nethack/medusa-1.lev
Xshare/nethack/medusa-2.lev
Xshare/nethack/minefill.lev
Xshare/nethack/minend-1.lev
Xshare/nethack/minend-2.lev
Xshare/nethack/minetn-1.lev
Xshare/nethack/minetn-2.lev
Xshare/nethack/opthelp
Xshare/nethack/options
Xshare/nethack/oracle.lev
Xshare/nethack/oracles
Xshare/nethack/orcus.lev
Xshare/nethack/quest.dat
Xshare/nethack/rumors
Xshare/nethack/sanctum.lev
Xshare/nethack/soko1-1.lev
Xshare/nethack/soko1-2.lev
Xshare/nethack/soko2-1.lev
Xshare/nethack/soko2-2.lev
Xshare/nethack/soko3-1.lev
Xshare/nethack/soko3-2.lev
Xshare/nethack/soko4-1.lev
Xshare/nethack/soko4-2.lev
Xshare/nethack/tower1.lev
Xshare/nethack/tower2.lev
Xshare/nethack/tower3.lev
Xshare/nethack/valley.lev
Xshare/nethack/water.lev
Xshare/nethack/wizard1.lev
Xshare/nethack/wizard2.lev
Xshare/nethack/wizard3.lev
Xshare/nethack/wizhelp
X@mode 664
Xshare/nethack/logfile
Xshare/nethack/record
Xshare/nethack/perm
X@dirrm share/nethack
X@dirrm share/doc/nethack
END-of-./pkg/PLIST
echo x - ./pkg/COMMENT
sed 's/^X//' >./pkg/COMMENT << 'END-of-./pkg/COMMENT'
XA dungeon explorin', slashin', hackin' game
END-of-./pkg/COMMENT
echo x - ./pkg/DESCR
sed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR'
XThis is version 3.3.0 of nethack, a clasic hack'n'slash adventure game.
XYou and your faithful feline (or commited canine) are on a quest to retrieve 
Xthe lost Amulet of Yendor.  Good luck!
X
XWWW: http://www.nethack.org/
X
X- David
Xdscheidt@enteract.com
END-of-./pkg/DESCR
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912131519.PAA24626>