mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
* 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:
18
debian/postinst
vendored
18
debian/postinst
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user