head 1.9; access; symbols pkgsrc-2019Q3:1.8.0.70 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.68 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.66 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.64 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.62 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.60 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.8.0.58 pkgsrc-2018Q1-base:1.8 pkgsrc-2017Q4:1.8.0.56 pkgsrc-2017Q4-base:1.8 pkgsrc-2017Q3:1.8.0.54 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.50 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.48 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.46 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.8.0.44 pkgsrc-2016Q3-base:1.8 pkgsrc-2016Q2:1.8.0.42 pkgsrc-2016Q2-base:1.8 pkgsrc-2016Q1:1.8.0.40 pkgsrc-2016Q1-base:1.8 pkgsrc-2015Q4:1.8.0.38 pkgsrc-2015Q4-base:1.8 pkgsrc-2015Q3:1.8.0.36 pkgsrc-2015Q3-base:1.8 pkgsrc-2015Q2:1.8.0.34 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.32 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.30 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.28 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.26 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.24 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.22 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.20 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.18 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.16 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.14 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.12 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.10 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.8 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.6 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.4 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.8.0.2 pkgsrc-2011Q2-base:1.8 pkgsrc-2011Q1:1.7.0.32 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.30 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.28 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.26 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.24 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.22 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.20 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.18 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.16 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.14 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.12 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.10 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.8 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.6 pkgsrc-2008Q1:1.7.0.4 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.2 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.5.0.32 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.30 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.28 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.26 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.24 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.22 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.20 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.18 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.16 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.14 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.12 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.10 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.8 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.6 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.4 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 netbsd-1-6-1:1.4.0.6 netbsd-1-6-1-base:1.4 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1 netbsd-1-3-PATCH003:1.1; locks; strict; comment @# @; 1.9 date 2019.10.24.11.51.23; author pho; state dead; branches; next 1.8; commitid oPzx28JwVsMd97IB; 1.8 date 2011.06.01.11.20.29; author wiz; state Exp; branches; next 1.7; 1.7 date 2007.10.27.18.26.34; author pooka; state Exp; branches; next 1.6; 1.6 date 2007.10.27.18.07.54; author pooka; state Exp; branches; next 1.5; 1.5 date 2003.09.02.00.30.55; author pooka; state Exp; branches; next 1.4; 1.4 date 2002.03.25.20.32.26; author pooka; state Exp; branches; next 1.3; 1.3 date 2002.03.22.17.26.25; author pooka; state Exp; branches; next 1.2; 1.2 date 99.12.24.22.30.00; author pooka; state Exp; branches; next 1.1; 1.1 date 98.08.27.12.58.52; author garbled; state Exp; branches; next ; desc @@ 1.9 log @Update to NetHack 3.6.2 See release notes for the changes from 3.4.3: * http://nethack.org/v360/release.html * http://nethack.org/v361/release.html * http://nethack.org/v362/release.html IMPORTANT NOTICE: Old 3.4.x save files are *incompatible* with this version (which isn't my fault). Files are now saved in /var/games/nethack360. @ text @$NetBSD: patch-ad,v 1.8 2011/06/01 11:20:29 wiz Exp $ Make configurable. --- sys/unix/nethack.sh.orig 2003-12-07 23:39:13.000000000 +0000 +++ sys/unix/nethack.sh @@@@ -1,9 +1,31 @@@@ #!/bin/sh # SCCS Id: @@(#)nethack.sh 3.4 1990/02/26 -HACKDIR=/usr/games/lib/nethackdir +UILIST="tty x11 qt" +findbin () +{ + for x in $UILIST; do + if [ -x @@PREFIX@@/bin/nethack-$x ]; then + echo $x + return + fi + done +} + +if [ -z "$1" -o -z "${1%%-*}" ]; then + TTY=`findbin` +else + TTY=$1 +fi + +if [ -z "$TTY" ]; then + echo "No UI ($UILIST) found" + exit 1 +fi + +HACKDIR=@@GAMEDIR@@ export HACKDIR -HACK=$HACKDIR/nethack +HACK=@@PREFIX@@/bin/nethack-$TTY MAXNROFPLAYERS=4 # Since Nethack.ad is installed in HACKDIR, add it to XUSERFILESEARCHPATH @ 1.8 log @DESTDIRify nethack. Merge patches and distinfo. Some other improvements. From Rhialto in PR 45010. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.7 2007/10/27 18:26:34 pooka Exp $ @ 1.7 log @Further improve the nethack launch script to autodetect which UIs are installed and run an installed one instead of insisting that nethack-tty must always be installed. nethack-tty is still naturally preferred as the default instead of cheap plastic imitations such as nethack-x11. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 2 --- sys/unix/nethack.sh.orig 2003-12-08 00:39:13.000000000 +0100 +++ sys/unix/nethack.sh 2007-10-27 20:18:37.000000000 +0200 d16 1 a16 1 + if [ -x XXXPREFIXXXX/bin/nethack-$x ]; then d34 1 a34 1 +HACKDIR=XXXPREFIXXXX/share/nethackdir340 d37 1 a37 1 +HACK=XXXPREFIXXXX/bin/nethack-$TTY @ 1.6 log @Recognize options (-x) in the shell script used to start nethack. Makes e.g. "nethack -s user" work correctly. fixes pkg/37186 by Emil Skoeldberg @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.5 2003/09/02 00:30:55 pooka Exp $ d3 3 a5 3 --- sys/unix/nethack.sh.orig 2003-08-30 03:08:04.000000000 +0300 +++ sys/unix/nethack.sh 2003-09-02 02:52:31.000000000 +0300 @@@@ -1,9 +1,15 @@@@ d10 11 d22 1 a22 1 + TTY=tty d27 5 @ 1.5 log @Update to NetHack 3.4.2 This is a bugfix release which fixes over 100 bugs including but not limited to: * Fixed a fatal bug that triggered a panic when your secondary weapon was cursed during bones file creation * Fixed a fatal bug that caused a crash when applying figurine, candle, or bell that gets used up for a complete list, see doc/fixes34.2 Old savegames and bones levels from nethack 3.4.1 (and 3.4.0) should still work, but as usual, caution is advised. @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 +if [ "$1" = "" ]; then @ 1.4 log @Make the name of nethackdir contain version information (eg. now it's called nethackdir340). This is to ease the lives of people who wish to have multiple versions nethack installed at the same time. It is not fully automated, because doing pkgsrc magic will most likely screw things up one funny way or another. And we all know that the most important thing in this world is the nethack scorefile ... Manually bump version to 3.4.0nb1. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 2002/03/22 17:26:25 pooka Exp $ d3 2 a4 2 --- sys/unix/nethack.sh.orig Thu Mar 21 01:43:54 2002 +++ sys/unix/nethack.sh Fri Mar 22 17:39:00 2002 d22 1 a22 1 # see if we can find the full path name of PAGER, so help files work properly @ 1.3 log @Upgrade nethack packages to NetHack 3.4.0 Highlights of the new release: * numerous bugfixes * stamina affects ability to throw heavy things * objects merge in containers * several small refinements to race/role separation * more feedback about skill advancement from #enhance command * "autodig" option * option for starting without a pet + many more, read doc/fixes34.0 Old savegames naturally don't work, so make sure you finish old ones before upgrading the package. Also fixes the rest of pkg/15717 by Bernd Ernesti. Solution was the same as what Thomas Klausner used to fix angband (ie. simply duplicate the patches) @ text @d1 1 a1 1 $NetBSD$ d16 1 a16 1 +HACKDIR=XXXPREFIXXXX/share/nethackdir @ 1.2 log @Update the Nethack package to 3.3.0. nethack-qt will be non-functional until we get qt2.0 or greater into pkgsrc. @ text @d3 2 a4 2 --- sys/unix/nethack.sh.orig Sat Dec 11 07:21:05 1999 +++ sys/unix/nethack.sh Fri Dec 17 14:14:54 1999 d7 1 a7 1 # SCCS Id: @@(#)nethack.sh 3.3 90/02/26 d11 1 a11 1 + TTY=tty d13 1 a13 1 + TTY=$1 @ 1.1 log @nethack-lib pkg: data files for Nethack @ text @d2 6 a7 3 --- 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 @@@@ a9 1 -HACK=$HACKDIR/nethack d11 1 a11 1 + TTY=tty d13 1 a13 1 + TTY=$1 d17 2 a18 1 +export HACKDIR d21 2 @