Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 6604

Summary: replacing (re-emerging) app-games/zangband wipes high score table
Product: Gentoo Linux Reporter: Nicolas Kaiser <nikai>
Component: [OLD] GamesAssignee: José Alberto Suárez López <bass>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ;-)