File nethack-config.patch of Package nethack

Index: NetHack-3.6.7/include/unixconf.h
===================================================================
--- NetHack-3.6.7.orig/include/unixconf.h
+++ NetHack-3.6.7/include/unixconf.h
@@ -194,7 +194,8 @@
 #endif
 #endif
 #else
-#define DEF_MAILREADER "/bin/mail"
+/* SUSE mail reader is /usr/bin/mail, not /bin/mail */
+#define DEF_MAILREADER "/usr/bin/mail"
 #endif
 #endif
 
Index: NetHack-3.6.7/sys/unix/Makefile.doc
===================================================================
--- NetHack-3.6.7.orig/sys/unix/Makefile.doc
+++ NetHack-3.6.7/sys/unix/Makefile.doc
@@ -12,8 +12,8 @@ NHSROOT=..
 MAKEDEFS = ../util/makedefs
 
 # Which version do we want to build?  (XXX These are not used anywhere.)
-GUIDEBOOK = Guidebook		# regular ASCII file
-#GUIDEBOOK = Guidebook.ps	# PostScript file
+#GUIDEBOOK = Guidebook		# regular ASCII file
+GUIDEBOOK = Guidebook.ps	# PostScript file
 #GUIDEBOOK = Guidebook.dvi	# TeX device-independent file
 
 # Some versions of col need -x to keep them from converting spaces to tabs;
Index: NetHack-3.6.7/sys/unix/nethack.sh
===================================================================
--- NetHack-3.6.7.orig/sys/unix/nethack.sh
+++ NetHack-3.6.7/sys/unix/nethack.sh
@@ -3,9 +3,9 @@
 # Copyright (c) 2015 by Kenneth Lorber, Kensington, Maryland
 # NetHack may be freely redistributed.  See license for details.
 
-HACKDIR=/usr/games/lib/nethackdir
+HACKDIR=/usr/share/games/nethack
 export HACKDIR
-HACK=$HACKDIR/nethack
+HACK=/usr/lib/nethack/nethack
 
 # Since Nethack.ad is installed in HACKDIR, add it to XUSERFILESEARCHPATH
 case "x$XUSERFILESEARCHPATH" in
Index: NetHack-3.6.7/doc/nethack.6
===================================================================
--- NetHack-3.6.7.orig/doc/nethack.6
+++ NetHack-3.6.7/doc/nethack.6
@@ -219,7 +219,7 @@ option, which must be the first argument
 supplies a directory which is to serve as the playground.
 It overrides the value from NETHACKDIR, HACKDIR,
 or the directory specified by the game administrator during compilation
-(usually /usr/games/lib/nethackdir).
+(usually /usr/share/games/nethack).
 This option is usually only useful to the game administrator.
 The playground must contain several auxiliary files such as help files,
 the list of top scorers, and a subdirectory
@@ -375,7 +375,7 @@ MAIL	Mailbox file.
 .br
 MAILREADER	Replacement for default reader
 .br
-	(probably /bin/mail or /usr/ucb/mail).
+	(probably /usr/bin/mail).
 .br
 NETHACKDIR or HACKDIR	Playground.
 .br
Index: NetHack-3.6.7/sys/unix/sysconf
===================================================================
--- NetHack-3.6.7.orig/sys/unix/sysconf
+++ NetHack-3.6.7/sys/unix/sysconf
@@ -13,7 +13,7 @@
 # Which users can use debug mode (aka wizard mode; accessed via '-D' command
 # line flag or OPTIONS=playmode:debug in the runtime options config file).
 # A value of * allows anyone to enter debugging mode.
-WIZARDS=root games
+WIZARDS=root
 
 # Which users can use explore mode (aka discover mode; accessed via '-X'
 # command line flag or OPTIONS=playmode:explore in runtime options file or
@@ -48,7 +48,7 @@ GENERICUSERS=play player game games neth
 # but number of different players is not limited.
 # Setting this to any other value constructs the lock files with
 # letter and "lock" (eg. alock, block, ...)
-MAXPLAYERS=10
+#MAXPLAYERS=10
 
 # If not null, added to string "To get local support, " in the support
 # information help.
Index: NetHack-3.6.7/sys/unix/hints/linux
===================================================================
--- NetHack-3.6.7.orig/sys/unix/hints/linux
+++ NetHack-3.6.7/sys/unix/hints/linux
@@ -6,15 +6,14 @@
 #-PRE
 # Linux hints file
 # This hints file provides a single-user tty build for Linux, specifically
-# for Ubuntu dapper.
+# for openSUSE Tumbleweed.
 
 
-#PREFIX=/usr
-PREFIX=$(wildcard ~)/nh/install
-HACKDIR=$(PREFIX)/games/lib/$(GAME)dir
-SHELLDIR = $(PREFIX)/games
+PREFIX=
+HACKDIR=$(PREFIX)/usr/share/games/$(GAME)
+SHELLDIR=$(PREFIX)/usr/games
 INSTDIR=$(HACKDIR)
-VARDIR = $(HACKDIR)
+VARDIR=$(PREFIX)/var/games/$(GAME)
 
 
 
@@ -22,10 +21,11 @@ POSTINSTALL=cp -n sys/unix/sysconf $(INS
 
 CFLAGS=-g -O -I../include -DNOTPARMDECL
 CFLAGS+=-DDLB
-CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
+CFLAGS+=-DCOMPRESS=\"/usr/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
 CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
 CFLAGS+=-DTIMED_DELAY
 CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
+CFLAGS+=-DVAR_PLAYGROUND=\"$(VARDIR)\"
 CFLAGS+=-DDUMPLOG
 CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE
 CFLAGS+=-DCURSES_GRAPHICS
@@ -64,8 +64,8 @@ WINLIB = $(WINTTYLIB) $(WINCURSESLIB)
 
 WINTTYLIB=-lncurses -ltinfo
 
-CHOWN=true
-CHGRP=true
+CHOWN=chown games
+CHGRP=chgrp games
 
 VARDIRPERM = 0755
 VARFILEPERM = 0600
openSUSE Build Service is sponsored by