Add patch by David Leverton to fix 64bit support #77032.
authorMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2005 05:19:06 +0000 (05:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2005 05:19:06 +0000 (05:19 +0000)
games-misc/bsd-games/ChangeLog
games-misc/bsd-games/Manifest
games-misc/bsd-games/bsd-games-2.13-r1.ebuild [new file with mode: 0644]
games-misc/bsd-games/bsd-games-2.13.ebuild [deleted file]
games-misc/bsd-games/files/2.13-64bit.patch [new file with mode: 0644]
games-misc/bsd-games/files/2.13-debian-11.patch [new file with mode: 0644]
games-misc/bsd-games/files/2.13-gentoo.patch [moved from games-misc/bsd-games/files/bsdgames-2.13-gentoo.diff with 85% similarity]
games-misc/bsd-games/files/bsdgames_2.13-11.diff [deleted file]
games-misc/bsd-games/files/digest-bsd-games-2.13-r1 [moved from games-misc/bsd-games/files/digest-bsd-games-2.13 with 100% similarity]

index 2c41dc27451e5e347345471068b03be1fb163b85..356590d0f6b8c0a0bce154df2060f9742799bae3 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for games-misc/bsd-games
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.9 2004/12/29 00:07:52 ciaranm Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.10 2005/01/10 05:19:06 vapier Exp $
+
+*bsd-games-2.13-r1 (10 Jan 2005)
+
+  10 Jan 2005; Mike Frysinger <vapier@gentoo.org> +files/2.13-64bit.patch,
+  +files/2.13-debian-11.patch, +files/2.13-gentoo.patch,
+  -files/bsdgames-2.13-gentoo.diff, -files/bsdgames_2.13-11.diff,
+  +bsd-games-2.13-r1.ebuild:
+  Add patch by David Leverton to fix 64bit support #77032.
 
   29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
   Change encoding to UTF-8 for GLEP 31 compliance
index 19afc9e53bfe0c25ee816a4f82168797d36e06b4..36eb0d516761b959a1fb62873590c906bf2fcedc 100644 (file)
@@ -1,7 +1,18 @@
-MD5 683d130edf9891df6b6fbf1fbde25a9d ChangeLog 1160
-MD5 7cc9e95233f12afc1b1e8be0de9890dd bsd-games-2.13.ebuild 3920
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 c90c6eaeac51e6ab3a2cb88bcc31402a ChangeLog 1481
 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 49c481f8746cf44f3fe40302e6ffd77e files/bsdgames-2.13-gentoo.diff 253
-MD5 1eb5517d165adf9425cb382abc6c6528 files/digest-bsd-games-2.13 67
+MD5 2c6287326d0025f0e9a8986b8a06677b bsd-games-2.13-r1.ebuild 3790
+MD5 7b405328dec7855e30134bf6164ce565 files/2.13-gentoo.patch 254
 MD5 cd4e0a199968b029d1d043c45b36b0c8 files/config.params-gentoo 1244
-MD5 81250dd8b2e30e4076c1e3de43f669ad files/bsdgames_2.13-11.diff 40228
+MD5 fa8fffba1c31764862eacba7536a0bbf files/2.13-debian-11.patch 9384
+MD5 1eb5517d165adf9425cb382abc6c6528 files/digest-bsd-games-2.13-r1 67
+MD5 d7db0213c9e81e091c2c9ec0b4d0c763 files/2.13-64bit.patch 701
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.14 (GNU/Linux)
+
+iD8DBQFB4hBfroRuSHgZdywRAuGrAJ9R+6fFwaauthGlRMNVQz3cAX+34QCeKqAC
+M/4R1aObhtM5N+vUr8yAn+o=
+=5AAe
+-----END PGP SIGNATURE-----
diff --git a/games-misc/bsd-games/bsd-games-2.13-r1.ebuild b/games-misc/bsd-games/bsd-games-2.13-r1.ebuild
new file mode 100644 (file)
index 0000000..ef607a0
--- /dev/null
@@ -0,0 +1,110 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.13-r1.ebuild,v 1.1 2005/01/10 05:19:06 vapier Exp $
+
+inherit eutils games
+
+DESCRIPTION="collection of games from NetBSD"
+HOMEPAGE="http://www.advogato.org/proj/bsd-games/"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses
+       sys-apps/miscfiles
+       sys-apps/less
+       sys-devel/flex
+       >=sys-apps/sed-4"
+DEPEND="${RDEPEND}
+       sys-devel/bison"
+
+# Set GAMES_TO_BUILD variable to whatever you want
+export GAMES_TO_BUILD=${GAMES_TO_BUILD:="adventure arithmetic atc
+backgammon banner battlestar bcd boggle caesar canfield cribbage fish
+gomoku hangman hunt mille monop morse number phantasia pig pom ppt
+primes quiz rain random robots sail snake tetris trek wargames worm
+worms wtf wump"}
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch "${FILESDIR}"/${PV}-debian-11.patch
+       epatch "${FILESDIR}"/${PV}-gentoo.patch
+       epatch "${FILESDIR}"/${PV}-64bit.patch
+
+       sed -i \
+               -e "s:/usr/games:${GAMES_BINDIR}:" \
+               wargames/wargames \
+               || die "sed wargames failed"
+
+       cp ${FILESDIR}/config.params-gentoo config.params
+       echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params
+}
+
+src_compile() {
+       ./configure || die
+       emake OPTIMIZE="${CFLAGS}" || die "emake failed"
+}
+
+build_game() { has ${1} ${GAMES_TO_BUILD}; }
+do_statefile() {
+       touch ${D}/${GAMES_STATEDIR}/${1}
+       chmod ug+rw ${D}/${GAMES_STATEDIR}/${1}
+}
+src_install() {
+       dodir ${GAMES_BINDIR} ${GAMES_STATEDIR} /usr/share/man/man{1,6}
+       make DESTDIR=${D} install-strip || die "make install-strip failed"
+
+       dodoc AUTHORS BUGS ChangeLog ChangeLog.0 INSTALL \
+               README PACKAGING SECURITY THANKS TODO YEAR2000
+
+       # special subdirs
+       #build_game atc && dodir ${GAMES_DATADIR}/atc
+       #build_game boggle && dodir ${GAMES_DATADIR}/boggle
+       #build_game quiz && dodir ${GAMES_DATADIR}/quiz
+
+       # set some binaries to run as games group (+S)
+       build_game atc && fperms g+s ${GAMES_BINDIR}/atc
+       build_game battlestar && fperms g+s ${GAMES_BINDIR}/battlestar
+       build_game canfield && fperms g+s ${GAMES_BINDIR}/canfield
+       build_game cribbage && fperms g+s ${GAMES_BINDIR}/cribbage
+       build_game phantasia && fperms g+s ${GAMES_BINDIR}/phantasia
+       build_game robots && fperms g+s ${GAMES_BINDIR}/robots
+       build_game sail && fperms g+s ${GAMES_BINDIR}/sail
+       build_game snake && fperms g+s ${GAMES_BINDIR}/snake
+       build_game tetris && fperms g+s ${GAMES_BINDIR}/tetris-bsd
+
+       # state files
+       build_game atc && do_statefile atc_score
+       build_game battlestar && do_statefile battlestar.log
+       build_game canfield && do_statefile cfscores
+       build_game cribbage && do_statefile criblog
+       build_game robots && do_statefile robots_roll
+       build_game sail && do_statefile saillog
+       build_game snake && do_statefile snake.log && do_statefile snakerawscores
+       build_game tetris && do_statefile tetris-bsd.scores
+       # state dirs
+       #build_game phantasia && dodir ${GAMES_STATEDIR}/phantasia
+       #build_game sail && dodir ${GAMES_STATEDIR}/sail
+       chmod -R ug+rw ${D}/${GAMES_STATEDIR}/*
+
+       # extra docs
+       build_game atc && { docinto atc ; dodoc atc/BUGS; }
+       build_game boggle && { docinto boggle ; dodoc boggle/README{,.linux}; }
+       build_game hunt && { docinto hunt ; dodoc hunt/README{,.linux}; }
+       build_game phantasia && { docinto phantasia ; dodoc phantasia/{OWNER,README}; }
+       build_game trek && { docinto trek ; dodoc trek/USD.doc/trek.me; }
+
+       # Since factor is usually not installed, and primes.6 is a symlink to
+       # factor.6, make sure that primes.6 is ok ...
+       if build_game primes && [ ! `build_game factor` ] ; then
+               rm -f ${D}/usr/share/man/man6/{factor,primes}.6
+               newman factor/factor.6 primes.6
+       fi
+
+       prepalldocs
+       prepgamesdirs
+}
diff --git a/games-misc/bsd-games/bsd-games-2.13.ebuild b/games-misc/bsd-games/bsd-games-2.13.ebuild
deleted file mode 100644 (file)
index 002e239..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.13.ebuild,v 1.8 2004/06/24 22:53:13 agriffis Exp $
-
-inherit eutils games
-
-DESCRIPTION="collection of games from NetBSD"
-HOMEPAGE="http://www.advogato.org/proj/bsd-games/"
-SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="x86 ppc amd64 ~sparc"
-IUSE=""
-
-RDEPEND="sys-libs/ncurses
-       sys-apps/miscfiles
-       sys-apps/less
-       sys-devel/flex
-       >=sys-apps/sed-4"
-DEPEND="${RDEPEND}
-       sys-devel/bison"
-
-# Set GAMES_TO_BUILD variable to whatever you want
-export GAMES_TO_BUILD=${GAMES_TO_BUILD:="adventure arithmetic atc
-backgammon banner battlestar bcd boggle caesar canfield cribbage fish
-gomoku hangman hunt mille monop morse number phantasia pig pom ppt
-primes quiz rain random robots sail snake tetris trek wargames worm
-worms wtf wump"}
-
-src_unpack() {
-       unpack ${A} ; cd ${S}
-       epatch ${FILESDIR}/bsdgames_${PV}-11.diff
-       epatch ${FILESDIR}/bsdgames-${PV}-gentoo.diff
-
-       sed -i \
-               -e "s:/usr/games:${GAMES_BINDIR}:" wargames/wargames \
-                       || die "sed wargames failed"
-
-       cp ${FILESDIR}/config.params-gentoo config.params
-       echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params
-}
-
-src_compile() {
-       ./configure || die
-       emake OPTIMIZE="${CFLAGS}" || die "emake failed"
-}
-
-build_game() { has ${1} ${GAMES_TO_BUILD}; }
-do_statefile() {
-       touch ${D}/${GAMES_STATEDIR}/${1}
-       chmod ug+rw ${D}/${GAMES_STATEDIR}/${1}
-}
-src_install() {
-       dodir ${GAMES_BINDIR} ${GAMES_STATEDIR} /usr/share/man/man{1,6}
-       make DESTDIR=${D} install-strip || die "make install-strip failed"
-
-       dodoc AUTHORS BUGS ChangeLog ChangeLog.0 INSTALL \
-               README PACKAGING SECURITY THANKS TODO YEAR2000
-
-       # special subdirs
-       #[ `build_game atc` ] && dodir ${GAMES_DATADIR}/atc
-       #[ `build_game boggle` ] && dodir ${GAMES_DATADIR}/boggle
-       #[ `build_game quiz` ] && dodir ${GAMES_DATADIR}/quiz
-
-       # set some binaries to run as games group (+S)
-       [ `build_game atc` ] && fperms g+s ${GAMES_BINDIR}/atc
-       [ `build_game battlestar` ] && fperms g+s ${GAMES_BINDIR}/battlestar
-       [ `build_game canfield` ] && fperms g+s ${GAMES_BINDIR}/canfield
-       [ `build_game cribbage` ] && fperms g+s ${GAMES_BINDIR}/cribbage
-       [ `build_game phantasia` ] && fperms g+s ${GAMES_BINDIR}/phantasia
-       [ `build_game robots` ] && fperms g+s ${GAMES_BINDIR}/robots
-       [ `build_game sail` ] && fperms g+s ${GAMES_BINDIR}/sail
-       [ `build_game snake` ] && fperms g+s ${GAMES_BINDIR}/snake
-       [ `build_game tetris` ] && fperms g+s ${GAMES_BINDIR}/tetris-bsd
-
-       # state files
-       [ `build_game atc` ] && do_statefile atc_score
-       [ `build_game battlestar` ] && do_statefile battlestar.log
-       [ `build_game canfield` ] && do_statefile cfscores
-       [ `build_game cribbage` ] && do_statefile criblog
-       [ `build_game robots` ] && do_statefile robots_roll
-       [ `build_game sail` ] && do_statefile saillog
-       [ `build_game snake` ] && do_statefile snake.log && do_statefile snakerawscores
-       [ `build_game tetris` ] && do_statefile tetris-bsd.scores
-       # state dirs
-       #[ `build_game phantasia` ] && dodir ${GAMES_STATEDIR}/phantasia
-       #[ `build_game sail` ] && dodir ${GAMES_STATEDIR}/sail
-       chmod -R ug+rw ${D}/${GAMES_STATEDIR}/*
-
-       # extra docs
-       [ `build_game atc` ] && { docinto atc ; dodoc atc/BUGS; }
-       [ `build_game boggle` ] && { docinto boggle ; dodoc boggle/README{,.linux}; }
-       [ `build_game hunt` ] && { docinto hunt ; dodoc hunt/README{,.linux}; }
-       [ `build_game phantasia` ] && { docinto phantasia ; dodoc phantasia/{OWNER,README}; }
-       [ `build_game trek` ] && { docinto trek ; dodoc trek/USD.doc/trek.me; }
-
-       # Since factor is usually not installed, and primes.6 is a symlink to
-       # factor.6, make sure that primes.6 is ok ...
-       if [ `build_game primes` ] && [ ! `build_game factor` ] ; then
-               rm -f ${D}/usr/share/man/man6/{factor,primes}.6
-               newman factor/factor.6 primes.6
-       fi
-
-       prepalldocs
-       prepgamesdirs
-}
diff --git a/games-misc/bsd-games/files/2.13-64bit.patch b/games-misc/bsd-games/files/2.13-64bit.patch
new file mode 100644 (file)
index 0000000..1457c7e
--- /dev/null
@@ -0,0 +1,21 @@
+David Leverton writes:
+
+The 'adventure' game from the games-misc/bsd-games-2.13 package crashes 
+when saving the game on AMD64 (and probably other 64-bit systems, but I 
+haven't checked).  Find attached to fix this.
+
+http://bugs.gentoo.org/show_bug.cgi?id=77032
+
+--- bsd-games-2.13/adventure/crc.c~    1999-04-04 12:49:03.000000000 +0100
++++ bsd-games-2.13/adventure/crc.c     2005-01-07 02:42:07.027698064 +0000
+@@ -134,7 +134,8 @@
+                               if (step >= sizeof(crctab) / sizeof(crctab[0]))
+                                       step = 0;
+                       }
+-                      crcval = (crcval << 8) ^ crctab[i];
++                      /* Mask to 32 bits. */
++                      crcval = ((crcval << 8) ^ crctab[i]) & 0xffffffff;
+               }
+-      return crcval & 0xffffffff;     /* Mask to 32 bits. */
++      return crcval;
+ }
diff --git a/games-misc/bsd-games/files/2.13-debian-11.patch b/games-misc/bsd-games/files/2.13-debian-11.patch
new file mode 100644 (file)
index 0000000..f40e1ff
--- /dev/null
@@ -0,0 +1,324 @@
+--- 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/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 <for a good prime call: 391581 * 2^216193 - 1> /\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 <joeyh@kitenet.net>.
+--- 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 <joeyh@master.debian.org>
++extensively modified by myself.  Joey Hess <joeyh@debian.org>
+ 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 <joeyh@master.debian.org>
++Joey Hess <joeyh@debian.org>
+ 
+   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
+
similarity index 85%
rename from games-misc/bsd-games/files/bsdgames-2.13-gentoo.diff
rename to games-misc/bsd-games/files/2.13-gentoo.patch
index 3a07db73dfde277b10e5967c4827cd0d87313804..1993659dd942afd2a212eab9f932e84cc6021d65 100644 (file)
@@ -5,7 +5,7 @@
  Eric Allman
  .Sh SEE ALSO
 -.Pa /usr/share/doc/bsdgames/trek.me.gz
-+.Pa /usr/share/doc/${P}/trek.me.gz
++.Pa /usr/share/doc/${PF}/trek.me.gz
  .Sh COMMAND SUMMARY
  .Bl -item -compact
  .It
diff --git a/games-misc/bsd-games/files/bsdgames_2.13-11.diff b/games-misc/bsd-games/files/bsdgames_2.13-11.diff
deleted file mode 100644 (file)
index 97ae56d..0000000
+++ /dev/null
@@ -1,1234 +0,0 @@
---- 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 <joeyh@debian.org>
-+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 <joeyh@debian.org>  Sat, 16 Nov 2002 18:58:22 -0500
-+
-+bsdgames (2.13-10) unstable; urgency=low
-+
-+  * Updated to debhelper v4.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Sun,  7 Apr 2002 20:27:57 -0400
-+
-+bsdgames (2.13-6) unstable; urgency=low
-+
-+  * Fixed man page warnings, Closes: #139414
-+
-+ -- Joey Hess <joeyh@debian.org>  Thu, 21 Mar 2002 22:24:53 -0500
-+
-+bsdgames (2.13-4) unstable; urgency=low
-+
-+  * Corrected hint => hints, Closes: #134120
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Mon, 17 Sep 2001 00:51:07 -0400
-+
-+bsdgames (2.12-8) unstable; urgency=low
-+
-+  * Applied a patch from Igor Khavkine <i_khavki@alcor.concordia.ca> to
-+    make the package build on the Hurd. Closes: #98562
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Thu, 10 May 2001 21:49:37 -0400
-+
-+bsdgames (2.12-5) unstable; urgency=low
-+
-+  * Added AIUI, Closes: #90973
-+
-+ -- Joey Hess <joeyh@debian.org>  Sat, 24 Mar 2001 14:27:16 -0800
-+
-+bsdgames (2.12-4) unstable; urgency=low
-+
-+  * Added real dependancy alternate (lintian).
-+  * Debhelper v3.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <malcolm@ivywell.screaming.net> to fix
-+    snake scoring problem, Closes: #80549
-+  * Statoverride transition.
-+
-+ -- Joey Hess <joeyh@debian.org>  Sun,  4 Feb 2001 14:06:28 -0800
-+
-+bsdgames (2.12-2) unstable; urgency=low
-+
-+  * Depends on wordlist, Closes: #76331
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  Tue, 26 Sep 2000 09:21:22 -0700
-+
-+bsdgames (2.11-4) unstable; urgency=low
-+
-+  * Updated to debhelper v2.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Mon, 28 Aug 2000 17:16:27 -0700
-+
-+bsdgames (2.11-1) unstable; urgency=low
-+
-+  * New upstream.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  Sun,  9 Apr 2000 15:16:40 -0700
-+
-+bsdgames (2.10-2) unstable; urgency=low
-+
-+  * Fixed countmail man page, Closes: #61846 
-+
-+ -- Joey Hess <joeyh@debian.org>  Wed,  5 Apr 2000 13:42:58 -0700
-+
-+bsdgames (2.10-1) unstable; urgency=low
-+
-+  * New upstream release.
-+
-+ -- Joey Hess <joeyh@debian.org>  Sat, 12 Feb 2000 16:35:11 -0800
-+
-+bsdgames (2.9-4) unstable; urgency=low
-+
-+  * Built with ncurses5, Closes: #55448
-+
-+ -- Joey Hess <joeyh@debian.org>  Fri, 21 Jan 2000 15:26:56 -0800
-+
-+bsdgames (2.9-3) unstable; urgency=low
-+
-+  * Download directory update.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Sat, 13 Nov 1999 14:14:34 -0800
-+
-+bsdgames (2.8-5) unstable; urgency=low
-+
-+  * Patch from Malcolm Parsons <malcolm@bits.bris.ac.uk> 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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Sun, 24 Oct 1999 16:27:54 -0700
-+
-+bsdgames (2.8-2) unstable; urgency=low
-+
-+  * Corrected the capital of Monaco. (Closes: #46119)
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Wed,  7 Apr 1999 14:53:52 -0700
-+
-+bsdgames (2.7-1) unstable; urgency=low
-+
-+  * New upstream release.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  Thu, 25 Mar 1999 13:33:07 -0800
-+
-+bsdgames (2.6-1) unstable; urgency=low
-+
-+  * New upstream release.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Tue, 27 Oct 1998 20:59:48 -0800
-+
-+bsdgames (2.5-2) unstable; urgency=low
-+
-+  * Removed bougs wordlist | wenglish dependancy.
-+
-+ -- Joey Hess <joeyh@debian.org>  Thu,  1 Oct 1998 12:59:53 -0700
-+
-+bsdgames (2.5-1) unstable; urgency=low
-+
-+  * New upstream release - boggle is now free.
-+
-+ -- Joey Hess <joeyh@debian.org>  Thu, 24 Sep 1998 17:17:32 -0700
-+
-+bsdgames (2.4-1) unstable; urgency=low
-+
-+  * New upstream release.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Wed, 19 Aug 1998 14:54:48 -0700
-+
-+bsdgames (2.1-8) unstable; urgency=low
-+
-+  * Use single = in postrm (#25512).
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Wed, 22 Jul 1998 20:22:01 -0700
-+
-+bsdgames (2.1-5) unstable; urgency=low
-+
-+  * Rebuilt with fakeroot to fix libtricks breakage.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  Sun, 22 Feb 1998 18:42:17 -0800
-+
-+bsdgames (2.0-2) unstable; urgency=low
-+
-+  * Updated standards-version.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>  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 <david@eos.lugs.ch>.
-+
-+ -- Joey Hess <joeyh@debian.org>  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 <joeyh@debian.org>  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 <joeyh@debian.org>, 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 <for a good prime call: 391581 * 2^216193 - 1> /\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 <joeyh@kitenet.net>.
---- 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 <joeyh@master.debian.org>
-+extensively modified by myself.  Joey Hess <joeyh@debian.org>
- 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 <joeyh@master.debian.org>
-+Joey Hess <joeyh@debian.org>
- 
-   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
-