diff options
author | cjs <cjs> | 1998-03-28 19:28:32 +0000 |
---|---|---|
committer | cjs <cjs> | 1998-03-28 19:28:32 +0000 |
commit | 7ddb26197ceed045581b30fecf370db938275b4b (patch) | |
tree | d74b944270a91aae14f068cbc0c1d50cc1f04f81 /games/xkobo/patches | |
parent | 4dc61c0ee7e48c5e09915e352dafbbb0e944392e (diff) | |
download | pkgsrc-7ddb26197ceed045581b30fecf370db938275b4b.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-aa | 26 |
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:: |