summaryrefslogtreecommitdiff
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
parent8dfc763b050b6918e135b0473ae62c5c960f8aaa (diff)
downloadpkgsrc-742117047daaa61a792630f701bfa30e02e69da0.tar.gz
Install setgid games for scorefile access. Fix bugs in `make install.'
-rw-r--r--games/xkobo/patches/patch-aa26
-rw-r--r--games/xkobo/pkg/PLIST4
2 files changed, 26 insertions, 4 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::
diff --git a/games/xkobo/pkg/PLIST b/games/xkobo/pkg/PLIST
index c31ae2e034b..f84f73d3f65 100644
--- a/games/xkobo/pkg/PLIST
+++ b/games/xkobo/pkg/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 1997/12/30 03:45:09 hubertf Exp $
+@comment $NetBSD: PLIST,v 1.3 1998/03/28 19:28:32 cjs Exp $
bin/xkobo
man/cat1/xkobo.0
-@exec mkdir %D/lib/X11/xkobo-scores && chmod 777 %D/lib/X11/xkobo-scores
+@exec mkdir %D/lib/X11/xkobo-scores && chmod 775 %D/lib/X11/xkobo-scores
@unexec rm -r %D/lib/X11/xkobo-scores