File nethack-config.patch of Package nethack-367

Index: include/unixconf.h
===================================================================
--- include/unixconf.h.orig
+++ 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: sys/unix/Makefile.doc
===================================================================
--- sys/unix/Makefile.doc.orig
+++ 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: sys/unix/nethack.sh
===================================================================
--- sys/unix/nethack.sh.orig
+++ 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: doc/nethack.6
===================================================================
--- doc/nethack.6.orig
+++ 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: sys/unix/hints/opensuse
===================================================================
--- /dev/null
+++ sys/unix/hints/opensuse
@@ -0,0 +1,71 @@
+#
+# NetHack 3.6  linux $NHDT-Date: 1432512814 2015/05/25 00:13:34 $  $NHDT-Branch: master $:$NHDT-Revision: 1.12 $
+# Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
+# NetHack may be freely redistributed.  See license for details.
+#
+#-PRE
+# Linux hints file
+# This hints file provides a single-user tty build for Linux, specifically
+# for openSUSE Tumbleweed.
+
+
+PREFIX=
+HACKDIR=$(PREFIX)/usr/share/games/$(GAME)
+SHELLDIR = $(PREFIX)/usr/games
+INSTDIR=$(HACKDIR)
+VARDIR=$(PREFIX)/var/games/$(GAME)
+
+
+
+POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INSTDIR)/sysconf; $(CHGRP) $(GAMEGRP) $(INSTDIR)/sysconf; chmod $(VARFILEPERM) $(INSTDIR)/sysconf;
+
+CFLAGS=-g -O -I../include -DNOTPARMDECL
+CFLAGS+=-DDLB
+CFLAGS+=-DCOMPRESS=\"/usr/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
+CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
+CFLAGS+=-DTIMED_DELAY
+CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
+CFLAGS+=-DDUMPLOG
+CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE
+CFLAGS+=-DCURSES_GRAPHICS
+#CFLAGS+=-DEXTRA_SANITY_CHECKS
+#CFLAGS+=-DEDIT_GETLIN
+#CFLAGS+=-DSCORE_ON_BOTL
+#CFLAGS+=-DMSGHANDLER
+#CFLAGS+=-DTTY_TILES_ESCCODES
+#detection of clang vs gcc
+CCISCLANG := $(shell echo `$(CC) --version` | grep clang)
+ifneq "$(CCISCLANG)" ""
+# clang-specific follows
+CLANGGTEQ18 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 18)
+ifeq "$(CLANGGTEQ18)" "1"
+# clang-specific starts here
+CFLAGS+=-Wno-deprecated-non-prototype
+endif
+# clang-specific ends here
+else
+# gcc-specific starts here
+CFLAGS+=-Wno-old-style-definition -Wno-unused-result -Wno-format-overflow
+# gcc-specific ends here
+endif  # clang-specific or gcc-specific ends here
+
+LINK=$(CC)
+# Only needed for GLIBC stack trace:
+LFLAGS=-rdynamic
+
+WINSRC = $(WINTTYSRC) $(WINCURSESSRC)
+WINOBJ = $(WINTTYOBJ) $(WINCURSESOBJ)
+WINLIB = $(WINTTYLIB) $(WINCURSESLIB)
+
+# if TTY_TILES_ESCCODES
+#WINSRC += tile.c
+#WINOBJ += tile.o
+
+WINTTYLIB=-lncurses -ltinfo
+
+CHOWN=chown games
+CHGRP=chgrp games
+
+VARDIRPERM = 0755
+VARFILEPERM = 0600
+GAMEPERM = 0755
openSUSE Build Service is sponsored by