Update of /cvsroot/fink/packages/dists/stable/main/finkinfo/games
In directory usw-pr-cvs1:/tmp/cvs-serv20179

Added Files:
        amaze-0.0-1.info cmine-0.0-1.info cmine-0.0-1.patch 
        xpilot-4.5.3-1.info xpilot-4.5.3-1.patch connect4-1.1-1.info 
Log Message:
Moving to stable based on good feedback, thanks Daniel Parks


--- NEW FILE: amaze-0.0-1.info ---
Package: amaze
Version: 0.0
Revision: 1
Source: http://www.itee.uq.edu.au/~leonard/personal/software/%n.tar.gz
Source-MD5: da0e21279b8fb6f57039e3b3de9fd3fd
CompileScript: << 
cc -I%p/include -L%p/lib -lncurses amaze.c -o amaze
strip %n
<<
InstallScript: <<
mkdir -p %i/share/man/man6
mkdir -p %i/share/%n
mkdir -p %i/bin/
cp %n.6 %i/share/man/man6/
cp %n %i/bin/
head -9 amaze.c >> %i/share/%n/LICENSE
<<
Description: 3D maze game in curses.
DescUsage: <<
See manpage for keys and how to play. 
<<
License: BSD
Maintainer: Ben Hines <[EMAIL PROTECTED]>
Homepage: http://www.itee.uq.edu.au/~leonard/personal/software/

--- NEW FILE: cmine-0.0-1.info ---
Package: cmine
Version: 0.0
Revision: 1
Source: http://www.itee.uq.edu.au/~leonard/personal/software/%n.tar.gz
Source-MD5: c26a3990bee817595f0543a9c0945dc8
Patch: %f.patch
Depends: passwd
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 -35 cmine.c >> %i/share/%n/LICENSE
<<
Description: Minesweeper in curses.
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 <[EMAIL PROTECTED]>
Homepage: http://www.itee.uq.edu.au/~leonard/personal/software/

--- NEW FILE: cmine-0.0-1.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/cmine.c       Mon Feb 18 07:46:28 2002
+++ cmine-patched/cmine.c       Sun May 12 23:12:01 2002
@@ -6,6 +6,34 @@
  * User interface module.
  */
 
+/* strlcat()
+ * Copyright (c) 1998 Todd C. Miller <[EMAIL PROTECTED]>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
+ * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+                                                                               * 
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+                                                                               * OR 
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+                                                                                      
+            * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
 #include <curses.h>
 #include <unistd.h>
 #include <stdlib.h>
@@ -573,3 +601,44 @@
                exit(1);
        }
 }
+
+#include <sys/types.h>
+#include <string.h>
+
+/*
+ * Appends src to string dst of size siz (unlike strncat, siz is the
+                                                                                 * 
+full size of dst, not space left).  At most siz-1 characters
+ * will be copied.  Always NUL terminates (unless siz <= strlen(dst)).
+ * Returns strlen(initial dst) + strlen(src); if retval >= siz,
+ * truncation occurred.
+ */
+size_t strlcat(dst, src, siz)
+char *dst;
+const char *src;
+size_t siz;
+{
+       register char *d = dst;
+       register const char *s = src;
+       register size_t n = siz;
+       size_t dlen;
+
+       /* Find the end of dst and adjust bytes left but don't go past end */
+       while (n-- != 0 && *d != '\0')
+               d++;
+       dlen = d - dst;
+       n = siz - dlen;
+
+       if (n == 0)
+               return(dlen + strlen(s));
+       while (*s != '\0') {
+               if (n != 1) {
+                       *d++ = *s;
+                       n--;
+               }
+               s++;
+       }
+       *d = '\0';
+
+       return(dlen + (s - src));       /* count does not include NUL */
+}
+
--- 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;

--- NEW FILE: xpilot-4.5.3-1.info ---
Package: xpilot
Version: 4.5.3
Revision: 1
Source: ftp://ftp.xpilot.org/pub/%n/%n-%v.tar.gz
Source-MD5: a627864e11c1403c0ece17a73e595eab
Depends: x11
PatchScript: sed 's:@PREFIX@:%p:g' <%a/%f.patch | patch -p1
CompileScript: <<
xmkmf -a
make
<<
InstallScript: <<
make install DESTDIR=%d
make install.man DESTDIR=%d MANPATH=%p/share/man DOCDIR=%p/share/doc/%n
<<
DocFiles: README.txt LICENSE doc/FAQ doc/CREDITS doc/README.* doc/TODO
Description: Multi-player 2D space game.
DescDetail: <<
Some features are borrowed from classics like the Atari coin-ups Asteroids and 
Gravitar, 
and the home-computer games Thrust (Commodore 64) and Gravity Force (Commodore Amiga), 
but XPilot has many new aspects too.
<<
DescUsage: <<
To try a local game, do:
"xpilots &; xpilot -join" (to run a local server, and join it)
Or, to play on the net, just run "xpilot" and click Internet.
Basic keys: shift to accelerate, enter to shoot, A-D to turn left and right.
(see help+manpage for more)
<<
DescPackaging: <<
Download server is extremely slow here, it would be good to find another mirror.
<<
License: GPL
Maintainer: Ben Hines <[EMAIL PROTECTED]>
Homepage: http://www.xpilot.org/

--- NEW FILE: xpilot-4.5.3-1.patch ---
--- xpilot-4.5.3/Local.config   Sun Apr 21 13:42:12 2002
+++ xpilot-4.5.3-patched/Local.config   Sun Jun  2 12:16:33 2002
@@ -36,12 +36,12 @@
 #define        LocalGuru [EMAIL PROTECTED]     /* The one to contact for problems */
 #endif /* LocalGuru */
 
-PREFIX = /usr/local
+PREFIX = @PREFIX@
 
 /* Manual pages for games usually go to section 6. */
 MANSUFFIX = 6
-INSTMANDIR = $(PREFIX)/man/man$(MANSUFFIX)
-INSTLIBDIR = $(PREFIX)/lib/xpilot
+INSTMANDIR = $(PREFIX)/share/man/man$(MANSUFFIX)
+INSTLIBDIR = $(PREFIX)/share/xpilot
 INSTBINDIR = $(PREFIX)/bin
 
 /* #define Log         /* Try to log every server start to log file */

--- NEW FILE: connect4-1.1-1.info ---
Package: connect4
Version: 1.1
Revision: 1
Source: http://members.tripod.com/boneheadproductions/%n/dl/%nv%v.tar.gz
SourceMD5: 04279adb85f758650972143d48524392
CompileScript: <<
c++ *.cpp -o3 -ffast-math -fforce-addr -fomit-frame-pointer -finline-functions -o %n
tail -2 README.txt >> LICENSE
<<
InstallScript: <<
mkdir -p %i/bin/
install -s %n %i/bin/
<<
DocFiles: README.txt LICENSE
Description: Text-based Connect Four game.
DescDetail: <<
An exploration into artificial intelligence. 

There are many computer players. Each uses slightly different
heuristics. When you set the computer's level you are essentially
telling it how many moves to look ahead in the beginning (it looks ahead
further as the game progresses). You can play human vs. human, human vs.
computer, or computer vs. computer. When the computer fights itself you
can set a different level and heuristic for each player.

The AI can be quite good, making it difficult to win if you do not 
make good moves in the early game.
<<
License: GPL
Maintainer: Ben Hines <[EMAIL PROTECTED]>
Homepage: http://members.tripod.com/boneheadproductions/connect4/



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
We have stuff for geeks like you.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to