Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6604 - replacing (re-emerging) app-games/zangband wipes high score table
Summary: replacing (re-emerging) app-games/zangband wipes high score table
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: José Alberto Suárez López
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-16 14:45 UTC by Nicolas Kaiser
Modified: 2002-08-21 21:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Kaiser 2002-08-16 14:45:31 UTC
This hack makes ZAngband remember its highscores by touching the file in a more
gentle way.

diff -u /usr/portage/app-games/zangband/zangband-2.7.1.ebuild.orig
/usr/portage/app-games/zangband/zangband-2.7.1.ebuild
--- /usr/portage/app-games/zangband/zangband-2.7.1.ebuild.orig  2002-08-16
21:34:07.000000000 +0200
+++ /usr/portage/app-games/zangband/zangband-2.7.1.ebuild       2002-08-16
21:32:44.000000000 +0200
@@ -31,7 +31,17 @@
        emake || die
 }

+pkg_preinst() {
+       rm
/var/tmp/portage/zangband-2.7.1/image/usr/share/games/zangband/lib/apex/scores.raw
+}
+
 src_install() {
        make DESTDIR=${D} DOCDIR=/usr/share/doc/{P} install || die
        dodoc readme z_faq.txt z_update.txt
 }
+
+pkg_postinst() {
+       touch /usr/share/games/zangband/lib/apex/scores.raw
+       chown -R root.games /usr/share/games/zangband/lib/apex/
+       chmod -R g+w /usr/share/games/zangband/lib/apex/
+}
Comment 1 Nicolas Kaiser 2002-08-16 15:05:49 UTC
By the way,  this game has been intensely tested on PPC ;-)