summaryrefslogtreecommitdiff
path: root/games/nethack3-tty/files/patch-ae
blob: 375a28af2ec0caa3e83faa63f2ee0dd1f94bde13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- ./sys/unix/Makefile.top.orig	Sat Dec 11 05:21:05 1999
+++ ./sys/unix/Makefile.top	Mon Dec 13 11:51:27 1999
@@ -14,17 +14,16 @@
 # MAKE = make
 
 # make NetHack
-PREFIX	 = /usr
 GAME     = nethack
 GAMEUID  = games
-GAMEGRP  = bin
+GAMEGRP  = games
 
 # Permissions - some places use setgid instead of setuid, for instance
 # See also the option "SECURE" in include/config.h
-GAMEPERM = 04755
-FILEPERM = 0644
+GAMEPERM = 02755
+FILEPERM = 0664
 EXEPERM  = 0755
-DIRPERM  = 0755
+DIRPERM  = 0775
 
 # GAMEDIR also appears in config.h as "HACKDIR".
 #
@@ -33,8 +32,8 @@
 # therefore there should not be anything in GAMEDIR that you want to keep
 # (if there is, you'll have to do the installation by hand or modify the
 # instructions)
-GAMEDIR  = $(PREFIX)/games/lib/$(GAME)dir
-SHELLDIR = $(PREFIX)/games
+GAMEDIR  = $(PREFIX)/share/$(GAME)
+SHELLDIR = $(PREFIX)/bin
 
 # per discussion in Install.X11 and Install.Qt
 VARDATND = 
@@ -184,9 +183,9 @@
 
 install: $(GAME) $(VARDAT) dungeon spec_levs
 # set up the directories
-	-mkdir $(SHELLDIR)
+	-mkdir -p $(SHELLDIR)
 	-rm -rf $(GAMEDIR)
-	-mkdir $(GAMEDIR) $(GAMEDIR)/save
+	-mkdir -p $(GAMEDIR) $(GAMEDIR)/save
 	-$(CHOWN) $(GAMEUID) $(GAMEDIR) $(GAMEDIR)/save
 	$(CHGRP) $(GAMEGRP) $(GAMEDIR) $(GAMEDIR)/save
 	chmod $(DIRPERM) $(GAMEDIR) $(GAMEDIR)/save