summaryrefslogtreecommitdiff
path: root/games/tetrinetx/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-02-14 17:03:54 +0000
committerrillig <rillig@pkgsrc.org>2006-02-14 17:03:54 +0000
commit04c133194e0a1b839ef2e1aeea240fb1a0952a71 (patch)
treea45747dfa742d51e14a02e95acec1e4e0e6c0be9 /games/tetrinetx/patches
parentfdaf88784eade80623d336a70348775f0d22d461 (diff)
downloadpkgsrc-04c133194e0a1b839ef2e1aeea240fb1a0952a71.tar.gz
Imported tetrinetx from pkgsrc-wip.
TetriNET is an addictive 6 player tetr*s game What this program does is set up a TetriNET server that ordinary TetriNET clients can connect to. It attempts to fix some of the "glaring" holes in the TetriNET protocol that I discovered, and which I'm sure some people use as cheats, but I now see why it is nearly impossible to fix ;), without a modification to the client. I've kept the server as close to the same as the original TetriNET server, but I've added some extras that I've often wanted, such as the "/kick" and "/ban" keywords. Please note this server in no way encompasses the whole game. The clients are the ones that do most of the work, with the server just passing suitable packets between each client, and of course adding some of its own. Author: Brendan Grieve (brg@cheerful.com) Packaged by David Ferlier.
Diffstat (limited to 'games/tetrinetx/patches')
-rw-r--r--games/tetrinetx/patches/patch-aa32
-rw-r--r--games/tetrinetx/patches/patch-ab37
2 files changed, 69 insertions, 0 deletions
diff --git a/games/tetrinetx/patches/patch-aa b/games/tetrinetx/patches/patch-aa
new file mode 100644
index 00000000000..83a19c33c8e
--- /dev/null
+++ b/games/tetrinetx/patches/patch-aa
@@ -0,0 +1,32 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/02/14 17:03:54 rillig Exp $
+--- src/config.h.orig 2001-04-24 04:31:29.000000000 +0200
++++ src/config.h 2004-01-23 02:55:51.745142400 +0100
+@@ -7,16 +7,16 @@
+ */
+
+ /* Location of the various external files */
+-#define FILE_MOTD "game.motd" /* Message of the Day File */
+-#define FILE_PMOTD "game.pmotd" /* Playback motd */
+-#define FILE_CONF "game.conf" /* Game configuration File */
+-#define FILE_WINLIST "game.winlist" /* Winlist storage file */
+-#define FILE_WINLIST2 "game.winlist2" /* Winlist storage file */
+-#define FILE_WINLIST3 "game.winlist3" /* Winlist storage file */
++#define FILE_MOTD SHAREDIR "/game.motd" /* Message of the Day File */
++#define FILE_PMOTD SHAREDIR "/game.pmotd" /* Playback motd */
++#define FILE_CONF SHAREDIR "/game.conf" /* Game configuration File */
++#define FILE_WINLIST SHAREDIR "/game.winlist" /* Winlist storage file */
++#define FILE_WINLIST2 SHAREDIR "/game.winlist2" /* Winlist storage file */
++#define FILE_WINLIST3 SHAREDIR "/game.winlist3" /* Winlist storage file */
+
+-#define FILE_BAN "game.ban" /* List of Banned IP's */
+-#define FILE_BAN_COMPROMISE "game.ban.compromise" /* List of Banned IP's */
+-#define FILE_ALLOW "game.allow" /* List of allow IP's */
+-#define FILE_LOG "game.log" /* Logfile */
+-#define FILE_PID "game.pid" /* Default PID */
+-#define FILE_SECURE "game.secure" /* Security file */
++#define FILE_BAN SHAREDIR "/game.ban" /* List of Banned IP's */
++#define FILE_BAN_COMPROMISE SHAREDIR "/game.ban.compromise" /* List of Banned IP's */
++#define FILE_ALLOW SHAREDIR "/game.allow" /* List of allow IP's */
++#define FILE_LOG SHAREDIR "/game.log" /* Logfile */
++#define FILE_PID PREFIX "/tetrinetx.pid" /* Default PID */
++#define FILE_SECURE SHAREDIR "/game.secure" /* Security file */
diff --git a/games/tetrinetx/patches/patch-ab b/games/tetrinetx/patches/patch-ab
new file mode 100644
index 00000000000..9cf958e4eb2
--- /dev/null
+++ b/games/tetrinetx/patches/patch-ab
@@ -0,0 +1,37 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/02/14 17:03:54 rillig Exp $
+
+--- src/main.c.orig Tue Jul 9 05:53:49 2002
++++ src/main.c Sun Jan 26 18:12:54 2003
+@@ -109,12 +109,12 @@
+ }
+
+
+-/* writepid() - Writes the current pid to game.pidfile */
++/* writepid() - Writes the current pid to FILE_PID */
+ void writepid(void)
+ {
+ FILE *file_out;
+
+- file_out = fopen(game.pidfile,"w");
++ file_out = fopen(FILE_PID,"w");
+ if (file_out == NULL)
+ {
+ // lvprintf(0,"ERROR: Could not write to PID file %s\n", game.pidfile);
+@@ -129,7 +129,7 @@
+ /* delpid() - Delete the pid file */
+ void delpid(void)
+ {
+- remove(game.pidfile);
++ remove(FILE_PID);
+ }
+
+ /* int numallplayers(chan) - Returns ANY player that is connected in a channel */
+@@ -4695,7 +4695,7 @@
+ {
+ struct sigaction sv;
+
+- lvprintf(0,"\nTetriNET for Linux V%s.%s\n---------------------------------\n", TETVERSION, SERVERBUILD);
++ lvprintf(0,"\nTetriNET for NetBSD V%s.%s\n---------------------------------\n", TETVERSION, SERVERBUILD);
+
+
+ gnet=NULL;