aboutsummaryrefslogtreecommitdiff
path: root/games/tetrinet-x
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-05-01 02:19:08 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-05-01 02:19:08 +0000
commitea5efaac8e7c4e0e4bd80673d044f791aba24d20 (patch)
tree94462557e1af5bd43cebc4420f9e5bd64ad09d44 /games/tetrinet-x
parent059e7c47855eb0968e658aa367f389ad459e4b4d (diff)
downloadports-ea5efaac8e7c4e0e4bd80673d044f791aba24d20.tar.gz
ports-ea5efaac8e7c4e0e4bd80673d044f791aba24d20.zip
Notes
Diffstat (limited to 'games/tetrinet-x')
-rw-r--r--games/tetrinet-x/Makefile44
-rw-r--r--games/tetrinet-x/distinfo1
-rw-r--r--games/tetrinet-x/files/tetrinet-x.sh4
-rw-r--r--games/tetrinet-x/pkg-comment1
-rw-r--r--games/tetrinet-x/pkg-descr19
-rw-r--r--games/tetrinet-x/pkg-plist8
6 files changed, 77 insertions, 0 deletions
diff --git a/games/tetrinet-x/Makefile b/games/tetrinet-x/Makefile
new file mode 100644
index 000000000000..ba73e535a5d4
--- /dev/null
+++ b/games/tetrinet-x/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: tetrinet-x-1.13.16
+# Version required: 1.13.16
+# Date created: 11 Apr 1999
+# Whom: gmarco@scotty.masternet.it
+#
+# $Id$
+#
+
+DISTNAME= tetrinet-x.1.13.16
+CATEGORIES= games
+MASTER_SITES= http://www.giovannelli.it/~gmarco/files/ \
+ ftp://ftp.dementia.nu/tetrinet/servers/tetrix/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= freebsd@scotty.masternet.it
+
+INSTALLDIR= ${PREFIX}/tetrinet-x
+
+do-build:
+ (cd ${WRKDIR}/tetrinetx-1.13.16/src && \
+ gcc -O2 -fno-strength-reduce -Wall main.c -o ../bin/tetrix.freebsd)
+ (cd ${WRKDIR}/tetrinetx-1.13.16/contrib/query/src && \
+ gcc -O2 -fno-strength-reduce -Wall query.c -o ../../../bin/server-query)
+
+do-install:
+ ${MKDIR} ${INSTALLDIR}
+ ${INSTALL_PROGRAM} ${WRKDIR}/tetrinetx-1.13.16/bin/tetrix.freebsd ${INSTALLDIR}
+ ${INSTALL_PROGRAM} ${WRKDIR}/tetrinetx-1.13.16/bin/server-query ${INSTALLDIR}
+ ${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.conf ${INSTALLDIR}
+ ${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.log ${INSTALLDIR}
+ ${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.secure ${INSTALLDIR}
+ ${INSTALL_DATA} -m 644 ${WRKDIR}/tetrinetx-1.13.16/bin/game.winlist ${INSTALLDIR}
+
+post-install:
+ @${ECHO} ""
+ @${ECHO} "Installing ${PREFIX}/etc/rc.d/tetrinet-x.sh startup file."
+ @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/tetrinet-x.sh ${PREFIX}/etc/rc.d
+ @${ECHO} ""
+ @${ECHO} "Please modify configuration files located in ${INSTALLDIR}"
+ @${ECHO} "before attempting to run Tetrinet server"
+ @${ECHO} ""
+ @${ECHO} ""
+
+.include <bsd.port.mk>
diff --git a/games/tetrinet-x/distinfo b/games/tetrinet-x/distinfo
new file mode 100644
index 000000000000..11378a4f2e4a
--- /dev/null
+++ b/games/tetrinet-x/distinfo
@@ -0,0 +1 @@
+MD5 (tetrinet-x.1.13.16.tgz) = 23bc3740b24af02e29272c75063934da
diff --git a/games/tetrinet-x/files/tetrinet-x.sh b/games/tetrinet-x/files/tetrinet-x.sh
new file mode 100644
index 000000000000..53089b6bc879
--- /dev/null
+++ b/games/tetrinet-x/files/tetrinet-x.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -x /usr/local/tetrinet-x/tetrix.freebsd ] && cd /usr/local/tetrinet-x && \
+tetrix.freebsd > /dev/null && echo -n ' tetrinet-x'
+
diff --git a/games/tetrinet-x/pkg-comment b/games/tetrinet-x/pkg-comment
new file mode 100644
index 000000000000..d49c0982be0b
--- /dev/null
+++ b/games/tetrinet-x/pkg-comment
@@ -0,0 +1 @@
+TetriNET is an addictive 6 player tetr*s game
diff --git a/games/tetrinet-x/pkg-descr b/games/tetrinet-x/pkg-descr
new file mode 100644
index 000000000000..9649a7770d24
--- /dev/null
+++ b/games/tetrinet-x/pkg-descr
@@ -0,0 +1,19 @@
+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 it's own.
+
+Author: Brendan Grieve (brg@cheerful.com)
+Homepage: ftp://ftp.dementia.nu/tetrinet/servers/tetrix
+Distfiles: tetrinet-x.1.13.16.tgz (89 kb)
+
+- ported to FreeBSD by Gianmarco (gmarco@giovannelli.it)
diff --git a/games/tetrinet-x/pkg-plist b/games/tetrinet-x/pkg-plist
new file mode 100644
index 000000000000..f4c6360a90a0
--- /dev/null
+++ b/games/tetrinet-x/pkg-plist
@@ -0,0 +1,8 @@
+tetrinet-x/tetrix.freebsd
+tetrinet-x/server-query
+tetrinet-x/game.conf
+tetrinet-x/game.log
+tetrinet-x/game.secure
+tetrinet-x/game.winlist
+etc/rc.d/tetrinet-x.sh
+@dirrm tetrinet-x