summaryrefslogtreecommitdiff
path: root/games/cbzone
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-09-13 20:39:44 +0000
committergarbled <garbled@pkgsrc.org>1998-09-13 20:39:44 +0000
commitb04e1761305e9625a81031f0b8f9ced49d4e1c71 (patch)
tree1ee41ab3b7f12c23ed8689943010daad6cea8d01 /games/cbzone
parentffa5ec0eff6fd60c11dfbd9c23bd336f786822fd (diff)
downloadpkgsrc-b04e1761305e9625a81031f0b8f9ced49d4e1c71.tar.gz
Make this pkg use /var/games for highscores
Diffstat (limited to 'games/cbzone')
-rw-r--r--games/cbzone/patches/patch-aa49
-rw-r--r--games/cbzone/patches/patch-ad12
-rw-r--r--games/cbzone/pkg/PLIST3
3 files changed, 53 insertions, 11 deletions
diff --git a/games/cbzone/patches/patch-aa b/games/cbzone/patches/patch-aa
index 8c4dc5a1d86..92f739fc723 100644
--- a/games/cbzone/patches/patch-aa
+++ b/games/cbzone/patches/patch-aa
@@ -1,8 +1,9 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:38 agc Exp $
-
+$NetBSD: patch-aa,v 1.3 1998/09/13 20:39:44 garbled Exp $
--- Imakefile.orig Sun Aug 1 22:45:08 1993
-+++ Imakefile Sun Jul 26 05:36:23 1998
-@@ -34,5 +34,5 @@
++++ Imakefile Sun Sep 13 13:25:43 1998
+@@ -32,9 +32,9 @@
+
+ ETCS = cbzone.help \
cbzone.motd \
- cbzone.script \
- cbzone.highscores \
@@ -11,30 +12,60 @@ $NetBSD: patch-aa,v 1.2 1998/08/07 10:40:38 agc Exp $
+ cbzone.highscores \
+ Cbzone.ad
-@@ -55,3 +55,3 @@
+ MISC = Imakefile \
+ Makefile.orig \
+@@ -53,15 +53,15 @@
+
+ # this is where the shellscript, and executable will go
# TANK_BINDIR = $(BINDIR)
-TANK_BINDIR= /usr/local/games
+TANK_BINDIR= $(PREFIX)/bin
-@@ -59,3 +59,3 @@
+ # this is where the scorefile and helpfile will go
# TANK_LIBDIR = $(LIBDIR)
-TANK_LIBDIR = /usr/local/games/lib/cbzone
+TANK_LIBDIR = $(PREFIX)/share/cbzone
-@@ -63,3 +63,3 @@
+ # this is where the app-defaults file will go
# TANK_APPDIR = $(XAPPLOADDIR)
-TANK_APPDIR = $(TANK_LIBDIR)
+TANK_APPDIR = $(XAPPLOADDIR)
-@@ -74,3 +74,3 @@
+ # this is where the sound files go
+ TANK_SOUNDDIR = $(TANK_LIBDIR)/sounds
+@@ -72,20 +72,20 @@
+
+ AllTarget(cbzone.script)
AllTarget(cbzone.exec)
-
+
MakeDirectories(install,$(TANK_BINDIR) $(TANK_LIBDIR) $(TANK_APPDIR) $(TANK_SOUNDDIR))
-@@ -99,4 +99,4 @@
+ InstallProgram(cbzone.exec,$(TANK_BINDIR))
+ InstallNamedProg(cbzone.script,cbzone,$(TANK_BINDIR))
+ InstallNonExec(cbzone.help,$(TANK_LIBDIR))
+ InstallNonExec(cbzone.motd,$(TANK_LIBDIR))
+-InstallNonExec(cbzone.highscores,$(TANK_LIBDIR))
++InstallNonExec(cbzone.highscores,/var/games)
+ InstallNamedNonExec(Cbzone.ad,Cbzone,$(TANK_APPDIR))
+ InstallMultiple($(SOUNDS),$(TANK_SOUNDDIR))
+
+ install::
+- @if chgrp games $(TANK_BINDIR)/cbzone.exec $(TANK_LIBDIR)/cbzone.highscores 2>/dev/null ; then \
++ @if chgrp games $(TANK_BINDIR)/cbzone.exec /var/games/cbzone.highscores 2>/dev/null ; then \
+ (set -x ; chmod 2755 $(TANK_BINDIR)/cbzone.exec ) ; \
+- (set -x ; chmod 664 $(TANK_LIBDIR)/cbzone.highscores ) ; \
++ (set -x ; chmod 664 /var/games/cbzone.highscores ) ; \
+ else \
+ echo 'Failed: chgrp games for "cbzone.exec", "cbzone.highscores".' ; \
+ echo ' highscore file exists but could not be protected.' ; \
+@@ -97,8 +97,8 @@
+ chmod 664 $@
+
cbzone.exec: $(OBJS) $(DEPLIBS)
- RemoveTargetProgram($@)
- $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
+ RemoveTargetProgram($@)
+ $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
+ cbzone.script : cbzone.script.src
+ rm -f $@
diff --git a/games/cbzone/patches/patch-ad b/games/cbzone/patches/patch-ad
new file mode 100644
index 00000000000..85d289a8bf0
--- /dev/null
+++ b/games/cbzone/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1 1998/09/13 20:39:44 garbled Exp $
+--- c_scores.c.orig Sun Sep 13 13:18:36 1998
++++ c_scores.c Sun Sep 13 13:19:04 1998
+@@ -124,7 +124,7 @@
+ y = 100;
+ ydelta = 15;
+
+- sprintf(buf,"%s/%s",TANKDIR,SCOREFILE);
++ sprintf(buf,"/var/games/%s",SCOREFILE);
+ sfile = fopen(buf,"r"); /* just check if it is there */
+
+ if (sfile == NULL) {
diff --git a/games/cbzone/pkg/PLIST b/games/cbzone/pkg/PLIST
index 030efb46a25..0cc439b7f59 100644
--- a/games/cbzone/pkg/PLIST
+++ b/games/cbzone/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 1998/07/27 00:11:30 tron Exp $
+@comment $NetBSD: PLIST,v 1.2 1998/09/13 20:39:45 garbled Exp $
lib/X11/app-defaults/Cbzone
share/cbzone/sounds/enemy_seen.au
share/cbzone/sounds/game_begin.au
@@ -10,7 +10,6 @@ share/cbzone/sounds/user_died.au
share/cbzone/sounds/user_shoots.au
share/cbzone/cbzone.help
share/cbzone/cbzone.motd
-share/cbzone/cbzone.highscores
bin/cbzone.exec
bin/cbzone
@dirrm share/cbzone/sounds