1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add tetrinet, a very popular Tetris-like multiplayer game with extras.

PR:		25310
Submitted by:	Fredrik Carlsson <fredrik@wasadata.com>
This commit is contained in:
Peter Pentchev 2001-03-05 13:57:25 +00:00
parent 9be970d7c9
commit f2e96a5f19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39091
10 changed files with 102 additions and 0 deletions

View File

@ -177,6 +177,7 @@
SUBDIR += sxsame
SUBDIR += tank
SUBDIR += teg
SUBDIR += tetrinet
SUBDIR += tetrinet-x
SUBDIR += tinymux
SUBDIR += tkmoo

30
games/tetrinet/Makefile Normal file
View File

@ -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>

1
games/tetrinet/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (tetrinet.tar.gz) = 31b99b83d669faa48161cad8190f4ead

View File

@ -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);

View File

@ -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"

View File

@ -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"

View File

@ -0,0 +1 @@
A console tetrinet client

8
games/tetrinet/pkg-descr Normal file
View File

@ -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/

View File

@ -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.

5
games/tetrinet/pkg-plist Normal file
View File

@ -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