diff options
author | wiz <wiz> | 2001-03-19 20:00:06 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-03-19 20:00:06 +0000 |
commit | 6b0eaab75ba6d29c4726134d656419ae008159e3 (patch) | |
tree | da3748061ae63bb238124d4655e2fcded38e3380 /games/golddig/patches | |
parent | a6f3b5e21464bad7f520e365c80c10960688d5f4 (diff) | |
download | pkgsrc-6b0eaab75ba6d29c4726134d656419ae008159e3.tar.gz |
Update to 3.0; based on 3.0beta version by the author and color patches
by Chuck Cranor, and some cleanup by me: now with color-support and
8 new levels.
Diffstat (limited to 'games/golddig/patches')
-rw-r--r-- | games/golddig/patches/patch-aa | 55 | ||||
-rw-r--r-- | games/golddig/patches/patch-ab | 21 |
2 files changed, 0 insertions, 76 deletions
diff --git a/games/golddig/patches/patch-aa b/games/golddig/patches/patch-aa deleted file mode 100644 index 7f7895b13ea..00000000000 --- a/games/golddig/patches/patch-aa +++ /dev/null @@ -1,55 +0,0 @@ -$NetBSD: patch-aa,v 1.5 1998/09/14 06:54:00 garbled Exp $ ---- Makefile.orig Tue Feb 8 21:11:37 1994 -+++ Makefile Sun Sep 13 23:44:23 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 - # Directory where the library for this game will be stored --LIB = /usr/local/games/lib/${GAME} -+LIB = $(PREFIX)/share/${GAME} - # Directory where manual pages are kept - MANEXT = 6 --MAN = /usr/local/man/man${MANEXT} -+MAN = $(PREFIX)/man/man${MANEXT} - # Font used to display score - SCOREFONT = -adobe-times-bold-r-normal--18-180-75-75-p-99-iso8859-1 - # Height of SCOREFONT -@@ -28,25 +28,26 @@ - # 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 - #CFLAGS = -g - #LDFLAGS = -L /usr/X11/lib -lbsd -s --LDFLAGS = -L /usr/X11/lib -s -+LDFLAGS = -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib - - all: ${GAME} ${EDITOR} - - install: all -- -mkdir ${LIB} -- cp ${GAME} ${EDITOR} ${BIN} -+ -mkdir -p ${LIB} -+ install -s -o bin -g games -m 2755 ${GAME} ${BIN} -+ install -s -o bin -g games -m 2755 ${EDITOR} ${BIN} - # The next line sets up the level files so that anyone can edit all of - # the levels. Remove this line to have better security. -- chmod 4755 ${BIN}/${EDITOR} -- touch ${LIB}/scores -+ cat /dev/null >>/var/games/golddig.scores -+ chown bin:games /var/games/golddig.scores -+ chmod 664 /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 -- cp goldlev* default ${LIB} -- cp golddig.p ${MAN}/golddig.${MANEXT} -+ 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 deleted file mode 100644 index 4f98b931372..00000000000 --- a/games/golddig/patches/patch-ab +++ /dev/null @@ -1,21 +0,0 @@ -$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); |