Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/games In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9585
Modified Files: cmine.info cmine.patch Log Message: update to actually use and update a high scores file, w/ permission from maintainer Index: cmine.info =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/games/cmine.info,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- cmine.info 12 Jan 2009 03:31:33 -0000 1.3 +++ cmine.info 16 Oct 2009 17:55:06 -0000 1.4 @@ -1,10 +1,10 @@ Package: cmine Version: 1.4 -Revision: 1001 +Revision: 1003 Source: http://www.adaptive-enterprises.com.au/~d/software/cmine/%n-%v.tar.gz Source-MD5: b584cb2eb5e0afbc07e819e78cbd5983 PatchFile: %n.patch -PatchFile-MD5: 5c0d44d55d19db8ff5cb27a11651ba85 +PatchFile-MD5: 3d03b8df1b76c4023783447575391d83 Depends: passwd BuildDepends: fink (>= 0.24.12-1), libncurses5 (>= 5.4-20041023-1006) CompileScript: << @@ -19,11 +19,14 @@ cp %n.6 %i/share/man/man6/ cp %n %i/bin/ head -n 35 cmine.c >> %i/share/%n/LICENSE +touch %i/var/games/cmine.scores << PostInstScript: << -chown -R games:games %p/bin/%n +chown -R games:games %p/bin/%n %p/var/games/cmine.scores chmod 2101 %p/bin/%n +chmod 664 %p/var/games/cmine.scores << +ConfFiles: %p/var/games/cmine.scores Description: Text-based minesweeper game DescUsage: << See manpage for keys and how to play. Index: cmine.patch =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/games/cmine.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- cmine.patch 20 Jan 2006 20:25:01 -0000 1.1 +++ cmine.patch 16 Oct 2009 17:55:06 -0000 1.2 @@ -21,3 +21,12 @@ struct scorekey { int rows, cols, mines; +@@ -58,7 +60,7 @@ + data.size = 0; + /* Don't bother if we aren't better than an existing */ + if ((*db->get)(db, &key, &data, 0) == 0) +- if (((struct scorevalue *)data.data)->time >= time) ++ if (((struct scorevalue *)data.data)->time <= time) + return 0; + /* Save the better score */ + scorevalue.time = time; ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs