cmine stable port information

Package: cmine
Version: 0.0
Revision: 1012
Source: http://www.itee.uq.edu.au/~leonard/personal/software/%n.tar.gz
Source-MD5: c26a3990bee817595f0543a9c0945dc8
Patch: %n.patch
Depends: passwd
BuildDepends: ncurses-dev (>= 5.3-20031018-1501)
GCC: 4.0
CompileScript: <<
cc -I%p/include -L%p/lib -lncurses -DPATH_SCOREFILE=\"%p/var/games/cmine.scores\" *.c -o cmine
strip %n
<<
InstallScript: <<
mkdir -p %i/share/man/man6
mkdir -p %i/share/%n
mkdir -p %i/bin/
mkdir -p %i/var/games/
cp %n.6 %i/share/man/man6/
cp %n %i/bin/
chown -R games:games %i/bin/%n
chmod 2101 %i/bin/%n
head -n 35 cmine.c >> %i/share/%n/LICENSE
<<
Description: Text-based minesweeper game
DescUsage: <<
See manpage for keys and how to play.
<<
DescPackaging: <<
Needs passwd for games uid. cmine itself is public domain, however
the patched in strlcat() routine is OSI-Approved.
<<
License: OSI-Approved
Maintainer: Ben Hines
Homepage: http://www.itee.uq.edu.au/~leonard/personal/software/

cmine stable port .patch

--- cmine/mine.c Mon Feb 18 07:45:53 2002
+++ cmine-patched/mine.c Sun May 12 23:00:19 2002
@@ -94,7 +94,7 @@
return NULL;
}
/* Place the mines */
- srandomdev();
+ srandom(time(0));
for (i = 0; i < rows * cols; i ++)
m->map[i] = 0;
p = 0;
--- cmine/hiscore.c Sat Feb 16 05:57:51 2002
+++ cmine-patched/hiscore.c Sun May 12 23:15:53 2002
@@ -18,7 +18,9 @@

#include "hiscore.h"

+#ifndef PATH_SCOREFILE
#define PATH_SCOREFILE "/var/games/cmine.scores"
+#endif

struct scorekey {
int rows, cols, mines;

cmine _unstable_ port information

Package: cmine
Version: 1.4
Revision: 1001
Source: http://www.adaptive-enterprises.com.au/~d/software/cmine/%n-%v.tar.gz
Source-MD5: b584cb2eb5e0afbc07e819e78cbd5983
Patch: %n.patch
Depends: passwd
BuildDepends: libncurses5 (>= 5.4-20041023-1006)
CompileScript: <<
cc -I%p/include -L%p/lib -lncurses -DPATH_SCOREFILE=\"%p/var/games/cmine.scores\" *.c -o cmine
strip %n
<<
InstallScript: <<
mkdir -p %i/share/man/man6
mkdir -p %i/share/%n
mkdir -p %i/bin/
mkdir -p %i/var/games/
cp %n.6 %i/share/man/man6/
cp %n %i/bin/
head -n 35 cmine.c >> %i/share/%n/LICENSE
<<
PostInstScript: <<
chown -R games:games %p/bin/%n
chmod 2101 %p/bin/%n
<<
Description: Text-based minesweeper game
DescUsage: <<
See manpage for keys and how to play.
<<
DescPackaging: <<
Needs passwd for games uid. cmine itself is public domain, however
the patched in strlcat() routine is OSI-Approved.
<<
License: OSI-Approved
Maintainer: Ben Hines
Homepage: http://www.adaptive-enterprises.com.au/~d/software/cmine/

cmine _unstable_ port .patch

--- cmine/mine.c Mon Feb 18 07:45:53 2002
+++ cmine-patched/mine.c Sun May 12 23:00:19 2002
@@ -94,7 +94,7 @@
return NULL;
}
/* Place the mines */
- srandomdev();
+ srandom(time(0));
for (i = 0; i < rows * cols; i ++)
m->map[i] = 0;
p = 0;
--- cmine/hiscore.c Sat Feb 16 05:57:51 2002
+++ cmine-patched/hiscore.c Sun May 12 23:15:53 2002
@@ -18,7 +18,9 @@

#include "hiscore.h"

+#ifndef PATH_SCOREFILE
#define PATH_SCOREFILE "/var/games/cmine.scores"
+#endif

struct scorekey {
int rows, cols, mines;