summaryrefslogtreecommitdiff
path: root/games/xkobo/patches
diff options
context:
space:
mode:
authorcjs <cjs@pkgsrc.org>1998-03-28 19:28:32 +0000
committercjs <cjs@pkgsrc.org>1998-03-28 19:28:32 +0000
commit742117047daaa61a792630f701bfa30e02e69da0 (patch)
treed74b944270a91aae14f068cbc0c1d50cc1f04f81 /games/xkobo/patches
parent8dfc763b050b6918e135b0473ae62c5c960f8aaa (diff)
downloadpkgsrc-742117047daaa61a792630f701bfa30e02e69da0.tar.gz
Install setgid games for scorefile access. Fix bugs in `make install.'
Diffstat (limited to 'games/xkobo/patches')
-rw-r--r--games/xkobo/patches/patch-aa26
1 files changed, 24 insertions, 2 deletions
diff --git a/games/xkobo/patches/patch-aa b/games/xkobo/patches/patch-aa
index 621b23d399c..a6f80b99408 100644
--- a/games/xkobo/patches/patch-aa
+++ b/games/xkobo/patches/patch-aa
@@ -1,5 +1,5 @@
---- Imakefile.orig Fri Jan 10 03:29:36 1997
-+++ Imakefile Wed Nov 12 10:55:46 1997
+--- Imakefile.orig Thu Jan 9 18:29:36 1997
++++ Imakefile Sat Mar 28 11:11:19 1998
@@ -6,7 +6,7 @@
SHIPS = 5
@@ -9,3 +9,25 @@
/* 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::