summaryrefslogtreecommitdiff
path: root/games/xkobo/patches/patch-aa
blob: 134ac42406cac8662ff2f5abb30dfdbcf755c347 (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
$NetBSD: patch-aa,v 1.4 2001/10/18 19:12:40 abs Exp $

--- Imakefile.orig	Fri Jan 10 02:29:36 1997
+++ Imakefile
@@ -6,7 +6,7 @@
 SHIPS       = 5
 
 /*  RECORDS  */
-HSCORE_DIR  = /usr/local/games/xkobo-scores
+HSCORE_DIR  = $(LIBDIR)/xkobo-scores
 
 /*  C++ COMPILER  */
 /*  CXX         = g++  */
@@ -69,15 +69,15 @@
 
 #ifdef SECURE_SCOREFILES
 install::
-	if [ -d $(HSCORE_DIR) ]; then chmod 755 $(HSCORE_DIR); \
-	else mkdirhier $(HSCORE_DIR); chmod 755 $(HSCORE_DIR); fi
-	chown $(XKOBO_ADMINISTER) $(BINDIR)/xkobo
-	chown -R $(XKOBO_ADMINISTER) $(HSCORE_DIR)
-	chmod 4755 $(BINDIR)/xkobo
+	if [ -d $(HSCORE_DIR) ]; then chmod 775 $(HSCORE_DIR); \
+	else $(MKDIRHIER) $(HSCORE_DIR); chmod 775 $(HSCORE_DIR); fi
+	chgrp $(XKOBO_ADMINISTER) $(BINDIR)/xkobo
+	chgrp -R $(XKOBO_ADMINISTER) $(HSCORE_DIR)
+	chmod 2755 $(BINDIR)/xkobo
 #else /* SECURE_SCOREFILES */
 install::
 	if [ -d $(HSCORE_DIR) ]; then chmod 777 $(HSCORE_DIR); \
-	else mkdirhier $(HSCORE_DIR); chmod 777 $(HSCORE_DIR); fi
+	else $(MKDIRHIER) $(HSCORE_DIR); chmod 777 $(HSCORE_DIR); fi
 #endif /* SECURE_SCOREFILES */
 
 clean::