openbsd-ports/games/nethack/patches/patch-sys_unix_Makefile_top
2001-03-23 16:11:10 +00:00

57 lines
1.7 KiB
Plaintext

$OpenBSD: patch-sys_unix_Makefile_top,v 1.2 2001/03/23 16:11:11 espie Exp $
--- sys/unix/Makefile.top.orig Tue Jul 4 02:42:05 2000
+++ sys/unix/Makefile.top Fri Mar 23 03:09:00 2001
@@ -13,19 +13,19 @@
# execute things like 'data' and 'rumors')
# MAKE = make
+include ${NETHACKCONFIG}
+
# make NetHack
-PREFIX = /usr
GAME = nethack
-# GAME = nethack.prg
-GAMEUID = games
-GAMEGRP = bin
+GAMEUID = 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".
# VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR
@@ -35,12 +35,13 @@ DIRPERM = 0755
# 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
+REALGAMEDIR = $(PREFIX)/lib/$(GAME)dir
+GAMEDIR = $(DESTDIR)${REALGAMEDIR}
VARDIR = $(GAMEDIR)
-SHELLDIR = $(PREFIX)/games
+SHELLDIR = ${DESTDIR}$(PREFIX)/bin
# per discussion in Install.X11 and Install.Qt
-VARDATND =
+# VARDATND =
# VARDATND = x11tiles pet_mark.xbm
# VARDATND = x11tiles pet_mark.xbm rip.xpm
# for Atari/Gem
@@ -167,7 +168,7 @@ dofiles:
$(MAKE) dofiles-$${target-nodlb}
cp src/$(GAME) $(GAMEDIR)
-rm -f $(SHELLDIR)/$(GAME)
- sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \
+ sed -e 's;/usr/games/lib/nethackdir;$(REALGAMEDIR);' \
-e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
< sys/unix/nethack.sh \
> $(SHELLDIR)/$(GAME)