summaryrefslogtreecommitdiff
path: root/games/tanked
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1998-08-01 13:33:11 +0000
committerfrueauf <frueauf@pkgsrc.org>1998-08-01 13:33:11 +0000
commitd6ec03177e8b1ac9df9772d4468a03169295ab69 (patch)
tree7db1018e4bfc87b342f8d5c752392cb1d995723f /games/tanked
parent33ffed6757d16a58d1aea435c96a99fa279bb3a9 (diff)
downloadpkgsrc-d6ec03177e8b1ac9df9772d4468a03169295ab69.tar.gz
Initial addition of tanked-0.90, a multiplayer internet tank game for X11.
Closes pr 5883 by Tim Rightnour.
Diffstat (limited to 'games/tanked')
-rw-r--r--games/tanked/Makefile20
-rw-r--r--games/tanked/files/md51
-rw-r--r--games/tanked/patches/patch-aa15
-rw-r--r--games/tanked/patches/patch-ab19
-rw-r--r--games/tanked/patches/patch-ac9
-rw-r--r--games/tanked/patches/patch-ad12
-rw-r--r--games/tanked/patches/patch-ae25
-rw-r--r--games/tanked/patches/patch-af7
-rw-r--r--games/tanked/pkg/COMMENT1
-rw-r--r--games/tanked/pkg/DESCR15
-rw-r--r--games/tanked/pkg/PLIST22
11 files changed, 146 insertions, 0 deletions
diff --git a/games/tanked/Makefile b/games/tanked/Makefile
new file mode 100644
index 00000000000..39e9720a42a
--- /dev/null
+++ b/games/tanked/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 1998/08/01 13:33:11 frueauf Exp $
+#
+
+DISTNAME= tanked-0.90
+CATEGORIES= games x11
+MASTER_SITES= http://ogresoft.dyn.ml.org/
+
+MAINTAINER= root@garbled.net
+
+DEPENDS+= xpm-3.4k:../../graphics/xpm
+
+USE_X11= yes
+
+post-patch:
+ @${TOUCH} ${WRKSRC}/client/tanked.man
+ @${MV} ${WRKSRC}/server/maps.list ${WRKSRC}/server/maps.list.bak
+ @${SED} -e 's@XXX@${X11BASE}/share/tanked/@' \
+ < ${WRKSRC}/server/maps.list.bak > ${WRKSRC}/server/maps.list
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/tanked/files/md5 b/games/tanked/files/md5
new file mode 100644
index 00000000000..00ed26fb375
--- /dev/null
+++ b/games/tanked/files/md5
@@ -0,0 +1 @@
+MD5 (tanked-0.90.tar.gz) = 6e2a6f0f2d8c1d5e9e50e50de9763429
diff --git a/games/tanked/patches/patch-aa b/games/tanked/patches/patch-aa
new file mode 100644
index 00000000000..e1f2c13127e
--- /dev/null
+++ b/games/tanked/patches/patch-aa
@@ -0,0 +1,15 @@
+--- /dev/null Fri Jul 31 02:54:09 1998
++++ Makefile Fri Jul 31 04:12:51 1998
+@@ -0,0 +1,12 @@
++all:
++ cd server && make
++ cd client && xmkmf -a && make
++install:
++ /usr/bin/install -o bin -g games -m 0755 client/tanked $(X11BASE)/bin
++ /usr/bin/install -o bin -g games -m 2755 server/tankedserv $(X11BASE)/bin
++ /usr/bin/install -d -o bin -g games -m 0775 $(X11BASE)/share/tanked/logs
++ /usr/bin/install -d -o bin -g games -m 0775 $(X11BASE)/share/tanked/maps
++ /usr/bin/install -o bin -g bin -m 0644 server/maps/* $(X11BASE)/share/tanked/maps
++ /usr/bin/install -o bin -g bin -m 0644 server/maps.list $(X11BASE)/share/tanked
++ /usr/bin/install -o bin -g bin -m 0644 server/.motd $(X11BASE)/share/tanked/motd
++ /usr/bin/install -o bin -g bin -m 0644 server/.players $(X11BASE)/share/tanked/players
diff --git a/games/tanked/patches/patch-ab b/games/tanked/patches/patch-ab
new file mode 100644
index 00000000000..b85f494bf64
--- /dev/null
+++ b/games/tanked/patches/patch-ab
@@ -0,0 +1,19 @@
+--- server/maps.list.orig Fri Jul 31 03:32:10 1998
++++ server/maps.list Fri Jul 31 03:32:29 1998
+@@ -1,8 +1,8 @@
+ 7
+-maps/map1.map
+-maps/bloodbath.map
+-maps/tiny.map
+-maps/blackforest.map
+-maps/fortress.map
+-maps/arena.map
+-maps/archipelago.map
++XXXmaps/map1.map
++XXXmaps/bloodbath.map
++XXXmaps/tiny.map
++XXXmaps/blackforest.map
++XXXmaps/fortress.map
++XXXmaps/arena.map
++XXXmaps/archipelago.map
+
diff --git a/games/tanked/patches/patch-ac b/games/tanked/patches/patch-ac
new file mode 100644
index 00000000000..604e74bf49c
--- /dev/null
+++ b/games/tanked/patches/patch-ac
@@ -0,0 +1,9 @@
+--- server/Makefile.orig Fri Jul 31 03:38:53 1998
++++ server/Makefile Fri Jul 31 03:39:33 1998
+@@ -7,3 +7,5 @@
+
+-EXTRAFLAGS = -g -Wall -DLIFE -DLIFEFREQ=300
++EXTRAFLAGS = -g -Wall -DLIFE -DLIFEFREQ=300 -DTANKDIR=\"$(TANKDIR)\"
++
++TANKDIR= $(X11BASE)/share/tanked
+
diff --git a/games/tanked/patches/patch-ad b/games/tanked/patches/patch-ad
new file mode 100644
index 00000000000..d69ca6d5ad4
--- /dev/null
+++ b/games/tanked/patches/patch-ad
@@ -0,0 +1,12 @@
+--- server/motd.c.orig Sat Apr 11 18:34:29 1998
++++ server/motd.c Fri Jul 31 03:47:57 1998
+@@ -31,3 +31,3 @@
+
+- if ((mf = fopen("./.motd", "r")) == 0) {
++ if ((mf = fopen(TANKDIR "/motd", "r")) == 0) {
+ printf("No motd file, I'm bummed :-(\n");
+@@ -47,3 +47,3 @@
+ /* read into motd array */
+- mf = fopen("./.motd", "r");
++ mf = fopen(TANKDIR "/motd", "r");
+ for (i = 0; i < GLO_motdLines; i++) {
diff --git a/games/tanked/patches/patch-ae b/games/tanked/patches/patch-ae
new file mode 100644
index 00000000000..60706b75509
--- /dev/null
+++ b/games/tanked/patches/patch-ae
@@ -0,0 +1,25 @@
+--- server/database.c.orig Fri Jul 31 03:40:24 1998
++++ server/database.c Fri Jul 31 03:42:28 1998
+@@ -33,3 +33,3 @@
+
+- if((plf = fopen(".players", "r")) != NULL) {
++ if((plf = fopen(TANKDIR "/players", "r")) != NULL) {
+ while(!feof(plf)) {
+@@ -52,3 +52,3 @@
+ &new_pdb->pickups, &new_pdb->deliveries) != 4) {
+- fprintf(stderr, "Bad line in .players: %s\n", line);
++ fprintf(stderr, "Bad line in " TANKDIR" /players: %s\n", line);
+ } else {
+@@ -63,3 +63,3 @@
+ } else {
+- fprintf(stderr, "failed to open .players\n");
++ fprintf(stderr, "failed to open " TANKDIR "/players\n");
+ }
+@@ -110,5 +110,5 @@
+
+- rename(".players", ".players.bak");
++ rename(TANKDIR "/players", TANKDIR "/players.bak");
+
+- if((plf = fopen(".players", "w")) != NULL) {
++ if((plf = fopen(TANKDIR "/players", "w")) != NULL) {
+ for(pdb = first_pdb; pdb; pdb = pdb->next) {
diff --git a/games/tanked/patches/patch-af b/games/tanked/patches/patch-af
new file mode 100644
index 00000000000..c2c1aa3813e
--- /dev/null
+++ b/games/tanked/patches/patch-af
@@ -0,0 +1,7 @@
+--- server/log.c.orig Fri Jul 31 04:01:21 1998
++++ server/log.c Fri Jul 31 04:01:50 1998
+@@ -28,3 +28,3 @@
+ if (!ml) {
+- ml = fopen("logs/message.log", "a");
++ ml = fopen(TANKDIR "/logs/message.log", "a");
+ if (!ml) {
diff --git a/games/tanked/pkg/COMMENT b/games/tanked/pkg/COMMENT
new file mode 100644
index 00000000000..ece26d5c136
--- /dev/null
+++ b/games/tanked/pkg/COMMENT
@@ -0,0 +1 @@
+a multiplayer internet tank game for X11.
diff --git a/games/tanked/pkg/DESCR b/games/tanked/pkg/DESCR
new file mode 100644
index 00000000000..6f70f67db4e
--- /dev/null
+++ b/games/tanked/pkg/DESCR
@@ -0,0 +1,15 @@
+Get Tanked uses a client-server model, which means once you have a client
+compiled, you need a server to play on. The server source is included, so
+you can compile your own. Or you can play on ogesoft.dyn.ml.org, which is
+run by the author of Get Tanked (that's me!). With v0.90,
+ogresoft.dyn.ml.org is the default server in the client, so if you start
+it with no arguments, you will be connected to it automatically.
+
+Once you are connected, you will see an MOTD window with server
+information and basic instructions. From there, click either the red or
+blue box at the top to select a team. This will put you in a tank at the
+HQ for that team. The object is capture all of the other team's flags by
+running over them to pick them up, and then bring them back to your HQ.
+You have mines and shells for weapons, and the ability to build roads,
+walls, and bridges. You may hide in wooded areas, but you move much faster
+over roads.
diff --git a/games/tanked/pkg/PLIST b/games/tanked/pkg/PLIST
new file mode 100644
index 00000000000..b326e975ee7
--- /dev/null
+++ b/games/tanked/pkg/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/01 13:33:13 frueauf Exp $
+bin/tanked
+bin/tankedserv
+share/tanked/maps/README
+share/tanked/maps/archipelago.map
+share/tanked/maps/arena.map
+share/tanked/maps/blackforest.map
+share/tanked/maps/bloodbath.map
+share/tanked/maps/fortress.map
+share/tanked/maps/map-tools.el
+share/tanked/maps/map1.map
+share/tanked/maps/map2
+share/tanked/maps/new.map
+share/tanked/maps/tiny.map
+share/tanked/maps.list
+share/tanked/motd
+share/tanked/players
+@unexec rm -f share/tanked/logs/*
+@unexec rm -f %D/share/tanked/motd %D/share/tanked/players
+@dirrm share/tanked/maps
+@dirrm share/tanked/logs
+@dirrm share/tanked