2000-04-16 17:18:59 -04:00
|
|
|
$OpenBSD: patch-sys_unix_Makefile_top,v 1.1 2000/04/16 21:19:07 espie Exp $
|
|
|
|
--- sys/unix/Makefile.top.orig Fri Apr 14 15:10:48 2000
|
|
|
|
+++ sys/unix/Makefile.top Fri Apr 14 15:10:49 2000
|
|
|
|
@@ -13,17 +13,19 @@
|
1998-07-28 21:22:23 -04:00
|
|
|
# execute things like 'data' and 'rumors')
|
|
|
|
# MAKE = make
|
|
|
|
|
|
|
|
-# make NetHack
|
|
|
|
-GAME = nethack
|
2000-04-16 17:18:59 -04:00
|
|
|
-GAMEUID = games
|
|
|
|
-GAMEGRP = bin
|
|
|
|
+include ${NETHACKCONFIG}
|
|
|
|
+
|
1998-07-28 21:22:23 -04:00
|
|
|
+# this is slash
|
|
|
|
+GAME = slash
|
2000-04-16 17:18:59 -04:00
|
|
|
+GAMEUID = bin
|
1998-07-28 21:22:23 -04:00
|
|
|
+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".
|
|
|
|
#
|
2000-04-16 17:18:59 -04:00
|
|
|
@@ -32,11 +34,12 @@ DIRPERM = 0755
|
1998-07-28 21:22:23 -04:00
|
|
|
# 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 = /usr/games/lib/$(GAME)dir
|
|
|
|
-SHELLDIR = /usr/games
|
2000-04-16 17:18:59 -04:00
|
|
|
+REALGAMEDIR = ${PREFIX}/lib/$(GAME)dir
|
|
|
|
+GAMEDIR = ${DESTDIR}${REALGAMEDIR}
|
|
|
|
+SHELLDIR = ${DESTDIR}${PREFIX}/bin
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
# per discussion in Install.X11
|
|
|
|
-VARDATND =
|
2000-04-16 17:18:59 -04:00
|
|
|
+# VARDATND =
|
1998-07-28 21:22:23 -04:00
|
|
|
# VARDATND = x11tiles pet_mark.xbm
|
2000-04-16 17:18:59 -04:00
|
|
|
# VARDATND = x11tiles pet_mark.xbm rip.xpm
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-04-16 17:18:59 -04:00
|
|
|
@@ -63,7 +66,7 @@ DATHELP = help hh cmdhelp history opthel
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
SPEC_LEVS = *.lev
|
|
|
|
|
|
|
|
-SPEC_LEVS = asmodeus.lev baalz.lev beholder.lev bigrm-?.lev castle.lev \
|
2000-04-16 17:18:59 -04:00
|
|
|
+SPEC_LEVS = asmodeus.lev baalz.lev beholder.lev bigrm-?.lev blkmar.lev castle.lev \
|
1998-07-28 21:22:23 -04:00
|
|
|
cav2fill.lev cavefill.lev demogorg.lev dispater.lev dragons.lev \
|
|
|
|
fakewiz?.lev geryon.lev guild.lev juiblex.lev knox.lev kobold-?.lev \
|
|
|
|
lich.lev mall-?.lev mall.lev medusa-?.lev mine_end.lev minefill.lev \
|
2000-04-16 17:18:59 -04:00
|
|
|
@@ -143,7 +146,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)
|