summaryrefslogtreecommitdiff
path: root/games/xsoldier
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-09-15 00:05:41 +0000
committergarbled <garbled@pkgsrc.org>1998-09-15 00:05:41 +0000
commitc1a7c29b991868c6055ca13e06bcfbfcdf710b72 (patch)
tree80128a1dcea4602075339929f00a8477fd3c1c81 /games/xsoldier
parent031d9f40a968349a789eedc60c51b70c247dcbd9 (diff)
downloadpkgsrc-c1a7c29b991868c6055ca13e06bcfbfcdf710b72.tar.gz
Woo-Hoo.. last one.. /var/games scorefile handling
Diffstat (limited to 'games/xsoldier')
-rw-r--r--games/xsoldier/patches/patch-aa35
-rw-r--r--games/xsoldier/pkg/PLIST4
2 files changed, 27 insertions, 12 deletions
diff --git a/games/xsoldier/patches/patch-aa b/games/xsoldier/patches/patch-aa
index be1443a24fb..dbe5e32b367 100644
--- a/games/xsoldier/patches/patch-aa
+++ b/games/xsoldier/patches/patch-aa
@@ -1,22 +1,39 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:46 agc Exp $
-
+$NetBSD: patch-aa,v 1.3 1998/09/15 00:05:41 garbled Exp $
--- Imakefile.orig Fri Feb 28 08:48:57 1997
-+++ Imakefile Sat Aug 1 01:40:03 1998
-@@ -13,5 +13,5 @@
++++ Imakefile Mon Sep 14 16:52:46 1998
+@@ -11,12 +11,12 @@
+
+ /* インストールディレクトリ */
/* 書き込み権限が無いとインストール出来ません.=> 遊べない.(^^; */
-PIXMAPDIR = /usr/local/games/lib/xsoldier
-SCOREDIR = /usr/local/games/lib/xsoldier
-BINDIR = /usr/local/games
+PIXMAPDIR = $(X11BASE)/share/xsoldier
-+SCOREDIR = $(X11BASE)/share/xsoldier
++SCOREDIR = /var/games/
+BINDIR = $(X11BASE)/bin
-@@ -97,3 +97,3 @@
- else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi
+ /* スコアファイル名.SCOREDIR 以下に置かれます. */
+-SCOREFILE = .scorefile
++SCOREFILE = xsoldier
+
+
+ /* ----------------------------------------------------------------------- */
+@@ -93,9 +93,9 @@
+ @echo "install update . done"
+
+ install.score::
+- @if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \
+- else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi
- $(INSTALL) -c -m 600 scorefile.txt $(SCOREDIR)/$(SCOREFILE)
-+ $(INSTALL) -c -g games -o bin -m 664 scorefile.txt $(SCOREDIR)/$(SCOREFILE)
++ @if [ ! -e $(SCOREDIR)/$(SCOREFILE) ]; then \
++ $(INSTALL) -c -g games -o bin -m 664 scorefile.txt $(SCOREDIR)/$(SCOREFILE) ; \
++ fi
@echo "install score . done"
-@@ -111,3 +111,3 @@
+
+ install.pixmap::
+@@ -109,5 +109,5 @@
+ install.bin::
+ @if [ -d $(BINDIR) ]; then set +x; \
else (set -x; $(MKDIRHIER) $(BINDIR)); fi
- $(INSTALL) -c -m 4755 $(PROGRAM) $(BINDIR)/$(PROGRAM)
+ $(INSTALL) -c -o bin -g games -m 2755 $(PROGRAM) $(BINDIR)/$(PROGRAM)
diff --git a/games/xsoldier/pkg/PLIST b/games/xsoldier/pkg/PLIST
index d683272e162..b2cd0a0adcf 100644
--- a/games/xsoldier/pkg/PLIST
+++ b/games/xsoldier/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 1998/08/01 14:58:18 frueauf Exp $
+@comment $NetBSD: PLIST,v 1.2 1998/09/15 00:05:41 garbled Exp $
bin/xsoldier
share/xsoldier/Boss1.xpm
share/xsoldier/Boss2.xpm
@@ -29,6 +29,4 @@ share/xsoldier/PlayerShot3.xpm
share/xsoldier/Star1.xpm
share/xsoldier/Star2.xpm
share/xsoldier/Title.xpm
-share/xsoldier/.scorefile
-@unexec rm -f %D/share/xsoldier/.scorefile
@dirrm share/xsoldier