1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/games/nethack3/files/patch-ae
Steve Price aaa10906ce Update to version 3.3.0.
PR:		15469
Submitted by:	David Scheidt <dscheidt@enteract.com>
2000-01-24 05:40:46 +00:00

48 lines
1.3 KiB
Plaintext

--- ./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