Newer
Older
minerva / Ports / nethack / patches / 0004-Set-the-install-path-correctly.patch
@minerva minerva on 13 Jul 1 KB Initial commit
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Thu, 15 Apr 2021 15:43:18 +0200
Subject: [PATCH] Set the install path correctly

---
 sys/unix/Makefile.top | 4 ++--
 sys/unix/nethack.sh   | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/unix/Makefile.top b/sys/unix/Makefile.top
index f0ee25d..1dc6e9c 100644
--- a/sys/unix/Makefile.top
+++ b/sys/unix/Makefile.top
@@ -223,9 +223,9 @@ dofiles:
 		chmod $(EXEPERM) $(SHELLDIR)/$(GAME); fi
 
 dofiles-dlb: check-dlb
-	( cd dat ; cp nhdat $(DATNODLB) $(INSTDIR) )
+	( cd dat ; cp nhdat $(DATNODLB) $(VARDIR) )
 # set up their permissions
-	-( cd $(INSTDIR) ; $(CHOWN) $(GAMEUID) nhdat $(DATNODLB) ; \
+	-( cd $(VARDIR) ; $(CHOWN) $(GAMEUID) nhdat $(DATNODLB) ; \
 			$(CHGRP) $(GAMEGRP) nhdat $(DATNODLB) ; \
 			chmod $(FILEPERM) nhdat $(DATNODLB) )
 
diff --git a/sys/unix/nethack.sh b/sys/unix/nethack.sh
index 2c2b62c..70857b6 100755
--- a/sys/unix/nethack.sh
+++ b/sys/unix/nethack.sh
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/bin/bash
 # NetHack 3.6  nethack.sh	$NHDT-Date: 1552425075 2019/03/12 21:11:15 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.20 $
 # Copyright (c) 2015 by Kenneth Lorber, Kensington, Maryland
 # NetHack may be freely redistributed.  See license for details.
 
-HACKDIR=/usr/games/lib/nethackdir
+HACKDIR=/var/games/nethack/
 export HACKDIR
-HACK=$HACKDIR/nethack
+HACK=/usr/local/lib/nethack/nethack
 
 # Since Nethack.ad is installed in HACKDIR, add it to XUSERFILESEARCHPATH
 case "x$XUSERFILESEARCHPATH" in