summaryrefslogtreecommitdiff
path: root/games/tetrinetx/files
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/files
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/files')
-rw-r--r--games/tetrinetx/files/tetrinetx15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/tetrinetx/files/tetrinetx b/games/tetrinetx/files/tetrinetx
new file mode 100644
index 00000000000..9f0c70bf2fb
--- /dev/null
+++ b/games/tetrinetx/files/tetrinetx
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# PROVIDE: tetrinetx
+# REQUIRE: DAEMON LOGIN network
+
+. /etc/rc.subr
+
+name="tetrinetx"
+rcvar=$name
+command="/usr/pkg/bin/tetrix"
+pidfile="/var/run/${name}.pid"
+required_files="/usr/pkg/share/tetrinetx/game.conf"
+
+load_rc_config $name
+run_rc_command "$1"