summaryrefslogtreecommitdiff
path: root/games/golddig
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-09-13 22:13:08 +0000
committergarbled <garbled@pkgsrc.org>1998-09-13 22:13:08 +0000
commit7b367e46dcd39165a9402b872801096445f5b185 (patch)
tree7a1b9060af11d7f7a0f4c326022c2d6b87168146 /games/golddig
parent537f478d1ae56bd9496e8aa8e225f4b3616ad1d7 (diff)
downloadpkgsrc-7b367e46dcd39165a9402b872801096445f5b185.tar.gz
/var/games for scorefiles
Diffstat (limited to 'games/golddig')
-rw-r--r--games/golddig/patches/patch-aa22
-rw-r--r--games/golddig/patches/patch-ab21
-rw-r--r--games/golddig/pkg/PLIST3
3 files changed, 37 insertions, 9 deletions
diff --git a/games/golddig/patches/patch-aa b/games/golddig/patches/patch-aa
index da315166d99..1687991769c 100644
--- a/games/golddig/patches/patch-aa
+++ b/games/golddig/patches/patch-aa
@@ -1,8 +1,9 @@
-$NetBSD: patch-aa,v 1.3 1998/08/27 14:06:09 garbled Exp $
-
+$NetBSD: patch-aa,v 1.4 1998/09/13 22:13:09 garbled Exp $
--- Makefile.orig Tue Feb 8 21:11:37 1994
-+++ Makefile Sun Jul 26 07:39:28 1998
-@@ -12,8 +12,8 @@
++++ Makefile Sun Sep 13 14:59:44 1998
+@@ -10,12 +10,12 @@
+ EDITOR = makelev
+ # Directory where games binaries are stored
#BIN = /usr/public/${HOSTTYPE}/games
-BIN = /usr/local/games
+BIN = $(PREFIX)/bin
@@ -14,7 +15,11 @@ $NetBSD: patch-aa,v 1.3 1998/08/27 14:06:09 garbled Exp $
-MAN = /usr/local/man/man${MANEXT}
+MAN = $(PREFIX)/man/man${MANEXT}
# Font used to display score
-@@ -30,6 +30,6 @@
+ SCOREFONT = -adobe-times-bold-r-normal--18-180-75-75-p-99-iso8859-1
+ # Height of SCOREFONT
+@@ -28,25 +28,24 @@
+ # Some common choices for CFLAGS.
+ #CFLAGS = -O2
#CFLAGS = -O
-CFLAGS = -O2 -W -Wreturn-type -Wunused -finline-functions -D__USE_BSD_SIGNAL
+CFLAGS = -O2 -W -Wreturn-type -Wunused -finline-functions -D__USE_BSD_SIGNAL -I$(X11BASE)/include
@@ -23,7 +28,8 @@ $NetBSD: patch-aa,v 1.3 1998/08/27 14:06:09 garbled Exp $
-LDFLAGS = -L /usr/X11/lib -s
+LDFLAGS = -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib
-@@ -38,13 +38,12 @@
+ all: ${GAME} ${EDITOR}
+
install: all
- -mkdir ${LIB}
- cp ${GAME} ${EDITOR} ${BIN}
@@ -34,7 +40,7 @@ $NetBSD: patch-aa,v 1.3 1998/08/27 14:06:09 garbled Exp $
# the levels. Remove this line to have better security.
- chmod 4755 ${BIN}/${EDITOR}
- touch ${LIB}/scores
-+ install -o bin -g games -m 0664 /dev/null ${LIB}/scores
++ install -o bin -g games -m 0664 /dev/null /var/games/golddig.scores
# Allow anyone to modify the high score file. An alternative is to
# change the mode bits of ${GAME} to be 4755.
- chmod 666 ${LIB}/scores
@@ -43,3 +49,5 @@ $NetBSD: patch-aa,v 1.3 1998/08/27 14:06:09 garbled Exp $
+ install -o bin -g bin -m 0644 goldlev* default ${LIB}
+ install -o root -g wheel -m 0644 golddig.p ${MAN}/golddig.${MANEXT}
+ update: all
+ cp ${GAME} ${EDITOR} ${BIN}
diff --git a/games/golddig/patches/patch-ab b/games/golddig/patches/patch-ab
new file mode 100644
index 00000000000..4f98b931372
--- /dev/null
+++ b/games/golddig/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 1998/09/13 22:13:09 garbled Exp $
+--- scores.c.orig Sun Sep 13 14:57:47 1998
++++ scores.c Sun Sep 13 14:58:45 1998
+@@ -31,7 +31,7 @@
+ int numscore,cur,numgame;
+
+ /* Generate name of high score file */
+- sprintf(buf,"%s/scores",LIB);
++ sprintf(buf,"/var/games/golddig.scores");
+ /* Open high score file */
+ sfile = fopen(buf,"r");
+ /* Set default values for number of games and high scores */
+@@ -98,7 +98,7 @@
+ }
+
+ /* Save new high score list to score file */
+- sprintf(buf,"%s/scores",LIB);
++ sprintf(buf,"/var/games/golddig.scores");
+ sfile = fopen(buf,"w");
+ if(sfile == NULL) {
+ perror(buf);
diff --git a/games/golddig/pkg/PLIST b/games/golddig/pkg/PLIST
index d2ce5b0e8a2..028f6749d22 100644
--- a/games/golddig/pkg/PLIST
+++ b/games/golddig/pkg/PLIST
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 1998/07/26 22:13:17 frueauf Exp $
+@comment $NetBSD: PLIST,v 1.2 1998/09/13 22:13:08 garbled Exp $
bin/golddig
bin/makelev
man/man6/golddig.6
-share/golddig/scores
share/golddig/goldlev001
share/golddig/goldlev002
share/golddig/goldlev003