--- bsdgames-2.13.orig/atc/atc.6.in +++ bsdgames-2.13/atc/atc.6.in @@ -175,7 +175,7 @@ to be a command and is therefore not displayed. The following are some possible information lines: .Pp -.Bd -literal -unfilled -offset indent +.Bd -literal -offset indent B4*A0: Circle @ b1 g7 E4: 225 .Ed @@ -438,7 +438,7 @@ .Em exactly diagonal. .Ss "FIELD FILE EXAMPLE" -.Bd -literal -unfilled +.Bd -literal # This is the default game. update = 5; --- bsdgames-2.13.orig/bcd/bcd.6 +++ bsdgames-2.13/bcd/bcd.6 @@ -50,7 +50,7 @@ .Op Fl ds Ar string ... .Sh DESCRIPTION The -.Nm "" , +.Nm bcd , .Nm ppt and .Nm morse --- bsdgames-2.13.orig/boggle/boggle/boggle.6 +++ bsdgames-2.13/boggle/boggle/boggle.6 @@ -99,7 +99,7 @@ .El .Pp Help is available during play by typing -.Ic Sq ? . +.Ic `?' . More detailed information on the game is given there. .Sh BUGS If there are a great many words in the cube the final display of the words --- bsdgames-2.13.orig/debian/control +++ bsdgames-2.13/debian/control @@ -0,0 +1,21 @@ +Source: bsdgames +Section: games +Priority: optional +Build-Depends: debhelper (>= 4), libncurses5-dev, flex, bison, wenglish, wbritish, dpkg-dev (>= 1.9.0) +Maintainer: Joey Hess +Standards-Version: 3.5.7.1 + +Package: bsdgames +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, wenglish | wordlist +Conflicts: bsdgames-nonfree (<< 2.5), suidmanager (<< 0.50) +Replaces: bsdgames-nonfree (<< 2.5) +Description: collection of text games from BSD systems + This is a collection of some of the text-based games and amusements that have + been enjoyed for decades on unix systems. + . + Includes these programs: adventure, arithmetic, atc, backgammon, battlestar, + bcd, boggle, caesar, canfield, countmail, cribbage, fish, gomoku, hangman, + hunt, mille, monop, morse, number, pig, phantasia, pom, ppt, primes, quiz, + random, rain, robots, sail, snake, tetris, trek, wargames, worm, worms, + wump, wtf --- bsdgames-2.13.orig/debian/changelog +++ bsdgames-2.13/debian/changelog @@ -0,0 +1,566 @@ +bsdgames (2.13-11) unstable; urgency=low + + * Fixed silly typo in wargames man page. Closes: #169307 + + -- Joey Hess Sat, 16 Nov 2002 18:58:22 -0500 + +bsdgames (2.13-10) unstable; urgency=low + + * Updated to debhelper v4. + + -- Joey Hess Sat, 1 Jun 2002 22:26:40 -0400 + +bsdgames (2.13-9) unstable; urgency=low + + * Moved wtf acronym list into /usr/share/games. Closes: #144804 + + -- Joey Hess Wed, 22 May 2002 13:17:37 -0400 + +bsdgames (2.13-8) unstable; urgency=low + + * COrrected primes (really factor) man page. Closes: #144738 + + -- Joey Hess Sat, 27 Apr 2002 11:00:25 -0400 + +bsdgames (2.13-7) unstable; urgency=low + + * Make sure boggle is always built with the same wordlist, and use the union + of wenglish and wbristish for that list. Building with web2 resulted in + too many scrabble-words.. + + -- Joey Hess Sun, 7 Apr 2002 20:27:57 -0400 + +bsdgames (2.13-6) unstable; urgency=low + + * Fixed man page warnings, Closes: #139414 + + -- Joey Hess Thu, 21 Mar 2002 22:24:53 -0500 + +bsdgames (2.13-4) unstable; urgency=low + + * Corrected hint => hints, Closes: #134120 + + -- Joey Hess Fri, 15 Feb 2002 16:36:20 -0500 + +bsdgames (2.13-3) unstable; urgency=low + + * Added -m option to hangman to set MINLEN. Closes: #129998 + + -- Joey Hess Sat, 19 Jan 2002 18:04:06 -0500 + +bsdgames (2.13-2) unstable; urgency=low + + * Fixed bad merge (that's why sail was broken). + + -- Joey Hess Sat, 29 Dec 2001 13:37:00 -0500 + +bsdgames (2.13-1) unstable; urgency=low + + * New upstream release. + * Patched sail/sync.c to build (lots of missing includes and other trivial + mistakes). + + -- Joey Hess Fri, 28 Dec 2001 18:15:41 -0500 + +bsdgames (2.12-11) unstable; urgency=low + + * Added menu hints for backgammon and gomoku, Closes: #121012, #121012 + NB: holding off on changing menu titles until I see evidence it's really + necessary. + + -- Joey Hess Sun, 25 Nov 2001 21:48:03 -0500 + +bsdgames (2.12-10) unstable; urgency=low + + * Fixed tetris on sun systems to not lag 3 keystrokes behind, patch from + upstream. Closes: #97033 + + -- Joey Hess Sun, 18 Nov 2001 17:19:18 -0500 + +bsdgames (2.12-9) unstable; urgency=low + + * Corrected cost of slime. Closes: #110782 + * Added '-' to character class, so wargames can launch moon-buggy. + This is clearly a vital fix, but I hesitate to increase the severity of + this upload. Closes: #93638 + + -- Joey Hess Mon, 17 Sep 2001 00:51:07 -0400 + +bsdgames (2.12-8) unstable; urgency=low + + * Applied a patch from Igor Khavkine to + make the package build on the Hurd. Closes: #98562 + + -- Joey Hess Wed, 23 May 2001 22:49:26 -0400 + +bsdgames (2.12-7) unstable; urgency=low + + * Modified all the rest of the menu items that need a pause after + running. Also fixed bashisms in the pause code.. + + -- Joey Hess Fri, 11 May 2001 16:19:13 -0400 + +bsdgames (2.12-6) unstable; urgency=low + + * Pause after tetris-bsd exits when run from the menu, to give a chance + for the high scores to be seen. Closes: #96999 + + -- Joey Hess Thu, 10 May 2001 21:49:37 -0400 + +bsdgames (2.12-5) unstable; urgency=low + + * Added AIUI, Closes: #90973 + + -- Joey Hess Sat, 24 Mar 2001 14:27:16 -0800 + +bsdgames (2.12-4) unstable; urgency=low + + * Added real dependancy alternate (lintian). + * Debhelper v3. + + -- Joey Hess Sat, 10 Feb 2001 00:24:27 -0800 + +bsdgames (2.12-3) unstable; urgency=low + + * Corrected snake's usage message, Closes: #84852 + * Patch from Malcolm Parsons to fix + snake scoring problem, Closes: #80549 + * Statoverride transition. + + -- Joey Hess Sun, 4 Feb 2001 14:06:28 -0800 + +bsdgames (2.12-2) unstable; urgency=low + + * Depends on wordlist, Closes: #76331 + + -- Joey Hess Sun, 5 Nov 2000 15:25:06 -0800 + +bsdgames (2.12-1) unstable; urgency=low + + * New upstream release, fixing problems in battlestar. Closes: #70465 + + -- Joey Hess Tue, 26 Sep 2000 09:21:22 -0700 + +bsdgames (2.11-4) unstable; urgency=low + + * Updated to debhelper v2. + + -- Joey Hess Mon, 25 Sep 2000 14:14:51 -0700 + +bsdgames (2.11-3) unstable; urgency=low + + * Fixed a typo in bcd's man page. + + -- Joey Hess Thu, 31 Aug 2000 21:33:33 -0700 + +bsdgames (2.11-2) unstable; urgency=low + + * Patch from pmaydell@chiark.greenend.org.uk to fix a segfault in + battlestar if you say "wear knfo" or similar nonsensical things. + (Patch also sent upstream.) Closes: #70465 + + -- Joey Hess Mon, 28 Aug 2000 17:16:27 -0700 + +bsdgames (2.11-1) unstable; urgency=low + + * New upstream. + + -- Joey Hess Wed, 19 Apr 2000 14:30:22 -0700 + +bsdgames (2.10-3) unstable; urgency=low + + * Modified asian capitals quiz with some corrections. Closes: #62078 + + -- Joey Hess Sun, 9 Apr 2000 15:16:40 -0700 + +bsdgames (2.10-2) unstable; urgency=low + + * Fixed countmail man page, Closes: #61846 + + -- Joey Hess Wed, 5 Apr 2000 13:42:58 -0700 + +bsdgames (2.10-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Sat, 12 Feb 2000 16:35:11 -0800 + +bsdgames (2.9-4) unstable; urgency=low + + * Built with ncurses5, Closes: #55448 + + -- Joey Hess Fri, 21 Jan 2000 15:26:56 -0800 + +bsdgames (2.9-3) unstable; urgency=low + + * Download directory update. + + -- Joey Hess Tue, 11 Jan 2000 15:53:35 -0800 + +bsdgames (2.9-2) unstable; urgency=low + + * Build deps. Boggle is now forced to always build with wgenlish as it's + word list, for consitency. Unfortunatly, it cannot use the currnetly + install word list because it hashes it at install time. + + -- Joey Hess Sat, 4 Dec 1999 00:13:01 -0800 + +bsdgames (2.9-1) unstable; urgency=low + + * New upstream version. + * Patch from Malcolm to fix tetris-bsd score formatting if there are more + than 10 scores. (Closes: #50031) + * Include /var/games/bsdgames/sail, (Closes: #50074) + * Fixed robots spelling mistake, (Closes: #50075) + * tetris-bsd now uses its name, (Closes: #50077) + * Fixed phantasia/characs permissions so it's not world-readable + (passwords) (Closes: #50076) + + -- Joey Hess Sat, 13 Nov 1999 14:14:34 -0800 + +bsdgames (2.8-5) unstable; urgency=low + + * Patch from Malcolm Parsons to fix robots -A + score problem. (Closes: #49894) + * Patch from Malcolm to fix robots so it asks if you want a new game after + each game. (Closes: #49897) + + -- Joey Hess Thu, 11 Nov 1999 11:28:52 -0800 + +bsdgames (2.8-4) unstable; urgency=low + + * Fixed rot13 test suite to work before the package is installed. + Closes: #48559 + + -- Joey Hess Thu, 28 Oct 1999 11:35:49 -0700 + +bsdgames (2.8-3) unstable; urgency=low + + * Patch from William Brioschi to make random work on alpha. Closes: #47903 + (forwared upstream) + + -- Joey Hess Sun, 24 Oct 1999 16:27:54 -0700 + +bsdgames (2.8-2) unstable; urgency=low + + * Corrected the capital of Monaco. (Closes: #46119) + + -- Joey Hess Mon, 27 Sep 1999 12:53:20 -0700 + +bsdgames (2.8-1) unstable; urgency=low + + * New upstream release. + * Updated copyright based on the updated COPYING file + * RUn the regression tests at build time. + + -- Joey Hess Sun, 26 Sep 1999 14:30:06 -0700 + +bsdgames (2.7-3) unstable; urgency=low + + * FHS. This involves moving to /var/games for all game data. Score files + are moved to there in the postinst now. + * Removed bashisms in debian/rules + + -- Joey Hess Wed, 8 Sep 1999 17:02:12 -0700 + +bsdgames (2.7-2) unstable; urgency=low + + * Removed 2 patches I made that are no longer necessary. + + -- Joey Hess Wed, 7 Apr 1999 14:53:52 -0700 + +bsdgames (2.7-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Tue, 6 Apr 1999 23:50:51 -0700 + +bsdgames (2.6-2) unstable; urgency=low + + * Fixed backgammon to correctly calculate the game value, patch from + sjl@debian.lib.monash.edu.au (Stuart Lamble) (#35038) + + -- Joey Hess Thu, 25 Mar 1999 13:33:07 -0800 + +bsdgames (2.6-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Sun, 20 Dec 1998 00:24:18 -0500 + +bsdgames (2.5-4) frozen unstable; urgency=low + + * Commented out a bogus sprintf prototype in sail/sync.c, makes sail + not segfault on startup. (#30246). + + -- Joey Hess Tue, 1 Dec 1998 12:52:14 -0800 + +bsdgames (2.5-3) unstable; urgency=low + + * Built with newest debhelper to change how sgid binaries are registered. + + -- Joey Hess Tue, 27 Oct 1998 20:59:48 -0800 + +bsdgames (2.5-2) unstable; urgency=low + + * Removed bougs wordlist | wenglish dependancy. + + -- Joey Hess Thu, 1 Oct 1998 12:59:53 -0700 + +bsdgames (2.5-1) unstable; urgency=low + + * New upstream release - boggle is now free. + + -- Joey Hess Thu, 24 Sep 1998 17:17:32 -0700 + +bsdgames (2.4-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Sat, 5 Sep 1998 15:49:53 -0700 + +bsdgames (2.3-2) unstable; urgency=low + + * Make NEWS be a symlink to the upstream changelog, so the file name is + preserved. + + -- Joey Hess Thu, 20 Aug 1998 15:57:14 -0700 + +bsdgames (2.3-1) unstable; urgency=low + + * New upstream release, that fixes a file in /tmp security hole in sail + and also integrates many security fixes from OpenBSD intended to let the + games run sgid games. + * Given those fixes, I've re-enabled the sgid games bit on the games + that need it, and removed the README.Debian about this. + * Reworked how configure script is run, following the author's new docs in + PACKAGING. + * Applied patch from upstream to fix #25933, segfault in number if given a + negative value. + * Re-enabled bell in robots, it seems to work ok in an xterm now. + + -- Joey Hess Wed, 19 Aug 1998 14:54:48 -0700 + +bsdgames (2.1-8) unstable; urgency=low + + * Use single = in postrm (#25512). + + -- Joey Hess Fri, 7 Aug 1998 12:14:35 -0700 + +bsdgames (2.1-7) unstable; urgency=low + + * Fixed menu file so adventure will show up. + + -- Joey Hess Wed, 5 Aug 1998 14:21:20 -0700 + +bsdgames (2.1-6) unstable; urgency=low + + * Once more rebuilt with newer ncurses lib to fix worm and mille + segfaults. Why is ncusrses doing this to me? + + -- Joey Hess Wed, 22 Jul 1998 20:22:01 -0700 + +bsdgames (2.1-5) unstable; urgency=low + + * Rebuilt with fakeroot to fix libtricks breakage. + + -- Joey Hess Thu, 16 Jul 1998 11:03:20 -0700 + +bsdgames (2.1-4) unstable; urgency=low + + * Fixed minor spelling error in quiz/europe (#24586), reported by Branden + Robinson. + + -- Joey Hess Tue, 14 Jul 1998 23:02:23 -0700 + +bsdgames (2.1-3) frozen unstable; urgency=medium + + * Reluctantly removed all sgid bits from all games in the package. + I have found at least 2 easy exploits of a sgid bit that get you sgid + games shells, and there are probably many more. See the TODO, which has + a security audit as it's first priority, but explains the difficulties + of one. + * Added a README.Debian exaplaining this in greater detail. + + -- Joey Hess Thu, 18 Jun 1998 10:06:54 -0700 + +bsdgames (2.1-2) frozen unstable; urgency=low + + * Just rebuilt with newer ncurses lib to fix worm and mille segfaults. + + -- Joey Hess Sun, 7 Jun 1998 09:17:11 -0400 + +bsdgames (2.1-1) frozen unstable; urgency=low + + * New upstream bugfix release: + - adds man page for wargames to upstream source. + - uses .Bstar for battlestar save game file (a change I made long ago to + the debian version) + - changes to build process that don't affect us. + - bugfixes. + + -- Joey Hess Mon, 30 Mar 1998 12:03:30 -0800 + +bsdgames (2.0-4) unstable; urgency=low + + * No high score files are conffiles now. + * For phantasia's "monsters" and "void" files, which cannot be simply + touched in the postinst, I now copy them over from + /usr/share/games/bsdgames/phantasia in the postinst, if they don't + already exist. + + -- Joey Hess Tue, 10 Mar 1998 18:08:51 -0800 + +bsdgames (2.0-3) unstable; urgency=low + + * Added a man page for wargames. (Wow, never thought my movie guide book + would be useful in debian development!) + + -- Joey Hess Sun, 22 Feb 1998 18:42:17 -0800 + +bsdgames (2.0-2) unstable; urgency=low + + * Updated standards-version. + + -- Joey Hess Mon, 9 Feb 1998 15:09:56 -0800 + +bsdgames (2.0-1) unstable; urgency=low + + * New upstream release. + * Sail works again now, added back to package. Now all games are properly + working with libc6, at last. + * Removed hunt from the debian menu - for now, you need to manually run + huntd, and then hunt. + + -- Joey Hess Fri, 26 Dec 1997 13:34:34 -0500 + +bsdgames (1.5-4) unstable; urgency=low + + * Sparc fixes: + - Removed strcpy(), strncpy() prototypes. + - Modified snake/snake/move.c to not redefine raw(). + - Modified worms.c to not redefine random. + + -- Joey Hess Thu, 11 Dec 1997 12:10:17 -0500 + +bsdgames (1.5-3) unstable; urgency=low + + * Fixed adventure to work again, and added it back into the package. + Thanks, Culus! + * Moved screen savers into Screen/Save/Text menu. + + -- Joey Hess Fri, 21 Nov 1997 16:22:14 -0500 + +bsdgames (1.5-2) unstable; urgency=low + + * Removed the factor program, which is also in shellutils (#14676). + * Modified primes.6 man page, so it only documents the primes program + (used to document factor and primes). + * Install factor.6 as primes.6, instead of making a symlink. + * Use debhelper. + + -- Joey Hess Sun, 9 Nov 1997 14:13:05 -0500 + +bsdgames (1.5-1) unstable; urgency=low + + * New upstream release. + - new games: adventure, phantasia, pig, quiz, random. + - updated other games to new versions. + * Libc6 at last. + - however, adventure and sail are currently broken under libc6, + and not included in the binary package. + * Changed how the configure script is run during building, new method + is more robust. + * Fixed menu file entry for go fish to pause after end of game so the user + can see who won. + * Make tetris-bsd score file a conffile. + * Use pristine upstream source. + + -- Joey Hess Sat, 19 Jul 1997 12:25:03 -0400 + +bsdgames (1.4-1) unstable; urgency=low + + * New upstream release, incorporates many of the changes I made for + debian. + * No longer have to delete bog and paranioa out of the upstream source, + they have been split out into a bsdgames-nonfree package. + * Tetris is now part of the upstream source, no need for tetris.shar. + * /usr/games/tetris renamed to /usr/games/tetris-bsd + * /usr/share used for arch-independant data. + * Reccommends: wordlist | wenglish; closes #8487 + + -- Joey Hess Thu, 1 May 1997 23:07:46 -0400 + +bsdgames (1.3-8) unstable; urgency=low + + * Removed fortune from descrition, as fortune is not included in this + package (#9168). + * Converted menufile to menu-1 format. + + -- Joey Hess Mon, 28 Apr 1997 13:25:24 -0400 + +bsdgames (1.3-7) frozen unstable; urgency=low + + * Fixed problem with including tetris in the source package. Tetris is now + included as a shar archive. + + -- Joey Hess Wed, 16 Apr 1997 18:39:31 -0400 + +bsdgames (1.3-6) frozen unstable; urgency=low + + * Fixed segfault in backgammon if any command line options were given. + * Use backgammon -pb in the debian menu file. + + -- Joey Hess Tue, 15 Apr 1997 14:27:04 -0400 + +bsdgames (1.3-5) frozen unstable; urgency=low + + * Hacked around in mille to fix bug #8556. + + -- Joey Hess Tue, 8 Apr 1997 20:03:23 -0400 + +bsdgames (1.3-4) unstable; urgency=low + + * Fixed sparse files problem (#8488) -- the package should install in much + less space now. + * Routine update of debian/rules: + Run dpkg-gencontrol after debstd, and delete substvars during clean. + + -- Joey Hess Fri, 4 Apr 1997 19:48:12 -0500 + +bsdgames (1.3-3) unstable; urgency=low + + * Fixed problems in source package: + * Removed binaries in hangman directory. + * dpkg-source -x would not work with version 1.3-2. Fixed this. + * Corrected typo in hangman's man page. + + -- Joey Hess Wed, 26 Mar 1997 14:02:24 -0500 + +bsdgames (1.3-2) unstable; urgency=low + + * robots: if player cannot move, don't print junk characters in xterm when + trying to beep. + * Routine update of debian/rules: + Run dpkg-gencontrol after debstd, and delete substvars during clean. + * Added tetris, thanks to David Frey . + + -- Joey Hess Sun, 23 Mar 1997 18:05:41 -0500 + +bsdgames (1.3-1) unstable; urgency=low + + * First release. + * Link with -ncurses instead of -termcap. + * "rm -r bog paranioa" to remove them from the source package. Their + copyright doesn't let them be in debian. + * Many changes to get it all to compile. + * More changes for debian packaging; moved score files into /var, made + some programs sgid games so they could write to score files, etc. + * Fixed up man pages. + * battlestar: renamed save file to ~/.Bstar + * cribbage: display help properly even if PAGER is not set to an absolute + pathname of the pager. + * snscore: don't segfault if the score file is empty. + * snscore: don't give "too many players" error. + + -- Joey Hess Thu, 20 Mar 1997 23:31:16 -0500 --- bsdgames-2.13.orig/debian/compat +++ bsdgames-2.13/debian/compat @@ -0,0 +1 @@ +4 --- bsdgames-2.13.orig/debian/copyright +++ bsdgames-2.13/debian/copyright @@ -0,0 +1,9 @@ +This is a Debian prepackaged version of the BSD games package. + +This package was put together by Joey Hess , using +sources from: + ftp://sunsite.unc.edu/pub/Linux/games/ + +Here is the full text of the COPYING file: + + --- bsdgames-2.13.orig/debian/menu +++ bsdgames-2.13/debian/menu @@ -0,0 +1,53 @@ +?package(bsdgames):needs="text" section="Apps/Educational" \ + title="Arithmetic Quiz" command="sh -c '/usr/games/arithmetic;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Games/Simulation" \ + title="Air Traffic Controller" \ + command="sh -c '/usr/games/atc ; echo;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Games/Adventure" \ + title="Battlestar" command="sh -c '/usr/games/battlestar;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Games/Card" \ + title="Canfield" command="/usr/games/canfield" +?package(bsdgames):needs="text" section="Games/Card" \ + title="Cribbage" command="/usr/games/cribbage" +?package(bsdgames):needs="text" section="Games/Card" \ + title="Go Fish" \ + command="sh -c '/usr/games/fish;echo;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Games/Card" \ + title="Mille Bournes" command="/usr/games/mille" +?package(bsdgames):needs="text" section="Games/Board" \ + title="Monopoly" command="/usr/games/monop" +?package(bsdgames):needs="text" section="Games/Board" hints="Backgammon" \ + title="Backgammon" command="/usr/games/backgammon -pb" +?package(bsdgames):needs="text" section="Screen/Save/Text" \ + title="Rain" command="/usr/games/rain" +?package(bsdgames):needs="text" section="Games/Arcade" \ + title="Robots" command="/usr/games/robots" +?package(bsdgames):needs="text" section="Games/Simulation" \ + title="Sail" command="/usr/games/sail" +?package(bsdgames):needs="text" section="Games/Arcade" \ + title="Snake" command="sh -c '/usr/games/snake;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Games/Arcade" \ + title="Star Trek" command="/usr/games/trek" +?package(bsdgames):needs="text" section="Games/Arcade" \ + title="Worm" command="sh -c '/usr/games/worm;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Screen/Save/Text" \ + title="Worms" command="/usr/games/worms" +?package(bsdgames):needs="text" section="Games/Adventure" \ + title="Hunt the Wumpus" command="/usr/games/wump" +?package(bsdgames):needs="text" section="Games/Tetris-like" \ + title="Bsd Tetris" \ + command="sh -c '/usr/games/tetris-bsd;echo;echo PRESS ENTER;read line'" +?package(bsdgames):needs="text" section="Games/Board" hints="Go" \ + title="Gomoku" \ + command="/usr/games/gomoku" +?package(bsdgames):needs="text" section="Games/Adventure" \ + title="Phantasia" \ + command="/usr/games/phantasia" +?package(bsdgames):needs="text" section="Games/Adventure" \ + title="Adventure" \ + command="/usr/games/adventure" +?package(bsdgames):needs="text" section="Games/Puzzles" \ + title="Hangman" command="/usr/games/hangman" +?package(bsdgames):needs="text" section="Games/Puzzles" \ + title="Boggle" \ + command=/usr/games/boggle --- bsdgames-2.13.orig/debian/postinst +++ bsdgames-2.13/debian/postinst @@ -0,0 +1,46 @@ +#!/bin/sh -e + +SCOREFILES=" + /var/games/bsdgames/atc_score + /var/games/bsdgames/battlestar.log + /var/games/bsdgames/cfscores + /var/games/bsdgames/criblog + /var/games/bsdgames/robots_roll + /var/games/bsdgames/saillog + /var/games/bsdgames/snake.log + /var/games/bsdgames/snakerawscores + /var/games/bsdgames/tetris-bsd.scores + /var/games/bsdgames/phantasia/characs + /var/games/bsdgames/phantasia/gold + /var/games/bsdgames/phantasia/lastdead + /var/games/bsdgames/phantasia/mess + /var/games/bsdgames/phantasia/motd + /var/games/bsdgames/phantasia/scoreboard + /var/games/bsdgames/phantasia/void + /var/games/bsdgames/phantasia/monsters" + +# These files cannot just be zero-byte files: +if [ ! -e /var/games/bsdgames/phantasia/void ]; then + cp /usr/share/games/bsdgames/phantasia/void \ + /var/games/bsdgames/phantasia/void +fi +if [ ! -e /var/games/bsdgames/phantasia/monsters ] ; then + cp /usr/share/games/bsdgames/phantasia/monsters \ + /var/games/bsdgames/phantasia/monsters +fi + +touch $SCOREFILES +chown root:games $SCOREFILES +chmod 664 $SCOREFILES + +# These files may not be world-readable as they have passwords +# in them. +chmod 660 /var/games/bsdgames/phantasia/characs + +# I have to make this directory here, because older version of this package +# always deleted it in their postrm. Oops. +mkdir -p /var/games/bsdgames/sail +chown root:games /var/games/bsdgames/sail +chmod g+rws /var/games/bsdgames/sail + +#DEBHELPER# --- bsdgames-2.13.orig/debian/postrm +++ bsdgames-2.13/debian/postrm @@ -0,0 +1,29 @@ +#!/bin/sh -e + +SCOREFILES=" + /var/games/bsdgames/atc_score + /var/games/bsdgames/battlestar.log + /var/games/bsdgames/cfscores + /var/games/bsdgames/criblog + /var/games/bsdgames/robots_roll + /var/games/bsdgames/saillog + /var/games/bsdgames/snake.log + /var/games/bsdgames/snakerawscores + /var/games/bsdgames/tetris-bsd.scores + /var/games/bsdgames/phantasia/characs + /var/games/bsdgames/phantasia/gold + /var/games/bsdgames/phantasia/lastdead + /var/games/bsdgames/phantasia/mess + /var/games/bsdgames/phantasia/motd + /var/games/bsdgames/phantasia/scoreboard + /var/games/bsdgames/phantasia/void + /var/games/bsdgames/phantasia/monsters" + +# Remove high score files on purge. +if [ "$1" = "purge" ]; then + rm -f $SCOREFILES + rmdir /var/games/bsdgames/phantasia /var/games/bsdgames/sail \ + /var/games/bsdgames /var/games 2>/dev/null || true +fi + +#DEBHELPER# --- bsdgames-2.13.orig/debian/preinst +++ bsdgames-2.13/debian/preinst @@ -0,0 +1,55 @@ +#!/bin/sh -e + +SCOREFILES=" + /var/games/bsdgames/atc_score + /var/games/bsdgames/battlestar.log + /var/games/bsdgames/cfscores + /var/games/bsdgames/criblog + /var/games/bsdgames/saillog + /var/games/bsdgames/snake.log + /var/games/bsdgames/snakerawscores + /var/games/bsdgames/tetris-bsd.scores + /var/games/bsdgames/phantasia/characs + /var/games/bsdgames/phantasia/gold + /var/games/bsdgames/phantasia/lastdead + /var/games/bsdgames/phantasia/mess + /var/games/bsdgames/phantasia/motd + /var/games/bsdgames/phantasia/scoreboard + /var/games/bsdgames/phantasia/void + /var/games/bsdgames/phantasia/monsters" + +# We used to keep score files in /var/lib/games, and if files are there, +# move them into the new location. +if [ -d /var/lib/games ]; then + + # Have to set up directory hierarchy, since this is running as a + # preinst. + mkdir -p /var/games/bsdgames/phantasia + chown root:games /var/games/bsdgames \ + /var/games/bsdgames/phantasia + chmod g+rws /var/games/bsdgames \ + /var/games/bsdgames/phantasia + + for file in $SCOREFILES; do + oldfile=`echo $file | sed s:/var/games/:/var/lib/games/:` + if [ -e $oldfile ]; then + if [ ! -e $file ]; then + mv -f $oldfile $file + else + rm -f $oldfile + fi + fi + done + + # Delete the old directory hierarchy. + rm -rf /var/lib/games/bsdgames +fi + +# I didn't move robots_roll above, because the version used by old bsdgames has +# a different file format. Make sure that if I'm ugrading from pre 2.8 days, +# the old file is deleted. +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 2.8; then + rm -rf /var/games/bsdgames/robots_roll +fi + +#DEBHELPER# --- bsdgames-2.13.orig/debian/rules +++ bsdgames-2.13/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f + +build: build-stamp +build-stamp: + dh_testdir + + # Set up wordlist + cat /usr/share/dict/american-english /usr/share/dict/british-english | \ + sort | uniq > temp-dictionary + + ./configure + $(MAKE) + $(MAKE) test + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean temp-dictionary + -$(MAKE) -i distclean + +binary-indep: build + +binary-arch: build + dh_testdir + dh_testroot + dh_clean + dh_installdirs usr/share/doc/bsdgames \ + usr/share/games/bsdgames/phantasia + + $(MAKE) install + cp atc/BUGS debian/bsdgames/usr/share/doc/bsdgames/BUGS.atc + cp hunt/README debian/bsdgames/usr/share/doc/bsdgames/README.hunt + cp hunt/README.linux debian/bsdgames/usr/share/doc/bsdgames/README.linux.hunt + cp phantasia/README debian/bsdgames/usr/share/doc/bsdgames/README.phantasia + cp boggle/README debian/bsdgames/usr/share/doc/bsdgames/README.boggle + cp boggle/README.linux debian/bsdgames/usr/share/doc/bsdgames/README.linux.boggle + # Since factor is not installed, and primes.6 is a symlink to + # factor.6, I need to change that to the actual man page. + -rm -f debian/bsdgames/usr/share/man/man6/factor.6.gz \ + debian/bsdgames/usr/share/man/man6/primes.6 + cp factor/factor.6 debian/bsdgames/usr/share/man/man6/primes.6 + # Move phantasia's binary state files into /usr, they are copied + # back to /var in the postinst. + mv debian/bsdgames/var/games/bsdgames/phantasia/monsters \ + debian/bsdgames/var/games/bsdgames/phantasia/void \ + debian/bsdgames/usr/share/games/bsdgames/phantasia/ + + dh_installdocs ChangeLog ChangeLog.0 TODO README \ + trek/USD.doc/trek.me SECURITY THANKS AUTHORS BUGS YEAR2000 + cat COPYING >> debian/bsdgames/usr/share/doc/bsdgames/copyright + dh_installexamples + dh_installmenu + dh_installcron + dh_installchangelogs -k NEWS + dh_strip + dh_compress + dh_fixperms + + chmod -R u+rw debian/bsdgames/usr/ + # Games with score files need to be set up sgid games. + chown root:games debian/bsdgames/usr/games/atc \ + debian/bsdgames/usr/games/battlestar \ + debian/bsdgames/usr/games/canfield \ + debian/bsdgames/usr/games/cribbage \ + debian/bsdgames/usr/games/robots \ + debian/bsdgames/usr/games/snake \ + debian/bsdgames/usr/games/tetris-bsd \ + debian/bsdgames/usr/games/phantasia \ + debian/bsdgames/usr/games/sail + chmod g+s debian/bsdgames/usr/games/atc \ + debian/bsdgames/usr/games/battlestar \ + debian/bsdgames/usr/games/canfield \ + debian/bsdgames/usr/games/cribbage \ + debian/bsdgames/usr/games/robots \ + debian/bsdgames/usr/games/snake \ + debian/bsdgames/usr/games/tetris-bsd \ + debian/bsdgames/usr/games/phantasia \ + debian/bsdgames/usr/games/sail + # The game directories need to be sgid too, and let's + # remove all the zero byte score files in them. + chown root:games debian/bsdgames/var/games/bsdgames/ \ + debian/bsdgames/var/games/bsdgames/sail \ + debian/bsdgames/var/games/bsdgames/phantasia + chmod g+rws debian/bsdgames/var/games/bsdgames/ \ + debian/bsdgames/var/games/bsdgames/sail \ + debian/bsdgames/var/games/bsdgames/phantasia + find debian/bsdgames/var/games/bsdgames -size 0 -exec rm {} \; + + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- bsdgames-2.13.orig/debian/watch +++ bsdgames-2.13/debian/watch @@ -0,0 +1,2 @@ +version=2 +ftp://sunsite.unc.edu/pub/Linux/games/bsd-games-([0-9]+.*).tar.gz --- bsdgames-2.13.orig/factor/factor.6 +++ bsdgames-2.13/factor/factor.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: factor.6,v 1.6 2001/04/02 22:42:38 wiz Exp $ +.\" $NetBSD: factor.6,v 1.5 1997/10/10 12:51:27 lukem Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -42,13 +42,12 @@ .\" chongo /\oo/\ .\" .Dd May 31, 1993 -.Dt FACTOR 6 +.Dt PRIMES 6 .Os .Sh NAME -.Nm factor , .Nm primes .Nd -factor a number, generate primes +generate primes .Sh SYNOPSIS .Nm .Op Ar number ... @@ -57,32 +56,6 @@ .Op Ar start Op Ar stop .Sh DESCRIPTION The -.Nm -utility will factor integers between -2147483648 and 2147483647 inclusive. -When a number is factored, it is printed, followed by a -.Dq \: , -and the list of factors on a single line. -Factors are listed in ascending order, and are preceded by a space. -If a factor divides a value more than once, it will be printed -more than once. -.Pp -When -.Nm -is invoked with one or more arguments, -each argument will be factored. -.Pp -When -.Nm -is invoked with no arguments, -.Nm -reads numbers, one per line, from standard input, until end of file or error. -Leading white-space and empty lines are ignored. -Numbers may be preceded by a single - or +. -Numbers are terminated by a non-digit character (such as a newline). -After a number is read, it is factored. -Input lines must not be longer than 255 characters. -.Pp -The .Nm primes utility prints primes in ascending order, one per line, starting at or above .Ar start @@ -113,14 +86,6 @@ .Ar start value is terminated by a non-digit character (such as a newline). The input line must not be longer than 255 characters. -.Sh DIAGNOSTICS -Out of range or invalid input results in -.Sq ouch -being written to standard error. .Sh BUGS -.Nm -cannot handle the -.Dq 10 most wanted -factor list, .Nm primes won't get you a world record. --- bsdgames-2.13.orig/hangman/extern.c +++ bsdgames-2.13/hangman/extern.c @@ -61,6 +61,7 @@ }; int Errors, Wordnum = 0; +unsigned int Minlen = MINLEN; double Average = 0.0; --- bsdgames-2.13.orig/hangman/getword.c +++ bsdgames-2.13/hangman/getword.c @@ -64,7 +64,7 @@ if (fgets(Word, BUFSIZ, inf) == NULL) continue; Word[strlen(Word) - 1] = '\0'; - if (strlen(Word) < MINLEN) + if (strlen(Word) < Minlen) continue; for (wp = Word; *wp; wp++) if (!islower(*wp)) --- bsdgames-2.13.orig/hangman/hangman.6.in +++ bsdgames-2.13/hangman/hangman.6.in @@ -42,6 +42,7 @@ .Sh SYNOPSIS .Nm .Op Fl d Ar wordlist +.Op Fl m Ar minlen .Sh DESCRIPTION In .Nm "" , @@ -55,6 +56,8 @@ Use the specified .Ar wordlist instead of the default one named below. +.It Fl m +Set the minimum word length to use. The default is 6 letters. .El .Sh FILES .Bl -tag -width @hangman_wordsfile@ -compact --- bsdgames-2.13.orig/hangman/hangman.h +++ bsdgames-2.13/hangman/hangman.h @@ -73,6 +73,7 @@ extern const char *const Noose_pict[]; extern int Errors, Wordnum; +extern unsigned int Minlen; extern double Average; --- bsdgames-2.13.orig/hangman/main.c +++ bsdgames-2.13/hangman/main.c @@ -62,14 +62,21 @@ /* Revoke setgid privileges */ setregid(getgid(), getgid()); - while ((ch = getopt(argc, argv, "d:")) != -1) { + while ((ch = getopt(argc, argv, "m:d:")) != -1) { switch (ch) { case 'd': Dict_name = optarg; break; + case 'm': + Minlen = atoi(optarg); + if (Minlen < 2) { + fprintf(stderr, "minlen too short\n"); + exit(1); + } + break; case '?': default: - (void)fprintf(stderr, "usage: hangman [-d wordlist]\n"); + (void)fprintf(stderr, "usage: hangman [-d wordlist] [-m minlen]\n"); exit(1); } } --- bsdgames-2.13.orig/hunt/hunt/hunt.6.in +++ bsdgames-2.13/hunt/hunt/hunt.6.in @@ -164,13 +164,13 @@ .It Ic @ Throw biggest bomb (Takes 441 charges) .It Ic o -Throw small slime (Takes 15 charges) +Throw small slime (Takes 5 charges) .It Ic O -Throw big slime (Takes 30 charges) +Throw big slime (Takes 10 charges) .It Ic p -Throw bigger slime (Takes 45 charges) +Throw bigger slime (Takes 15 charges) .It Ic P -Throw biggest slime (Takes 60 charges) +Throw biggest slime (Takes 20 charges) .It Ic s Scan (show where other players are) (Takes 1 charge) .It Ic c --- bsdgames-2.13.orig/phantasia/Makefrag +++ bsdgames-2.13/phantasia/Makefrag @@ -41,11 +41,11 @@ $(INSTALL_SCORE_GAME) phantasia/phantasia $(INSTALL_PREFIX)$(GAMESDIR)/phantasia $(HIDE_GAME) phantasia (set -e; for f in $(phantasia_VFILES1); do \ - cp phantasia/$$f $(PHANTASIA_DIR)/$$f; \ + cp phantasia/$$f $(INSTALL_PREFIX)$(PHANTASIA_DIR)/$$f; \ $(INSTALL_SCORE_FILE) $(PHANTASIA_DIR)/$$f; done) (set -e; for f in $(phantasia_VFILES2); do \ if [ ! -e $(PHANTASIA_DIR)/$$f ]; then \ - cp phantasia/$$f $(PHANTASIA_DIR)/$$f; fi; done; \ + cp phantasia/$$f $(INSTALL_PREFIX)$(PHANTASIA_DIR)/$$f; fi; done; \ $(INSTALL_SCORE_FILE) $(PHANTASIA_DIR)/scoreboard; \ $(INSTALL_SCORE_FILE) -p $(PHANTASIA_DIR)/characs) $(INSTALL_MANUAL) phantasia/phantasia.6 --- bsdgames-2.13.orig/tetris/screen.c +++ bsdgames-2.13/tetris/screen.c @@ -292,6 +292,8 @@ newtt = oldtt; newtt.c_lflag &= ~(ICANON|ECHO); newtt.c_oflag &= ~OXTABS; + newtt.c_cc[VMIN] = 1; /* don't lag behind 3 keystrokes on sun */ + newtt.c_cc[VTIME] = 0; /* systems -- JEH */ if (tcsetattr(0, TCSADRAIN, &newtt) < 0) stop("tcsetattr() fails"); ospeed = cfgetospeed(&newtt); --- bsdgames-2.13.orig/trek/trek.6.in +++ bsdgames-2.13/trek/trek.6.in @@ -81,7 +81,7 @@ .Sh AUTHOR Eric Allman .Sh SEE ALSO -.Pa /usr/share/doc/usd/31.trek +.Pa /usr/share/doc/bsdgames/trek.me.gz .Sh COMMAND SUMMARY .Bl -item -compact .It --- bsdgames-2.13.orig/wargames/wargames.6 +++ bsdgames-2.13/wargames/wargames.6 @@ -44,6 +44,6 @@ resulting is much smaller.... .Sh SEE ALSO .Sy Wargames , -the movie (an MGM production, PGP 13, directed by John Badham, 1983). +the movie (an MGM production, PG 13, directed by John Badham, 1983). .Sh AUTHOR This manual page was written by Joey Hess . --- bsdgames-2.13.orig/AUTHORS +++ bsdgames-2.13/AUTHORS @@ -8,7 +8,7 @@ 1997; I divided it into bsd-games and bsd-games-non-free according to the established (DFSG/OSD) definition, following the division used for the Debian package of 1.3. Much of the packaging has been written or -extensively modified by myself. Joey Hess +extensively modified by myself. Joey Hess wrote the manpages for wargames and paranoia. Based on the source and manpages, here are the details of the people --- bsdgames-2.13.orig/THANKS +++ bsdgames-2.13/THANKS @@ -12,7 +12,7 @@ For recent work (since 1.3), thanks to: -Joey Hess +Joey Hess For the Debian patches, which covered what was needed to make the games compile with current libraries, provided many bug fixes and showed --- bsdgames-2.13.orig/config.params +++ bsdgames-2.13/config.params @@ -0,0 +1,40 @@ +# This file is read by configure and is used during the build of the +# Debian package. + +# Don't run configure interactively. +bsd_games_cfg_non_interactive=y + +# Install into here for building the package. +bsd_games_cfg_install_prefix=`pwd`/debian/bsdgames + +# Do not build or install these games: +bsd_games_cfg_no_build_dirs="dm banner fortune factor" + +# Keep huntd in /usr/sbin as it was in the past. I may +# change this later. +bsd_games_cfg_sbindir=/usr/sbin + +# Debian doesn't like cluttering up the /usr/*/games/ dirs too much, +# use a subdir. /var too. +bsd_games_cfg_usrlibdir=/usr/lib/games/bsdgames +bsd_games_cfg_sharedir=/usr/share/games/bsdgames +bsd_games_cfg_varlibdir=/var/games/bsdgames + +# Do not do chown now, we arn't running as root. +bsd_games_cfg_do_chown=n + +# Debian perfers symlinks for manpages. +bsd_games_cfg_use_dot_so=symlinks + +# I'll handle manpage compressing. +bsd_games_cfg_gzip_manpages=n + +# Policy says to use /usr/bin/pager by default. +bsd_games_cfg_pager=/usr/bin/pager + +# Always use the same wordlist for boggle, and don't use web2, it's too +# big. Instead, use the union of the wenglish and wbritish wordlists. +bsd_games_cfg_dictionary_src=`pwd`/temp-dictionary + +# Put it in /usr/share/games with the rest of the games data. +bsd_games_cfg_wtf_acronymfile=/usr/share/games/bsdgames/acronyms