Added all debian changes

git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5088 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
1999-09-08 23:57:33 +00:00
parent 03272d67da
commit 0b460a9541
13 changed files with 642 additions and 34 deletions

35
config.params Normal file
View File

@@ -0,0 +1,35 @@
# 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/tmp
# 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
# Use /usr/man still. Debian doesn't use this part of FHS yet.
bsd_games_cfg_man8dir=/usr/man/man8
bsd_games_cfg_man6dir=/usr/man/man6
bsd_games_cfg_man5dir=/usr/man/man5
# 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/lib/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

50
debian/bsdgames vendored Normal file
View File

@@ -0,0 +1,50 @@
?package(bsdgames):needs="text" section="Apps/Educational" \
title="Arithmetic Quiz" command="/usr/games/arithmetic"
?package(bsdgames):needs="text" section="Games/Simulation" \
title="Air Traffic Controller" \
command="sh -c '/usr/games/atc ; echo;echo PRESS ENTER;read'"
?package(bsdgames):needs="text" section="Games/Adventure" \
title="Battlestar" command="/usr/games/battlestar"
?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'"
?package(bsdgames):needs="text" section="Games/Puzzles" \
title="Hangman" command="/usr/games/hangman"
?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" \
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="/usr/games/snake"
?package(bsdgames):needs="text" section="Games/Arcade" \
title="Star Trek" command="/usr/games/trek"
?package(bsdgames):needs="text" section="Games/Arcade" \
title="Worm" command="/usr/games/worm"
?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'"
?package(bsdgames):needs="text" section="Games/Board" \
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"

280
debian/changelog vendored Normal file
View File

@@ -0,0 +1,280 @@
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@master.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@master.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@master.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@master.debian.org> Thu, 24 Sep 1998 17:17:32 -0700
bsdgames (2.4-1) unstable; urgency=low
* New upstream release.
-- Joey Hess <joeyh@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.debian.org> Sun, 22 Feb 1998 18:42:17 -0800
bsdgames (2.0-2) unstable; urgency=low
* Updated standards-version.
-- Joey Hess <joeyh@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.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@master.debian.org> Thu, 20 Mar 1997 23:31:16 -0500
Local variables:
mode: debian-changelog
End:

20
debian/control vendored Normal file
View File

@@ -0,0 +1,20 @@
Source: bsdgames
Section: games
Priority: optional
Maintainer: Joey Hess <joeyh@master.debian.org>
Standards-Version: 2.5.0.0
Package: bsdgames
Architecture: any
Depends: ${shlibs:Depends}
Conflicts: bsdgames-nonfree (<< 2.5)
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 are
common on BSD 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

46
debian/copyright vendored Normal file
View File

@@ -0,0 +1,46 @@
This is a Debian prepackaged version of the BSD games package.
This package was put together by Joey Hess <joeyh@master.debian.org>, using
sources from:
ftp://sunsite.unc.edu/pub/Linux/Incoming/bsd-games-2.5.tar.gz
Most programs in this package have the standard BSD copyright. See
/usr/doc/copyrigght/BSD for the text of this copyright. There are some
exceptions, as follows:
atc:
BSD copyright plus the following:
/*
* Copyright (c) 1987 by Ed James, UC Berkeley. All rights reserved.
*
* Copy permission is hereby granted provided that this notice is
* retained on all partial or complete copies.
*
* For more info on this and all of my stuff, mail edjames@berkeley.edu.
*/
phantasia:
This entire subtree is explicitly not copyrighted.
The following notice applies to all files found here. None of
these files contain AT&T proprietary source code.
_____________________________________________________________________________
/* DISCLAIMER:
*
* This game is distributed for free as is. It is not guaranteed to work
* in every conceivable environment. It is not even guaranteed to work
* in ANY environment.
*
* This game is distributed without notice of copyright, therefore it
* may be used in any manner the recipient sees fit. However, the
* author assumes no responsibility for maintaining or revising this
* game, in its original form, or any derivitives thereof.
*
* The author shall not be responsible for any loss, cost, or damage,
* including consequential damage, caused by reliance on this material.
*
* The author makes no warranties, express or implied, including warranties
* of merchantability or fitness for a particular purpose or use.
*
* AT&T is in no way connected with this game.
*/

54
debian/menu vendored Normal file
View File

@@ -0,0 +1,54 @@
?package(bsdgames):needs="text" section="Apps/Educational" \
title="Arithmetic Quiz" command="/usr/games/arithmetic"
?package(bsdgames):needs="text" section="Games/Simulation" \
title="Air Traffic Controller" \
command="sh -c '/usr/games/atc ; echo;echo PRESS ENTER;read'"
?package(bsdgames):needs="text" section="Games/Adventure" \
title="Battlestar" command="/usr/games/battlestar"
?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'"
?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" \
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="/usr/games/snake"
?package(bsdgames):needs="text" section="Games/Arcade" \
title="Star Trek" command="/usr/games/trek"
?package(bsdgames):needs="text" section="Games/Arcade" \
title="Worm" command="/usr/games/worm"
?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="/usr/games/tetris-bsd"
?package(bsdgames):needs="text" section="Games/Board" \
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

36
debian/postinst vendored Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/sh -e
SCOREFILES="
/var/lib/games/bsdgames/atc_score
/var/lib/games/bsdgames/battlestar.log
/var/lib/games/bsdgames/cfscores
/var/lib/games/bsdgames/criblog
/var/lib/games/bsdgames/robots_roll
/var/lib/games/bsdgames/saillog
/var/lib/games/bsdgames/snake.log
/var/lib/games/bsdgames/snakerawscores
/var/lib/games/bsdgames/tetris-bsd.scores
/var/lib/games/bsdgames/phantasia/characs
/var/lib/games/bsdgames/phantasia/gold
/var/lib/games/bsdgames/phantasia/lastdead
/var/lib/games/bsdgames/phantasia/mess
/var/lib/games/bsdgames/phantasia/motd
/var/lib/games/bsdgames/phantasia/scoreboard
/var/lib/games/bsdgames/phantasia/void
/var/lib/games/bsdgames/phantasia/monsters"
# These files cannot just be zero-byte files:
if [ ! -e /var/lib/games/bsdgames/phantasia/void ]; then
cp /usr/share/games/bsdgames/phantasia/void \
/var/lib/games/bsdgames/phantasia/void
fi
if [ ! -e /var/lib/games/bsdgames/phantasia/monsters ] ; then
cp /usr/share/games/bsdgames/phantasia/monsters \
/var/lib/games/bsdgames/phantasia/monsters
fi
touch $SCOREFILES
chown root.games $SCOREFILES
chmod 664 $SCOREFILES
#DEBHELPER#

30
debian/postrm vendored Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/sh -e
SCOREFILES="
/var/lib/games/bsdgames/atc_score
/var/lib/games/bsdgames/battlestar.log
/var/lib/games/bsdgames/cfscores
/var/lib/games/bsdgames/criblog
/var/lib/games/bsdgames/robots_roll
/var/lib/games/bsdgames/saillog
/var/lib/games/bsdgames/snake.log
/var/lib/games/bsdgames/snakerawscores
/var/lib/games/bsdgames/tetris-bsd.scores
/var/lib/games/bsdgames/phantasia/characs
/var/lib/games/bsdgames/phantasia/gold
/var/lib/games/bsdgames/phantasia/lastdead
/var/lib/games/bsdgames/phantasia/mess
/var/lib/games/bsdgames/phantasia/motd
/var/lib/games/bsdgames/phantasia/scoreboard
/var/lib/games/bsdgames/phantasia/void
/var/lib/games/bsdgames/phantasia/monsters"
# Remove high score files on purge.
if [ "$1" = "purge" ]; then
rm -f $SCOREFILES
fi
rmdir /var/lib/games/bsdgames/phantasia /var/lib/games/bsdgames \
/var/lib/games 2>/dev/null || true
#DEBHELPER#

81
debian/rules vendored Executable file
View File

@@ -0,0 +1,81 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
./configure
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
-$(MAKE) -i distclean
# Build architecture-independent files here.
binary-indep: build
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs usr/doc/bsdgames usr/share/games/bsdgames/phantasia
$(MAKE) install
cp atc/BUGS debian/tmp/usr/doc/bsdgames/BUGS.atc
cp hunt/README debian/tmp/usr/doc/bsdgames/README.hunt
cp hunt/README.linux debian/tmp/usr/doc/bsdgames/README.linux.hunt
cp phantasia/README debian/tmp/usr/doc/bsdgames/README.phantasia
cp boggle/README debian/tmp/usr/doc/bsdgames/README.boggle
cp boggle/README.linux debian/tmp/usr/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/tmp/usr/man/man6/factor.6.gz \
debian/tmp/usr/man/man6/primes.6
cp factor/factor.6 debian/tmp/usr/man/man6/primes.6
# Move phantasia's binary state files into /usr, they are copied
# back to /var in the postinst.
mv debian/tmp/var/lib/games/bsdgames/phantasia/{monsters,void} \
debian/tmp/usr/share/games/bsdgames/phantasia/
dh_installdocs ChangeLog ChangeLog.0 TODO README \
trek/USD.doc/trek.me SECURITY THANKS AUTHORS BUGS YEAR2000
dh_installexamples
dh_installmenu
dh_installcron
# dh_installmanpages
# dh_undocumented
dh_installchangelogs -k NEWS
dh_strip
dh_compress
dh_fixperms
chmod -R u+rw debian/tmp/usr/
# Games with score files need to be set up sgid games.
chown root.games debian/tmp/usr/games/{atc,battlestar,canfield,cribbage,robots,snake,tetris-bsd,phantasia,sail}
chmod g+s debian/tmp/usr/games/{atc,battlestar,canfield,cribbage,robots,snake,tetris-bsd,phantasia,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/tmp/var/lib/games/bsdgames/{,phantasia}
chmod g+rws debian/tmp/var/lib/games/bsdgames/{,phantasia}
find debian/tmp/var/lib/games/bsdgames -size 0 -exec rm {} \;
dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary

View File

@@ -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 @@ factor a number, generate primes
.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
@@ -118,9 +91,5 @@ 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.

View File

@@ -26,6 +26,9 @@ static struct termios saved_tty;
# include <sys/param.h>
# include <unistd.h>
/* For MAXHOSTNAMELEN -- JH */
# include <rpc/types.h>
# include "hunt.h"
/*

View File

@@ -49,6 +49,9 @@ __RCSID("$NetBSD: main.c,v 1.7 1997/10/12 14:16:26 lukem Exp $");
# include "robots.h"
/* errno is used below - JH */
#include <errno.h>
int main __P((int, char **));
int

View File

@@ -158,8 +158,9 @@ sync_exists(game)
struct stat s;
time_t t;
(void) sprintf(buf, _PATH_SYNC, game);
/* (void) sprintf(buf, _PATH_SYNC, game);*/
(void) time(&t);
setegid(egid);
if (stat(buf, &s) < 0) {
setegid(gid);