debian/0000755000000000000000000000000011636135731007174 5ustar debian/control0000644000000000000000000000115611636134640010600 0ustar Source: xchain Section: games Priority: extra Maintainer: Debian QA Group Standards-Version: 3.9.2 Build-Depends: debhelper (>> 7) Vcs-Browser: http://anonscm.debian.org/git/collab-maint/xchain.git Vcs-Git: git://anonscm.debian.org/collab-maint/xchain.git Package: xchain Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, tk8.5 | wish Description: strategy game for 2-4 players Chain Reaction is a classic strategy game for 2-4 players. Players take turns to place tokens on an 8x8 board. When a square exceeds its maximum value, it explodes, setting off the surrounding squares. debian/compat0000644000000000000000000000000211636132207010365 0ustar 7 debian/rules0000755000000000000000000000174211636132207010253 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS := $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) CFLAGS += -Wall build: build-arch build-indep build-indep: build-arch: build-stamp build-stamp: dh_testdir $(MAKE) CFLAGS='$(CPPFLAGS) $(CFLAGS)' xchain.o $(MAKE) CFLAGS='$(CFLAGS) $(LDFLAGS)' xchain touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp $(MAKE) clean dh_clean binary-indep: binary-arch: build-stamp dh_testdir dh_testroot dh_prep dh_install dh_installdocs README dh_installexamples dh_installmenu dh_installman debian/xchain.6 dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build build-arch build-indep clean binary-indep binary-arch binary debian/xchain.menu0000644000000000000000000000014211636132207011324 0ustar ?package(xchain):needs="X11" section="Games/Board"\ title="xchain" command="/usr/games/xchain" debian/watch0000644000000000000000000000003511636135661010225 0ustar # No upstream location known debian/source/0000755000000000000000000000000011636132207010467 5ustar debian/source/format0000644000000000000000000000001411636132207011675 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000136011636135731011127 0ustar This is Chain Reaction V1.0 for X11. Copyright (C) 1998 Alistair Cunningham License ------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License with your Debian GNU/Linux system, in /usr/share/common-licenses/GPL-2. If not, see http://www.gnu.org/licenses/ debian/changelog0000644000000000000000000000753611636134745011065 0ustar xchain (1.0.1-6) unstable; urgency=low * QA upload * change to format "3.0 (quilt)" * modernize debian/rules - switch debhelper compatibility to 7 - add build-arch, build-indep - store xchain.menu in debian/ - use dpkg-buildflags * store copyright in debian/ * install files using dh_install instead of patched Makefile * drop changes outside debian/ no longer needed * remove unneeded debian/post{rm,inst} * bump Standards-Version * fix lintian's description-synopsis-starts-with-article * add ${misc:Depends} * increase default tk dependency * xchain.c: fix printf format error * add VCS- headers (uploaded to collab-maint) -- Bernhard R. Link Tue, 20 Sep 2011 18:05:57 +0200 xchain (1.0.1-5) unstable; urgency=low * debian/control: s/it's/its/. "It's" is the shorthand of "it is" or "it has". "Its" is the possessive case of "it". (closes: #268550) * debian/menu: correctly quoted strings -- Oohara Yuuma Sat, 28 Aug 2004 21:02:32 +0900 xchain (1.0.1-4) unstable; urgency=low * debian/control: added Source: (closes: #223227) * debian/xchain.6: new file, added NAME section and fixed .TH line -- Oohara Yuuma Sun, 7 Dec 2003 21:33:46 +0900 xchain (1.0.1-3) unstable; urgency=low * debian/control: set Priority: to extra (I don't know why xchain should be extra, but I don't care) -- Oohara Yuuma Wed, 17 Apr 2002 10:21:37 +0900 xchain (1.0.1-2) unstable; urgency=low * new maintainer * adopting an orphanrd package (closes: #141807) * Uploading .orig.tar.gz as well. As the version number indicates, this is not a Debian specific, but it was packaged as a Debian native package. Since the upstream webpage disappeared and potato does not have .orig.tar.gz, let's assume .tar.gz of the potato version (1.0.1-1) is the upstream tarball of the version 1.0.1 . * debian/control, debian/rules: using debhelper instead of debmake * Makefile: fixed typo of the target name * Makefile: added DEB_BUILD_OPTIONS "debug" and "nostrip" support * debian/control: dropped tcl8.0-dev and tk8.0-dev because they are not necessary (every access to tcl/tk is done by forking wish) * debian/control: using ${shlibs:Depends} and wish for Depends: * debian/postinst, debian/postrm: added #DEBHELPER# * debian/changelog: removed add-log-mailing-address: * xchain.c: added braces to avoid gcc -Wall warning * debian/control: set Standards-Version: to 3.5.6 -- Oohara Yuuma Wed, 17 Apr 2002 09:48:48 +0900 xchain (1.0.1-1.1) unstable; urgency=low * Non-maintainer upload, with the maintainer's consent. * Changed maintainer address (by request) to ac@gnu.org. * Move to /usr/share/doc and /usr/share/man, including build-depending on a recent debmake (closes: #91094, #91718). * Updated to a policy version where build dependencies are defined. Added appropriate build-deps on Tcl/Tk 8.0 to avoid causing more bugs than I solve. * Use dpkg-gencontrol -isp. * Fix GPL pointer in copyright file. -- Colin Watson Mon, 25 Jun 2001 16:09:54 +0100 xchain (1.0.1-1) unstable; urgency=low * Fixed bug where end of game was sometimes not detected. * Changed my address. See README. -- Alistair Cunningham Sat, 20 Jun 1998 21:23:00 +0100 xchain (1.0-2) unstable; urgency=low * Rewrote install script: + Abandoned using /usr/bin/install, now using shell script. + Added option not to gzip man page. * Got rid of C++ style comments. * Added reference to http://thor.cam.ac.uk/~ac212/xchain/ -- Alistair Cunningham Tue, 24 Feb 1998 21:18:00 +0000 xchain (1.0-1) unstable; urgency=low * Initial Release. -- Alistair Cunningham Sat, 21 Feb 1998 18:48:24 +0000 Local variables: mode: debian-changelog End: debian/patches/0000755000000000000000000000000011636132207010616 5ustar debian/patches/series0000644000000000000000000000023711636132207012035 0ustar 0001-Makefile-fixed-typo-of-the-target-name.patch 0002-xchain.c-added-braces-to-avoid-gcc-Wall-warning.patch 0003-warn-against-format-errors-and-fix-one.patch debian/patches/0002-xchain.c-added-braces-to-avoid-gcc-Wall-warning.patch0000644000000000000000000000121311636132207023014 0ustar From 1834d99a281d75ddb5f2afb99bc31d23b8484d3d Mon Sep 17 00:00:00 2001 From: Oohara Yuuma Date: Wed, 17 Apr 2002 10:21:37 +0900 Subject: xchain.c: added braces to avoid gcc -Wall warning --- xchain.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/xchain.c b/xchain.c index 9cf7889..cbe4e56 100644 --- a/xchain.c +++ b/xchain.c @@ -98,8 +98,11 @@ void update_board() { } for(x=1;x<=4;x++) if (x<=num) + { if (numtiles[x]>-1) wprintf(".c.p.p%d.v configure -text %.2d",x,numtiles[x]); else wprintf(".c.p.p%d.v configure -text 00",x); + } + } void new_game(void) { debian/patches/0003-warn-against-format-errors-and-fix-one.patch0000644000000000000000000000202411636132207021513 0ustar From bf7d7e7c1b6aaa526ddf11e57c2773372e55a260 Mon Sep 17 00:00:00 2001 From: Bernhard R. Link Date: Tue, 20 Sep 2011 17:41:56 +0200 Subject: warn against format errors and fix one --- xchain.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xchain.c b/xchain.c index cbe4e56..d578a16 100644 --- a/xchain.c +++ b/xchain.c @@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #define DEF_WISH_PATH "/usr/bin/wish" -void wprintf(char *, ...); +static void wprintf(char *, ...) __attribute__((format (printf, 1, 2))); void draw_screen(void); void my_exit(void); int doclick(int,int,int); @@ -449,7 +449,7 @@ void draw_screen() { wprintf("frame .b -relief sunk -borderwidth 1"); for(i=0;i<64;i++) { - wprintf("button .b.b%d -text 0 -command {puts stdout zz%.2d}",i,i,i); + wprintf("button .b.b%d -text 0 -command {puts stdout zz%.2d}",i,i); wprintf("grid .b.b%d -row %d -column %d",i,i/8,i%8); } wprintf("pack .b -fill both -padx 3 -pady 3"); debian/patches/0001-Makefile-fixed-typo-of-the-target-name.patch0000644000000000000000000000077711636132207021415 0ustar From 85cfbc2cc8ebb4d20f429b9a9edd680b88ee76ce Mon Sep 17 00:00:00 2001 From: Oohara Yuuma Date: Wed, 17 Apr 2002 10:21:37 +0900 Subject: Makefile: fixed typo of the target name --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 6aa5f71..8c1ee20 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ OBJS= xchain.o all: xchain -chain: $(OBJS) +xchain: $(OBJS) $(CC) -o xchain $(CFLAGS) $(OBJS) chmod 0755 xchain debian/xchain.60000644000000000000000000000614211636132207010533 0ustar .TH xchain 6 .SH NAME xchain \- Chain Reaction, Strategy game for 2-4 players .SH SYNOPSIS .B xchain .I "[-v] [--version] [-h] [--help] [path to wish]" .SH DESCRIPTION .B Rules of the game .PP Chain Reaction is played on an 8 by 8 board. Players take turns to move. On each move, the player may select an empty square, or one they already own. Squares belonging to other players may not be chosen. If the square was unowned, it becomes the property of the player, and is given a value of 1. If the square was owned by the player, the value is incremented. .PP If the value of a square ever exceeds the maximum permitted of that square, it explodes. Squares in the corner have a maximum of 1, squares touching an edge, but not on a corner have a maximum of 2, and squares in the interior have a maximum of 3. .PP When a square explodes, it becomes unowned, and it's value is reset to 0. The 4 squares touching it become owned by the owner of the exploding square, and their values are incremented. If any of these are above their maximum, they explode, giving rise to the chain reaction. .PP If, at the end of a move, any of the players have no squares, they are dead, and get no more turns. When there is only one person left, they are the winner. .PP .B Game options .PP On loading the game, a 2 player game with a blank board is loaded. To change this, edit the settings to suit, and click on "New Game". Clicking on this in the middle of a game will abandon it, and start a new one. .PP To select the number of players, click on the numbered radio buttons. To the right of these are entry boxes to fill in player names, if desired. The background to these shows the colour of the players' squares. Names and colours are only updated when "New Game" is clicked on. To the right of these, are counters of the number of squares belonging to each player. .PP If a shorter game is desired, squares can be set for the players before the game starts. This can be up to 4 rows and columns, or a random placement. For 2 players, up to 32 squares each may be chosen. For 3 players, up to 21 each, and for 4 players, up to 16 each. .PP Whoever goes first has quite an advantage. To offset this, a random first person can be chosen. On clicking "New game", the status bar below the board shows who this will be. .SH OPTIONS .TP .B \-h, \-\-help Show summary of options. .TP .B \-v, \-\-version Show version of program. .TP .B path to wish Chain Reaction requires the wish tcl/tk interpreter. By default it uses /usr/bin/wish (The default for Debian GNU/Linux, and most other Unix-like systems). Use this option to force a different location. .SH FILES .TP .IR /usr/bin/wish Default location of wish tcl/tk interpreter. .SH BUGS Not guaranteed to be free of potential buffer overflows. Do not use setuid, or with greater privilege than the players using it. .SH "WISH LIST" Network support. .PP A way to save game settings \- either environment variables, or a settings file. .SH HISTORY First seen many years ago on the (as it was then) Acorn Archimedes. Original author unknown. Written for Unix by Alistair Cunningham http://thor.cam.ac.uk/~ac212/xchain/ debian/install0000644000000000000000000000002311636132207010553 0ustar xchain /usr/games/