summaryrefslogtreecommitdiff
blob: 5ce4ce4d2b4d5f13e9d081fd4fc6e9e98b349e3d (plain)
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
48
49
50
51
52
53
54
55
56
57
58
--- umoria/unix/Makefile.orig	2003-12-31 14:52:58.583335976 -0500
+++ umoria/unix/Makefile	2003-12-31 14:51:54.621059720 -0500
@@ -3,6 +3,7 @@
 # LIBDIR must be the same directory defined in config.h
 # OWNER is who you want the game to be chown to.
 # GROUP is who you wnat the game to be chgrp to.
+STATEDIR = /var/lib
 BINDIR = /home/zariski/grabiner/moria
 LIBDIR = /home/zariski/grabiner/moria/files
 OWNER = grabiner
@@ -65,12 +66,11 @@
 	chmod 4711 $(BINDIR)/moria
 	chmod 711 $(LIBDIR)
 	(cd files; cp $(LIBFILES) $(LIBDIR))
-	(cd $(LIBDIR); chmod 444 $(LIBFILES))
-	(cd $(LIBDIR); touch scores; chmod 644 scores)
+	(cd $(STATEDIR); touch moriascores; chmod 664 moriascores; chown $(OWNER) moriascores; chgrp $(GROUP) moriascores)
 	chown $(OWNER) $(BINDIR)/moria
 	chgrp $(GROUP) $(BINDIR)/moria
-	(cd $(LIBDIR); chown $(OWNER) $(LIBFILES) scores)
-	(cd $(LIBDIR); chgrp $(GROUP) $(LIBFILES) scores)
+	(cd $(LIBDIR); chown $(OWNER) $(LIBFILES))
+	(cd $(LIBDIR); chgrp $(GROUP) $(LIBFILES))
 # If you are short on disk space, or aren't interested in debugging moria.
 #	strip $(BINDIR)/moria
 
--- umoria/source/config.h.orig	2003-12-31 15:19:48.893531616 -0500
+++ umoria/source/config.h	2003-12-31 15:21:09.584264760 -0500
@@ -199,17 +199,18 @@
 #else
 
 /* This must be unix; change MORIA_LIB as appropriate.  */
-#define MORIA_SAV	"moria.save"
-#define MORIA_LIB(xxx)  "/home/math/grabiner/moria/files/xxx"
-#define MORIA_HOU	MORIA_LIB(hours)
-#define MORIA_MOR	MORIA_LIB(news)
-#define MORIA_TOP	MORIA_LIB(scores)
-#define MORIA_HELP	MORIA_LIB(roglcmds.hlp)
-#define MORIA_ORIG_HELP	MORIA_LIB(origcmds.hlp)
-#define MORIA_WIZ_HELP	MORIA_LIB(rwizcmds.hlp)
-#define MORIA_OWIZ_HELP	MORIA_LIB(owizcmds.hlp)
-#define MORIA_WELCOME	MORIA_LIB(welcome.hlp)
-#define MORIA_VER	MORIA_LIB(version.hlp)
+#define MORIA_SAV	".moria.save"
+#define MORIA_LIB(xxx)  "GENTOO_DATADIR/" xxx
+#define MORIA_STATE(xxx) "GENTOO_STATEDIR/" xxx
+#define MORIA_HOU	MORIA_LIB("hours")
+#define MORIA_MOR	MORIA_LIB("news")
+#define MORIA_TOP	MORIA_STATE("moriascores")
+#define MORIA_HELP	MORIA_LIB("roglcmds.hlp")
+#define MORIA_ORIG_HELP	MORIA_LIB("origcmds.hlp")
+#define MORIA_WIZ_HELP	MORIA_LIB("rwizcmds.hlp")
+#define MORIA_OWIZ_HELP	MORIA_LIB("owizcmds.hlp")
+#define MORIA_WELCOME	MORIA_LIB("welcome.hlp")
+#define MORIA_VER	MORIA_LIB("version.hlp")
 
 #endif
 #endif