2000-01-24 05:40:46 +00:00
|
|
|
--- ./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
|
1999-03-21 09:13:43 +00:00
|
|
|
|
2000-01-24 05:40:46 +00:00
|
|
|
# make NetHack
|
|
|
|
-PREFIX = /usr
|
|
|
|
GAME = nethack
|
|
|
|
GAMEUID = games
|
|
|
|
-GAMEGRP = bin
|
|
|
|
+GAMEGRP = games
|
1999-03-21 09:13:43 +00:00
|
|
|
|
2000-01-24 05:40:46 +00:00
|
|
|
# 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
|
1999-03-21 09:13:43 +00:00
|
|
|
|
2000-01-24 05:40:46 +00:00
|
|
|
# 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
|