mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:47:46 +00:00
Ports: Update nethack's patches to use git patches
This commit is contained in:
parent
b62503a142
commit
59156d0f0e
7 changed files with 355 additions and 249 deletions
|
@ -0,0 +1,48 @@
|
|||
From c8dc69d845ea82c85222882e62af76a11d71695f Mon Sep 17 00:00:00 2001
|
||||
From: Gunnar Beutner <gbeutner@serenityos.org>
|
||||
Date: Thu, 15 Apr 2021 15:43:18 +0200
|
||||
Subject: [PATCH 4/5] 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
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue