summaryrefslogtreecommitdiff
path: root/games/tetrinet
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-03-05 13:57:25 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-03-05 13:57:25 +0000
commitf2e96a5f19d306a0d33c60cdddc8fcd0fb351430 (patch)
tree9282f33a4aff444df0c89d3ed3a40de3e68ff3d3 /games/tetrinet
parentClean up ugly wording of instructions on how to use kscd. (diff)
Add tetrinet, a very popular Tetris-like multiplayer game with extras.
PR: 25310 Submitted by: Fredrik Carlsson <fredrik@wasadata.com>
Notes
Notes: svn path=/head/; revision=39091
Diffstat (limited to 'games/tetrinet')
-rw-r--r--games/tetrinet/Makefile30
-rw-r--r--games/tetrinet/distinfo1
-rw-r--r--games/tetrinet/files/patch-aa10
-rw-r--r--games/tetrinet/files/patch-ab22
-rw-r--r--games/tetrinet/files/patch-ac21
-rw-r--r--games/tetrinet/pkg-comment1
-rw-r--r--games/tetrinet/pkg-descr8
-rw-r--r--games/tetrinet/pkg-message3
-rw-r--r--games/tetrinet/pkg-plist5
9 files changed, 101 insertions, 0 deletions
diff --git a/games/tetrinet/Makefile b/games/tetrinet/Makefile
new file mode 100644
index 000000000000..6849604e840c
--- /dev/null
+++ b/games/tetrinet/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: tetrinet
+# Date created: 23 Februari 2001
+# Whom: Fredrik Carlsson <fredrik@wasadata.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tetrinet
+PORTVERSION= 0.7
+CATEGORIES= games net
+MASTER_SITES= http://achurch.org/tetrinet/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= <fredrik@wasadata.com>
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tetrinet ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tetrinet-server ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/tetrinet
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tetrinet
+ ${INSTALL_DATA} ${WRKSRC}/tetrinet.txt ${PREFIX}/share/doc/tetrinet
+.endif
+
+post-install:
+ @${ECHO}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO}
+
+.include <bsd.port.mk>
diff --git a/games/tetrinet/distinfo b/games/tetrinet/distinfo
new file mode 100644
index 000000000000..a4d781786e6a
--- /dev/null
+++ b/games/tetrinet/distinfo
@@ -0,0 +1 @@
+MD5 (tetrinet.tar.gz) = 31b99b83d669faa48161cad8190f4ead
diff --git a/games/tetrinet/files/patch-aa b/games/tetrinet/files/patch-aa
new file mode 100644
index 000000000000..fa711566c9e8
--- /dev/null
+++ b/games/tetrinet/files/patch-aa
@@ -0,0 +1,10 @@
+--- xwin.orig Fri Sep 15 05:18:00 2000
++++ xwin.c Tue Jan 2 08:30:50 2001
+@@ -244,7 +244,6 @@
+ signal(SIGUSR1, sighandler);
+ signal(SIGUSR2, sighandler);
+ signal(SIGALRM, sighandler);
+- signal(SIGSTKFLT, sighandler);
+ signal(SIGTSTP, sighandler);
+ signal(SIGXCPU, sighandler);
+ signal(SIGXFSZ, sighandler);
diff --git a/games/tetrinet/files/patch-ab b/games/tetrinet/files/patch-ab
new file mode 100644
index 000000000000..644540a2510e
--- /dev/null
+++ b/games/tetrinet/files/patch-ab
@@ -0,0 +1,22 @@
+--- server.c.old Sun Mar 4 17:57:08 2001
++++ server.c Sun Mar 4 17:57:44 2001
+@@ -4,6 +4,10 @@
+ * Tetrinet server code
+ */
+
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <sys/time.h>
++
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -14,8 +18,6 @@
+ * reason to not use glibc. */
+ /* #include <netinet/protocols.h> */
+ #include <signal.h>
+-#include <sys/socket.h>
+-#include <sys/time.h>
+ #include "tetrinet.h"
+ #include "tetris.h"
+ #include "server.h"
diff --git a/games/tetrinet/files/patch-ac b/games/tetrinet/files/patch-ac
new file mode 100644
index 000000000000..2dbe7e1cf3f2
--- /dev/null
+++ b/games/tetrinet/files/patch-ac
@@ -0,0 +1,21 @@
+--- sockets.c.old Sun Mar 4 17:57:04 2001
++++ sockets.c Sun Mar 4 17:58:02 2001
+@@ -4,14 +4,16 @@
+ * Socket routines.
+ */
+
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <sys/time.h>
++
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <netdb.h>
+ #include <netinet/in.h>
+-#include <sys/socket.h>
+-#include <sys/time.h>
+ #include "sockets.h"
+ #include "tetrinet.h"
+
diff --git a/games/tetrinet/pkg-comment b/games/tetrinet/pkg-comment
new file mode 100644
index 000000000000..2b11ba69bb0a
--- /dev/null
+++ b/games/tetrinet/pkg-comment
@@ -0,0 +1 @@
+A console tetrinet client
diff --git a/games/tetrinet/pkg-descr b/games/tetrinet/pkg-descr
new file mode 100644
index 000000000000..4f9950ffef9b
--- /dev/null
+++ b/games/tetrinet/pkg-descr
@@ -0,0 +1,8 @@
+Tetrinet is a multiplayer, networked tetris game for up to 6 players.
+This is a Tetrinet client for the console.
+
+You must be using at least a 50-line text display to run this version of
+Tetrinet. This is made by either typing 'vidcontrol 80x50' before
+you start tetrinet, or by adding 'allscreens_flags="80x50"' to /etc/rc.conf.
+
+WWW: http://achurch.org/tetrinet/
diff --git a/games/tetrinet/pkg-message b/games/tetrinet/pkg-message
new file mode 100644
index 000000000000..ad7dd30f80c4
--- /dev/null
+++ b/games/tetrinet/pkg-message
@@ -0,0 +1,3 @@
+You must be using at least a 50-line text display to run this version of
+Tetrinet. This is made by either typing 'vidcontrol 80x50' before
+you start tetrinet, or by adding 'allscreens_flags="80x50"' to /etc/rc.conf.
diff --git a/games/tetrinet/pkg-plist b/games/tetrinet/pkg-plist
new file mode 100644
index 000000000000..79c7cb1bdcd0
--- /dev/null
+++ b/games/tetrinet/pkg-plist
@@ -0,0 +1,5 @@
+bin/tetrinet
+bin/tetrinet-server
+%%PORTDOCS%%share/doc/tetrinet/README
+%%PORTDOCS%%share/doc/tetrinet/tetrinet.txt
+%%PORTDOCS%%@dirrm share/doc/tetrinet