summaryrefslogtreecommitdiff
path: root/games/angband/files/patch-aa
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1999-12-02 19:19:03 +0000
committerMatthew Hunt <mph@FreeBSD.org>1999-12-02 19:19:03 +0000
commitac7b5b17c7383ea2135d62e7bb51f83126b629a9 (patch)
tree6c4731f029683bd19dbbb304f0c02720b436b12e /games/angband/files/patch-aa
parentUpdate to 3.11: (diff)
Install angband non-sgid, with the following side effects:
- Two directories are mode 1777; the user is alerted to this during "make install". - High score reporting doesn't work, to avoid having a world-writable file. - It is presumably possible for one user to prevent another from playing by creating bogus savefiles in the mode 1777 directories. Frankly, I'm not going to devote my time to solving game-play DoS attacks. Previously, certain files (lib/data) were generated the first time angband was run. These files are now obtained from my directory on www.freebsd.org and are installed during "make install". Several cleanups also, while I'm here. This port is no longer BROKEN.
Diffstat (limited to 'games/angband/files/patch-aa')
-rw-r--r--games/angband/files/patch-aa20
1 files changed, 5 insertions, 15 deletions
diff --git a/games/angband/files/patch-aa b/games/angband/files/patch-aa
index c3b60cdd303f..3c8cdb8348f6 100644
--- a/games/angband/files/patch-aa
+++ b/games/angband/files/patch-aa
@@ -1,22 +1,12 @@
---- Makefile.orig Mon Feb 9 09:38:23 1998
-+++ Makefile Mon Feb 9 09:38:23 1998
-@@ -0,0 +1,19 @@
+--- Makefile.orig Thu Dec 2 10:13:33 1999
++++ Makefile Thu Dec 2 10:27:53 1999
+@@ -0,0 +1,9 @@
+# My makefile for Angband
-+# Matthew Hunt <mph@pobox.com>
++# Matthew Hunt <mph@FreeBSD.org>
+
-+CFLAGS+=-I/usr/X11R6/include -D"USE_X11" -D"USE_GCU" -DDEFAULT_PATH=\\\"$(PREFIX)/lib/X11/angband\\\"
++CFLAGS+=-I${X11BASE}/include -D"USE_X11" -D"USE_GCU" -DDEFAULT_PATH=\\\"$(PREFIX)/lib/X11/angband\\\"
+
+all: angband
+
+angband:
+ cd src && make "CFLAGS=$(CFLAGS)"
-+
-+install: angband
-+ install -c -o bin -g games -m 2555 angband ${PREFIX}/bin/angband
-+ mkdir -p ${PREFIX}/lib/X11/angband
-+ (cd lib && tar cf - * ) | (cd ${PREFIX}/lib/X11/angband && tar xf - )
-+ /usr/sbin/chown -R bin.games ${PREFIX}/lib/X11/angband
-+ (cd ${PREFIX}/lib/X11/angband && \
-+ /bin/chmod 775 apex bone data edit file help info xtra\
-+ save user )
-+ install -o games -g games -m 664 /dev/null ${PREFIX}/lib/X11/angband/apex/scores.raw