* New upstream release, whivh includes hack, back fron bsdgames-nonfree.

* Conflict and replace with old versions of bsdgames-nonfree that include
     hack.
   * Add hack to package description and menu file.
   * Add in hack's two READ_ME files to binay package.
   * Patched hack config.h as it is patched in bsdgames-nonfree.
   * Unlike bsdgames-nonfree, put the help, hh, rumors, and data files in
     /usr/share/games/bsdgames/hack, as the patched config.h makes it look
     there.
   * postinst moves over hack state files to new directory
   * Patched phantasia to use strerror and not segfault if it cannot open the
     var files. Closes: #187251 (patch sent upstream)


git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5206 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-04-03 02:10:44 +00:00
parent 0e204a0ae1
commit e5b45776e7
42 changed files with 504 additions and 2553 deletions

17
debian/changelog vendored
View File

@@ -1,3 +1,20 @@
bsdgames (2.14-1) unstable; urgency=low
* New upstream release, whivh includes hack, back fron bsdgames-nonfree.
* Conflict and replace with old versions of bsdgames-nonfree that include
hack.
* Add hack to package description and menu file.
* Add in hack's two READ_ME files to binay package.
* Patched hack config.h as it is patched in bsdgames-nonfree.
* Unlike bsdgames-nonfree, put the help, hh, rumors, and data files in
/usr/share/games/bsdgames/hack, as the patched config.h makes it look
there.
* postinst moves over hack state files to new directory
* Patched phantasia to use strerror and not segfault if it cannot open the
var files. Closes: #187251 (patch sent upstream)
-- Joey Hess <joeyh@debian.org> Wed, 2 Apr 2003 20:44:19 -0500
bsdgames (2.13-11) unstable; urgency=low
* Fixed silly typo in wargames man page. Closes: #169307

14
debian/control vendored
View File

@@ -3,19 +3,19 @@ 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
Standards-Version: 3.5.9.0
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
Conflicts: bsdgames-nonfree (<< 2.14), suidmanager (<< 0.50)
Replaces: bsdgames-nonfree (<< 2.14)
Description: a collection of classic textual unix games
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,
bcd, boggle, caesar, canfield, countmail, cribbage, fish, gomoku, hack,
hangman, hunt, mille, monop, morse, number, pig, phantasia, pom, ppt, primes,
quiz, random, rain, robots, sail, snake, tetris, trek, wargames, worm, worms,
wump, wtf

2
debian/menu vendored
View File

@@ -5,6 +5,8 @@
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/Adventure" \
title="Hack" command=/usr/games/hack
?package(bsdgames):needs="text" section="Games/Card" \
title="Canfield" command="/usr/games/canfield"
?package(bsdgames):needs="text" section="Games/Card" \

18
debian/postinst vendored
View File

@@ -17,8 +17,24 @@ SCOREFILES="
/var/games/bsdgames/phantasia/motd
/var/games/bsdgames/phantasia/scoreboard
/var/games/bsdgames/phantasia/void
/var/games/bsdgames/phantasia/monsters"
/var/games/bsdgames/phantasia/monsters
/var/games/bsdgames/hack/perm
/var/games/bsdgames/hack/record"
# Hack moved over from bsdgames-nonfree.
if [ -d /var/games/bsdgames-nonfree ]; then
for file in perm record; do
if [ -e /var/games/bsdgames-nonfree/hack/$file ]; then
mv -f /var/games/bsdgames-nonfree/hack/$file \
/var/games/bsdgames/hack/$file
fi
done
cp -a -f /var/games/bsdgames-nonfree/hack/save/* \
/var/games/bsdgames/hack/save/ 2>/dev/null || true
rm -f /var/games/bsdgames-nonfree/hack/save/* 2>/dev/null || true
rmdir -p /var/games/bsdgames-nonfree/hack/save 2>/dev/null || true
fi
# These files cannot just be zero-byte files:
if [ ! -e /var/games/bsdgames/phantasia/void ]; then
cp /usr/share/games/bsdgames/phantasia/void \

6
debian/postrm vendored
View File

@@ -17,13 +17,17 @@ SCOREFILES="
/var/games/bsdgames/phantasia/motd
/var/games/bsdgames/phantasia/scoreboard
/var/games/bsdgames/phantasia/void
/var/games/bsdgames/phantasia/monsters"
/var/games/bsdgames/phantasia/monsters
/var/games/bsdgames/hack/perm
/var/games/bsdgames/hack/record"
# 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
rm -f /var/games/bsdgames/hack/save/* 2>/dev/null || true
rmdir -p /var/games/bsdgames/hack/save 2>/dev/null || true
fi
#DEBHELPER#

19
debian/rules vendored
View File

@@ -27,7 +27,8 @@ binary-arch: build
dh_testroot
dh_clean
dh_installdirs usr/share/doc/bsdgames \
usr/share/games/bsdgames/phantasia
usr/share/games/bsdgames/phantasia \
var/games/bsdgames/hack/save
$(MAKE) install
cp atc/BUGS debian/bsdgames/usr/share/doc/bsdgames/BUGS.atc
@@ -36,6 +37,8 @@ binary-arch: build
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
cp hack/Original_READ_ME debian/bsdgames/usr/share/doc/bsdgames/Original_READ_ME.hack
cp hack/READ_ME debian/bsdgames/usr/share/doc/bsdgames/READ_ME.hack
# 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 \
@@ -68,7 +71,8 @@ binary-arch: build
debian/bsdgames/usr/games/snake \
debian/bsdgames/usr/games/tetris-bsd \
debian/bsdgames/usr/games/phantasia \
debian/bsdgames/usr/games/sail
debian/bsdgames/usr/games/sail \
debian/bsdgames/usr/games/hack
chmod g+s debian/bsdgames/usr/games/atc \
debian/bsdgames/usr/games/battlestar \
debian/bsdgames/usr/games/canfield \
@@ -77,15 +81,20 @@ binary-arch: build
debian/bsdgames/usr/games/snake \
debian/bsdgames/usr/games/tetris-bsd \
debian/bsdgames/usr/games/phantasia \
debian/bsdgames/usr/games/sail
debian/bsdgames/usr/games/sail \
debian/bsdgames/usr/games/hack
# 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
debian/bsdgames/var/games/bsdgames/phantasia \
debian/bsdgames/var/games/bsdgames/hack \
debian/bsdgames/var/games/bsdgames/hack/save
chmod g+rws debian/bsdgames/var/games/bsdgames/ \
debian/bsdgames/var/games/bsdgames/sail \
debian/bsdgames/var/games/bsdgames/phantasia
debian/bsdgames/var/games/bsdgames/phantasia \
debian/bsdgames/var/games/bsdgames/hack \
debian/bsdgames/var/games/bsdgames/hack/save
find debian/bsdgames/var/games/bsdgames -size 0 -exec rm {} \;
dh_installdeb