--- tetrinet-0.11+CVS20070911.orig/debian/changelog +++ tetrinet-0.11+CVS20070911/debian/changelog @@ -0,0 +1,40 @@ +tetrinet (0.11+CVS20070911-1) unstable; urgency=low + + * The "damned, I thought I have packaged that already..." release. + * New CVS snapshot, which includes a fix for aborting if screen size is + lower than 50 lines (closes: #286242, #213895, #360605) + * Bumped Standards-Version to 3.7.2, no changes needed. + + -- Gerfried Fuchs Thu, 23 Aug 2007 19:53:46 +0200 + +tetrinet (0.11+CVS20031026-3) unstable; urgency=low + + * manpage for tetrinet-server is finished now (closes: #282958) -- there has + always been the README in the doc directory of the package, though.... + * Fix for empty ingame talk message from CVS added. + * Removed debian/docs cruft. + * Fixed description of tetrinet-server. + + -- Gerfried Fuchs Mon, 06 Dec 2004 23:39:23 +0100 + +tetrinet (0.11+CVS20031026-2) unstable; urgency=low + + * Added manpage for tetrinet-client (closes: #232542) + * Added unfinished manpage for tetrinet-server. This is work in progress. + * Removed menu handling, it didn't work anyway. Not possible without a + wrapper script which I don't want to write currently. + + -- Gerfried Fuchs Tue, 23 Nov 2004 10:18:00 +0100 + +tetrinet (0.11+CVS20031026-1) unstable; urgency=low + + * New upstream release: + -) closes: #216762 -- FTBFS architecture specific signal got removed + + -- Gerfried Fuchs Sun, 26 Oct 2003 03:52:15 +0000 + +tetrinet (0.10+0.11pre1-1) unstable; urgency=low + + * Initial Release (closes: #207624) + + -- Gerfried Fuchs Tue, 23 Sep 2003 17:18:18 +0000 --- tetrinet-0.11+CVS20070911.orig/debian/tetrinet-server.6 +++ tetrinet-0.11+CVS20070911/debian/tetrinet-server.6 @@ -0,0 +1,125 @@ +.TH "TETRINET-SERVER" "6" "2004-12-06" +.\" Please adjust this date whenever revising the manpage. +.SH "NAME" +tetrinet-server \- server program for tetrinet + + +.SH "SYNOPSIS" +.B tetrinet-server + + +.SH "DESCRIPTION" +.B tetrinet-server +is a server program for +.BR tetrinet\-client (6), +a networked version of tetris. You can use it to server both a TetriFast and an +original server for up to 6 people to connect and play. It doesn't support any +fancy features like different channels, but still includes support for +configureable cookie mode and a small winlist. + +.PP + +.SH "OPTIONS" +.B tetrinet-server +doesn't take any options at all. It reads all its settings from +.I ~/.tetrinet +on startup and creates a default file if there isn't one already there. + + +.SH "EXAMPLES" +This is a short explenation of the configurationfile +.I ~/.tetrinet +together with its default entries. It is written after every game or when the +server quits. If it is not there it will be created automatically. + +.TP +.BI winlist\ "Alcan;0;3;1 AndrewK;0;2;1" +This is the winlist the server keeps. Each parameter consists of four +semicolon-seperated fields: +.IR Name ; Team ; Points ; Games .\ Team +is a flag which is either +.I 1 +if the entry is for a team or +.I 0 +if the entry is for a player. +.I Points +is just the number of points for the entry, and +.I Games +is the number of games the entry has participated. + +.TP +.BI classic\ 1 +Sets classic mode for the game - that means, no cookies. + +.TP +.BI initiallevel\ 1 +Sets the level in which the game will start. + +.TP +.BI linesperlevel\ 2 +Defines how many lines will issue a level increase. + +.TP +.BI levelinc\ 1 +How many levels are increased per +.B linesperlevel +removed lines. + +.TP +.BI averagelevels\ 1 +The levels of all player get averaged if this is set to +.IR 1 . + +.TP +.BI speciallines\ 1 +How many lines must be removed to get specials. + +.TP +.BI specialcount\ 1 +The number of specials that are added each time +.BR speciallines ' +lines are removed. + +.TP +.BI specialcapacity\ 18 +This number tells you how many specials you can hold. + +.TP +.BI pieces\ "14 14 15 14 14 14 15" +Sets the likeliness of the different pieces. Must sum up to 100. The order is: +bar (dark blue), square (yellow), reverse-L (green), L (purple), Z (red), S +(light blue), and T (yellow). + +.TP +.BI specials\ "18 18 3 12 0 16 3 12 18" +Sets the likeliness of the different specials. Must sum up to 100. The order +is: A, C, N, R, S, B, G, Q, O. + +.TP +.BI linuxmode\ 0 +This setting selects whether the client should try to remain compatible with +Windows clients. This only affects the winlist display; if +.B linuxmode +is set to +.IR 1 , +the server will send the number of games played by each player as well as +points won. This is set to zero by default. + +.TP +.BI ipv6_only\ 0 +Listen on ipv6 only. + + +.SH "FILES" +.TP +.I ~/.tetrinet +The configuration file for +.BR tetrinet-server . + + +.SH "AUTHOR" +This manual page was written by Gerfried Fuchs . + + +.SH "SEE ALSO" +.BR tetrinet\-client (6). --- tetrinet-0.11+CVS20070911.orig/debian/compat +++ tetrinet-0.11+CVS20070911/debian/compat @@ -0,0 +1 @@ +4 --- tetrinet-0.11+CVS20070911.orig/debian/rules +++ tetrinet-0.11+CVS20070911/debian/rules @@ -0,0 +1,125 @@ +#!/usr/bin/make -f +# debian/rules for tetrinet + +PKG1 = tetrinet-client +PKG2 = tetrinet-server +TMP1 = $(CURDIR)/debian/$(PKG1) +TMP2 = $(CURDIR)/debian/$(PKG2) + + +CFLAGS = -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 +INSTALL_PROGRAM = $(INSTALL) -p -oroot -groot -m755 +INSTALL_SCRIPT = $(INSTALL) -p -oroot -groot -m755 +INSTALL_DIR = $(INSTALL) -p -d -oroot -groot -m755 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + + +clean: + $(checkdir) + $(checkroot) + -rm -rf $(TMP1) $(TMP2) debian/substvars debian/$(PKG2).substvars \ + debian/files build-stamp install-stamp + $(MAKE) clean + + +build: build-stamp +build-stamp: + $(checkdir) + $(MAKE) CFLAGS="$(CFLAGS)" + touch build-stamp + + +install: install-stamp +install-stamp: build + $(checkdir) + $(checkroot) + -rm -rf $(TMP1) $(TMP2) + $(INSTALL_DIR) $(TMP1) $(TMP2) + + cd $(TMP1) && $(INSTALL_DIR) usr/games usr/share/doc/$(PKG1) \ + usr/share/man/man6 + cd $(TMP2) && $(INSTALL_DIR) usr/games usr/share/doc/$(PKG2) \ + usr/share/man/man6 + + $(INSTALL_PROGRAM) tetrinet $(TMP1)/usr/games/tetrinet-client + $(INSTALL_PROGRAM) tetrinet-server $(TMP2)/usr/games/tetrinet-server + + $(INSTALL_FILE) debian/tetrinet-client.6 $(TMP1)/usr/share/man/man6 + $(INSTALL_FILE) debian/tetrinet-server.6 $(TMP2)/usr/share/man/man6 + + $(INSTALL_FILE) ChangeLog $(TMP1)/usr/share/doc/$(PKG1)/changelog + $(INSTALL_FILE) Changes $(TMP1)/usr/share/doc/$(PKG1)/changelog.old + $(INSTALL_FILE) ChangeLog $(TMP2)/usr/share/doc/$(PKG2)/changelog + $(INSTALL_FILE) Changes $(TMP2)/usr/share/doc/$(PKG2)/changelog.old + + $(INSTALL_FILE) README tetrinet.txt TODO AUTHORS Changes \ + $(TMP1)/usr/share/doc/$(PKG1) + + cd $(TMP1)/usr/share && gzip -9 man/man6/tetrinet-client.6 \ + doc/$(PKG1)/changelog doc/$(PKG1)/changelog.old \ + doc/$(PKG1)/README doc/$(PKG1)/tetrinet.txt + cd $(TMP2)/usr/share && gzip -9 man/man6/tetrinet-server.6 \ + doc/$(PKG2)/changelog doc/$(PKG2)/changelog.old + + touch install-stamp + + +# Build architecture independant packages. +binary-indep: install +# Nothing to do in here. + + +# Build architecture dependant packages. +binary-arch: install + $(checkdir) + $(checkroot) + $(INSTALL_DIR) $(TMP1)/DEBIAN $(TMP2)/DEBIAN + + $(INSTALL_FILE) debian/copyright $(TMP1)/usr/share/doc/$(PKG1) + $(INSTALL_FILE) debian/copyright $(TMP2)/usr/share/doc/$(PKG2) + + $(INSTALL_FILE) debian/changelog \ + $(TMP1)/usr/share/doc/$(PKG1)/changelog.Debian + gzip -9 $(TMP1)/usr/share/doc/$(PKG1)/changelog.Debian + $(INSTALL_FILE) debian/changelog \ + $(TMP2)/usr/share/doc/$(PKG2)/changelog.Debian + gzip -9 $(TMP2)/usr/share/doc/$(PKG2)/changelog.Debian + + dpkg-shlibdeps -Tdebian/$(PKG1).substvars -dDepends \ + $(TMP1)/usr/games/tetrinet-client + dpkg-gencontrol -ldebian/changelog -isp -Tdebian/$(PKG1).substvars \ + -p$(PKG1) -P$(TMP1) + dpkg-shlibdeps -Tdebian/$(PKG2).substvars -dDepends \ + $(TMP2)/usr/games/tetrinet-server + dpkg-gencontrol -ldebian/changelog -isp -Tdebian/$(PKG2).substvars \ + -p$(PKG2) -P$(TMP2) + + cd $(TMP1) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ + xargs -r0 md5sum > DEBIAN/md5sums + cd $(TMP2) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ + xargs -r0 md5sum > DEBIAN/md5sums + + dpkg --build $(TMP1) .. + dpkg --build $(TMP2) .. + +binary: binary-arch binary-indep + + +define checkdir + test -f debian/rules +endef + +define checkroot + test root = "`whoami`" +endef + +.PHONY: clean build install binary-indep binary-arch binary --- tetrinet-0.11+CVS20070911.orig/debian/control +++ tetrinet-0.11+CVS20070911/debian/control @@ -0,0 +1,25 @@ +Source: tetrinet +Section: games +Priority: optional +Maintainer: Gerfried Fuchs +Build-Depends: libncurses5-dev +Standards-Version: 3.7.2 + +Package: tetrinet-client +Architecture: any +Depends: ${shlibs:Depends} +Description: textmode client for tetrinet, a multiplayer tetris-like game + tetrinet-client is a textmode client for the multiplayer tetris version called + tetrinet. This client is able to play both in tetrifast and the original + version of the game. Please notice that you need at least 50 lines to be able + to play it. + +Package: tetrinet-server +Architecture: any +Depends: ${shlibs:Depends} +Suggests: tetrinet-client +Description: server for tetrinet, a multiplayer tetris-like game + tetrinet-server is a small limited server binary for the multiplayer tetris + version called tetrinet. It supports only one playfield so at most 6 players, + but it is good enough for a fast game and can be configured throughly through + a ~/.tetrinet file (default written on first start). --- tetrinet-0.11+CVS20070911.orig/debian/watch +++ tetrinet-0.11+CVS20070911/debian/watch @@ -0,0 +1,4 @@ +# watch file for tetrinet +version=2 +# Site/Directory Pattern Version Script +http://achurch.org/tetrinet/ tetrinet\.tar\.gz debian uupdate --- tetrinet-0.11+CVS20070911.orig/debian/tetrinet-client.6 +++ tetrinet-0.11+CVS20070911/debian/tetrinet-client.6 @@ -0,0 +1,155 @@ +.TH TETRINET-CLIENT 6 "2004-11-23" +.\" Please adjust this date whenever revising the manpage. + +.SH NAME +tetrinet\-client \- textmode client program for tetrinet + + +.SH SYNOPSIS +.B tetrinet +.RB [\| \-fancy \|] +.RB [\| \-fast \|] +.RB [\| \-log +.IR file \|] +.RB [\| \-noshadow \|] +.RB [\| \-noslide \|] +.RB [\| \-slide \|] +.RB [\| \-shadow \|] +.RB [\| \-windows \|] +.I nickname server + + +.SH DESCRIPTION +.B tetrinet\-client +is a textmode client program for tetrinet, a networked version of tetris. You +can play both on TetriFast server and on the original servers with it. Please +notice that you need at least 50 lines to be able to play it. + + +.SH OPTIONS +A summary of options is included below. + + +.TP +.B \-fancy +Use "fancy" TTY graphics. (Note that this will slow down redraws somewhat.) + + +.TP +.B \-fast +Use the "tetrifast" mode to connect to the server. This mode eliminates the +delay before a new cube appears, thus speeding the game up noticeably. This +mode is incompatible with the classic mode and the server has to support it. +If in doubt, ask the other players. + + +.TP +.BI \-log\ file +Log network traffic to the given file. All lines start with an absolute time +(seconds) in brackets. Lines sent from the client to the server are prefixed +with ">>>", and lines from the server to the client are prefixed with "<<<". +This could be used with a utility program to replay a game later on (though +such a program is not currently included in the Tetrinet distribution.) + + +.TP +.B \-noshadow +Do not make pieces cast "shadows" when they are slowly falling. (Normally the +area under piece is filled by dim dots to help to determine where the piece +would hit the ground if one would press the spacebar.) + + +.TP +.B \-noslide +Do not allow pieces to "slide" after being dropped with the spacebar. +(Normally, there is a short time after pressing the spacebar during which a +piece can "slide" left or right before it solidifies.) + + +.TP +.B \-shadow +Opposite of +.BR \-noshadow ; +make the pieces cast "shadows". Can speed up gameplay considerably, but it can +be considered as cheating by some people since some other tetrinet clients lack +this. + + +.TP +.B \-slide +Opposite of +.BR \-noslide ; +allows pieces to "slide" after being dropped. If both +.BR \-slide\ and\ \-noslide +are given, +.B \-slide +takes precedence. If both +.BR \-windows\ and\ \-slide +are given, this overrides the "no sliding" part of +.B \-windows +without affecting the other changes in program behavior. + + +.TP +.B \-windows +Behave as much like the Windows version of Tetrinet as possible. Implies +.BR \-noslide\ and\ \-noshadow . + + +.SH USAGE +When you start +.B tetrinet\-client +you will find yourself in the partyline. In here you can chat with the other +players. With +.I /help +you will get the list of the server supported commands. You can switch between +three screens with +.I F1 +through to +.IR F3 . +.P +With +.I /start +you can start a game (if you are in position one). You will have to switch over +to the Fields with the +.I F1 +key, an automatic switch over on game start is planed. To pause a running game +you have to enter +.I /pause +in the partyline. To restart the game you enter +.IR /unpause . +.P +With the cursor keys +.I left +and +.I right +you can move the stones, with cursor +.I up +you turn the stones clockwise, with cursor +.I down +you pull the stones to the bottom, and with +.I space +you drop them. You have to fill the lines completely, because complete lines +will get removed from the display. The more lines you can eliminate with a +single stone the better. If the play room supports specials you will eventually +see a list of letters below your playfield that you can use with the number +keys from +.I 1 +to +.IR 6 +for the corresponding playfield. +If you want to get rid of a special, drop it with +.IR d . +You can also chat in the playfield, to open the chat box press +.I t +(for +.BR t alk.) +That's it, more or less. + + +.SH AUTHOR +This manual page was written by Gerfried Fuchs . + + +.SH "SEE ALSO" +.BR tetrinet-server (6). --- tetrinet-0.11+CVS20070911.orig/debian/copyright +++ tetrinet-0.11+CVS20070911/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by Gerfried Fuchs on +Sat, 30 Aug 2003 18:38:17 +0200. + +It was downloaded from <:pserver:anonymous@pasky.ji.cz:/home/cvs/tetrinet> + +Current Upstream Authors: Petr Baudis + Gerfried Fuchs + See AUTHORS file for previous hackers on the code + +Copyright: +This program is public domain, and may be modified and distributed without +limitation. --- tetrinet-0.11+CVS20070911.orig/debian/init.d.ex +++ tetrinet-0.11+CVS20070911/debian/init.d.ex @@ -0,0 +1,69 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/tetrinet +NAME=tetrinet +DESC=tetrinet + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ + --exec $DAEMON + echo "$NAME." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + /var/run/$NAME.pid --exec $DAEMON + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0