diff options
author | garbled <garbled> | 1998-09-14 20:47:35 +0000 |
---|---|---|
committer | garbled <garbled> | 1998-09-14 20:47:35 +0000 |
commit | aae62c8419b08b095800e7eebef534c84c027af8 (patch) | |
tree | dd4118d77c77ffcaa626f8b31f2b83e4a74ba458 /games/xbill/patches | |
parent | 73048940e6c5a801bb6c3953894a1b8488366ebc (diff) | |
download | pkgsrc-aae62c8419b08b095800e7eebef534c84c027af8.tar.gz |
use /var/games for scorefiles.. woo hoo.
Diffstat (limited to 'games/xbill/patches')
-rw-r--r-- | games/xbill/patches/patch-aa | 30 | ||||
-rw-r--r-- | games/xbill/patches/patch-ab | 16 |
2 files changed, 38 insertions, 8 deletions
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 <X11/xpm.h> -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() { |