From d6bbd43ac967397bd38ddf247fee713fd3c2a530 Mon Sep 17 00:00:00 2001 From: garbled Date: Mon, 14 Sep 1998 20:47:35 +0000 Subject: use /var/games for scorefiles.. woo hoo. --- games/xbill/patches/patch-aa | 30 ++++++++++++++++++++++-------- games/xbill/patches/patch-ab | 16 ++++++++++++++++ games/xbill/pkg/PLIST | 4 +--- 3 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 games/xbill/patches/patch-ab (limited to 'games/xbill') diff --git a/games/xbill/patches/patch-aa b/games/xbill/patches/patch-aa index 59a8fffa88e..cba513dc15a 100644 --- a/games/xbill/patches/patch-aa +++ b/games/xbill/patches/patch-aa @@ -1,27 +1,41 @@ -$NetBSD: patch-aa,v 1.1 1998/08/15 14:19:53 frueauf Exp $ - +$NetBSD: patch-aa,v 1.2 1998/09/14 20:47:35 garbled Exp $ --- Imakefile.orig Thu Jan 23 09:38:35 1997 -+++ Imakefile Mon Aug 10 08:11:01 1998 -@@ -1,2 +1,2 @@ ++++ Imakefile Mon Sep 14 13:20:24 1998 +@@ -1,4 +1,4 @@ -XBILL_DIR = /var/lib/games/xbill/ +XBILL_DIR = $(PREFIX)/share/xbill/ XCOMM XBILL_DIR = $(HOME)/.xbill/ -@@ -12,3 +12,3 @@ + + XCOMM Which widget set? Motif looks slightly better; Athena is free. +@@ -10,7 +10,7 @@ + XCOMM the statement below and insert the correct path. + XCOMM Make sure xpm.h can be referenced as -XPMINC = -I$(HOME)/include +XCOMM XPMINC = -I$(HOME)/include XPMLIB = -lXpm -@@ -21,3 +21,3 @@ + + XCOMM You shouldn't have to change anything below this line. +@@ -19,7 +19,7 @@ + + INCLUDES = -I. $(XPMINC) CXXDEFINES = $(XBILL_DEF) $(DEFS) $(INCS) -CCFLAGS = $(ALLDEFINES) -Wall -g +CCFLAGS = $(ALLDEFINES) -O -@@ -138,3 +138,7 @@ + CXX = g++ $(CCFLAGS) + CCC = $(CXX) +@@ -136,6 +136,12 @@ + + ComplexProgramTarget($(TARGET)) -InstallProgramWithFlags(scores, $(XBILL_DIR), -m 777) +install:: + mkdir -p $(XBILL_DIR) -+ /usr/bin/install -c -m 0664 -o bin -g games scores $(XBILL_DIR) ++ if [ ! -e /var/games/xbill.scores ]; then \ ++ /usr/bin/install -c -m 0664 -o bin -g games scores /var/games/xbill.scores ; \ ++ fi + /usr/bin/install -c -s -m 2755 -o bin -g games xbill $(PREFIX)/bin + InstallMultiple ($(XPMS), $(XBILL_DIR)pixmaps) + InstallMultiple ($(XBMS), $(XBILL_DIR)bitmaps) diff --git a/games/xbill/patches/patch-ab b/games/xbill/patches/patch-ab new file mode 100644 index 00000000000..2dcd19757f2 --- /dev/null +++ b/games/xbill/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1 1998/09/14 20:47:35 garbled Exp $ +--- Scorelist.cc.orig Mon Sep 14 13:13:16 1998 ++++ Scorelist.cc Mon Sep 14 13:14:21 1998 +@@ -1,9 +1,9 @@ + #include "objects.h" + + FILE *Scorelist::open_file(char *mode) { +- char file[255]; +- sprintf (file, "%sscores", XBILL_HOME); +- return fopen (file, mode); ++/* char file[255]; ++ sprintf (file, "%sscores", XBILL_HOME);*/ ++ return fopen ("/var/games/xbill.scores", mode); + } + + void Scorelist::read() { diff --git a/games/xbill/pkg/PLIST b/games/xbill/pkg/PLIST index 3e5e9cd48a0..4a6b40e1dbc 100644 --- a/games/xbill/pkg/PLIST +++ b/games/xbill/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1 1998/08/15 14:19:53 frueauf Exp $ +@comment $NetBSD: PLIST,v 1.2 1998/09/14 20:47:35 garbled Exp $ bin/xbill man/man6/xbill.6 share/xbill/pixmaps/about.xpm @@ -62,8 +62,6 @@ share/xbill/bitmaps/os2.xbm share/xbill/bitmaps/redhat.xbm share/xbill/bitmaps/sgi.xbm share/xbill/bitmaps/sun.xbm -share/xbill/scores -@unexec rm -f %D/share/xbill/scores @dirrm share/xbill/pixmaps @dirrm share/xbill/bitmaps @dirrm share/xbill -- cgit v1.2.3