Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2000 01:44:35 -0700 (PDT)
From:      Jeremy Chadwick <yoshi@parodius.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21497: nethack-tty ports submission
Message-ID:  <200009230844.e8N8iZl66404@parodius.com>

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

>Number:         21497
>Category:       ports
>Synopsis:       New addition to ports/
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 23 01:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Parodius Networking
>Environment:

	Not applicable.

>Description:

	New addition to the ports collection; nethack-tty/.  This
	port provides a version of nethack3 which is solely made
	for TTY/console users.  All, and I do mean *ALL* of the
	other versions of the nethack port are either outdated, or
	require you to have X installed.  How absurd!  :-)

>How-To-Repeat:

	Not applicable.

>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:
#
#	nethack-tty
#	nethack-tty/files
#	nethack-tty/files/md5
#	nethack-tty/patches
#	nethack-tty/patches/patch-aa
#	nethack-tty/patches/patch-ab
#	nethack-tty/patches/patch-ac
#	nethack-tty/patches/patch-ae
#	nethack-tty/patches/patch-ad
#	nethack-tty/pkg
#	nethack-tty/pkg/COMMENT
#	nethack-tty/pkg/DESCR
#	nethack-tty/pkg/PLIST
#	nethack-tty/Makefile
#
echo c - nethack-tty
mkdir -p nethack-tty > /dev/null 2>&1
echo c - nethack-tty/files
mkdir -p nethack-tty/files > /dev/null 2>&1
echo x - nethack-tty/files/md5
sed 's/^X//' >nethack-tty/files/md5 << 'END-of-nethack-tty/files/md5'
XMD5 (nethack-331.tgz) = d0600ce4698c80e5ad1f917ded1c36d2
END-of-nethack-tty/files/md5
echo c - nethack-tty/patches
mkdir -p nethack-tty/patches > /dev/null 2>&1
echo x - nethack-tty/patches/patch-aa
sed 's/^X//' >nethack-tty/patches/patch-aa << 'END-of-nethack-tty/patches/patch-aa'
X*** include/config.h.orig	Fri Jul 21 18:13:51 2000
X--- include/config.h	Sat Sep 23 01:03:48 2000
X***************
X*** 151,161 ****
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  /* 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  #endif
X  
X  #ifndef COMPRESS
X--- 151,161 ----
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  /* An example of one alternative you might want to use: */
X! #define COMPRESS "/usr/bin/gzip"	/* FSF gzip compression */
X! #define COMPRESS_EXTENSION ".gz"	/* normal gzip extension */
X  #endif
X  
X  #ifndef COMPRESS
X***************
X*** 186,192 ****
X   * otherwise it will be the current directory.
X   */
X  # ifndef HACKDIR
X! #  define HACKDIR "/usr/games/lib/nethackdir"	/* nethack directory */
X  # endif
X  
X  /*
X--- 186,192 ----
X   * otherwise it will be the current directory.
X   */
X  # ifndef HACKDIR
X! #  define HACKDIR "/usr/local/share/nethack"	/* nethack directory */
X  # endif
X  
X  /*
END-of-nethack-tty/patches/patch-aa
echo x - nethack-tty/patches/patch-ab
sed 's/^X//' >nethack-tty/patches/patch-ab << 'END-of-nethack-tty/patches/patch-ab'
X*** include/system.h.orig	Thu Jan  6 11:20:08 2000
X--- include/system.h	Sat Sep 23 01:08:09 2000
X***************
X*** 516,522 ****
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  # endif /* ULTRIX */
X  
X  #ifdef VMS
X--- 516,522 ----
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 time_t FDECL(time, (time_t *));
X  # endif /* ULTRIX */
X  
X  #ifdef VMS
END-of-nethack-tty/patches/patch-ab
echo x - nethack-tty/patches/patch-ac
sed 's/^X//' >nethack-tty/patches/patch-ac << 'END-of-nethack-tty/patches/patch-ac'
X*** include/unixconf.h.orig	Sun Jul 16 18:03:51 2000
X--- include/unixconf.h	Sat Sep 23 01:09:25 2000
X***************
X*** 47,53 ****
X  			 * job control (note that AIX is SYSV otherwise)
X  			 * Also define this for AIX 3.2 */
X  
X! #define TERMINFO	/* uses terminfo rather than termcap */
X  			/* Should be defined for most SYSV, SVR4 (including
X  			 * Solaris 2+), HPUX, and Linux systems.  In
X  			 * particular, it should NOT be defined for the UNIXPC
X--- 47,53 ----
X  			 * job control (note that AIX is SYSV otherwise)
X  			 * Also define this for AIX 3.2 */
X  
X! /* #define TERMINFO */	 /* uses terminfo rather than termcap */
X  			/* Should be defined for most SYSV, SVR4 (including
X  			 * Solaris 2+), HPUX, and Linux systems.  In
X  			 * particular, it should NOT be defined for the UNIXPC
X***************
X*** 143,149 ****
X   * A stat system call is done on the mailbox every MAILCKFREQ moves.
X   */
X  
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
X--- 143,149 ----
X   * A stat system call is done on the mailbox every MAILCKFREQ moves.
X   */
X  
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-nethack-tty/patches/patch-ac
echo x - nethack-tty/patches/patch-ae
sed 's/^X//' >nethack-tty/patches/patch-ae << 'END-of-nethack-tty/patches/patch-ae'
X*** sys/unix/Makefile.doc.orig	Fri Jan 14 12:49:48 2000
X--- sys/unix/Makefile.doc	Sat Sep 23 01:16:22 2000
X***************
X*** 34,40 ****
X  
X  
X  GAME	= nethack
X! MANDIR	= /usr/man/man6
X  MANEXT	= 6
X  
X  # manual installation for most BSD-style systems
X--- 34,40 ----
X  
X  
X  GAME	= nethack
X! MANDIR	= ${PREFIX}/man/man
X  MANEXT	= 6
X  
X  # manual installation for most BSD-style systems
X***************
X*** 51,61 ****
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  
X  # manual creation for distribution
X  DISTRIB = Guidebook.txt nethack.txt lev_comp.txt dgn_comp.txt recover.txt dlb.txt
X--- 51,61 ----
X  # DLBMANCREATE = nroff -man dlb.6 >
X  
X  manpages:
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-nethack-tty/patches/patch-ae
echo x - nethack-tty/patches/patch-ad
sed 's/^X//' >nethack-tty/patches/patch-ad << 'END-of-nethack-tty/patches/patch-ad'
X*** sys/unix/Makefile.top.orig	Mon Jul  3 17:42:05 2000
X--- sys/unix/Makefile.top	Sat Sep 23 01:14:48 2000
X***************
X*** 14,31 ****
X  # MAKE = make
X  
X  # make NetHack
X- PREFIX	 = /usr
X  GAME     = nethack
X  # GAME     = nethack.prg
X  GAMEUID  = games
X! GAMEGRP  = bin
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  EXEPERM  = 0755
X! DIRPERM  = 0755
X  
X  # GAMEDIR also appears in config.h as "HACKDIR".
X  # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR
X--- 14,30 ----
X  # MAKE = make
X  
X  # make NetHack
X  GAME     = nethack
X  # GAME     = nethack.prg
X  GAMEUID  = games
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 = 02755
X! FILEPERM = 0664
X  EXEPERM  = 0755
X! DIRPERM  = 0775
X  
X  # GAMEDIR also appears in config.h as "HACKDIR".
X  # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR
X***************
X*** 35,43 ****
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  VARDIR  = $(GAMEDIR)
X! SHELLDIR = $(PREFIX)/games
X  
X  # per discussion in Install.X11 and Install.Qt
X  VARDATND = 
X--- 34,42 ----
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)/share/$(GAME)
X  VARDIR  = $(GAMEDIR)
X! SHELLDIR = $(PREFIX)/bin
X  
X  # per discussion in Install.X11 and Install.Qt
X  VARDATND = 
END-of-nethack-tty/patches/patch-ad
echo c - nethack-tty/pkg
mkdir -p nethack-tty/pkg > /dev/null 2>&1
echo x - nethack-tty/pkg/COMMENT
sed 's/^X//' >nethack-tty/pkg/COMMENT << 'END-of-nethack-tty/pkg/COMMENT'
XA dungeon explorin', slashin', hackin' game
END-of-nethack-tty/pkg/COMMENT
echo x - nethack-tty/pkg/DESCR
sed 's/^X//' >nethack-tty/pkg/DESCR << 'END-of-nethack-tty/pkg/DESCR'
XThis is version 3.3.1 of nethack, a clasic ASCII-based adventure game.
XYou and your faithful pet are on a quest to retrieve the lost Amulet
Xof Yendor.
X
XWWW: http://www.nethack.org/
X
Xyoshi@parodius.com
END-of-nethack-tty/pkg/DESCR
echo x - nethack-tty/pkg/PLIST
sed 's/^X//' >nethack-tty/pkg/PLIST << 'END-of-nethack-tty/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-nethack-tty/pkg/PLIST
echo x - nethack-tty/Makefile
sed 's/^X//' >nethack-tty/Makefile << 'END-of-nethack-tty/Makefile'
X# New ports collection makefile for:	nethack
X# Date created:		23 September 2000
X# Whom:			Jeremy Chadwick <yoshi@parodius.com>
X#
X
XPORTNAME=	nethack
XPORTVERSION=	3.3.1
XCATEGORIES=	games
XDISTFILES=	nethack-331.tgz
XMASTER_SITES=	ftp://ftp.nethack.org/pub/nethack/nh331/src/ \
X		${MASTER_SITE_GNU}
XMASTER_SITE_SUBDIR=	nethack
X
XMAINTAINER=	yoshi@parodius.com
X
XUSE_GMAKE=	yes
XMAN6=		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-nethack-tty/Makefile
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?200009230844.e8N8iZl66404>