update to gnuchess 5.07, take maintainer

ok brad@
This commit is contained in:
mjc 2004-07-06 04:00:11 +00:00
parent 8452287556
commit 591897bc4f
9 changed files with 52 additions and 144 deletions

View File

@ -1,20 +1,37 @@
# $OpenBSD: Makefile,v 1.19 2002/12/23 00:37:50 pvalchev Exp $
# $OpenBSD: Makefile,v 1.20 2004/07/06 04:00:11 mjc Exp $
COMMENT= "Classic Gnu Chess"
DISTNAME= gnuchess-4.0.pl80
PKGNAME= gnuchess-4.0.80
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=gnuchess/}
DISTNAME= gnuchess-5.07
DISTFILES= ${DISTNAME}.tar.gz book_1.01.pgn.gz
# License: GPL
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
MAINTAINER= Michael Coulter <mjc@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu dest
CONFIGURE_STYLE= gnu
WRKDIST= ${WRKDIR}/${DISTNAME}/src
MAKE_FLAGS+= CFLAGS="${CFLAGS} -DBOOK_PREFIX=\\\"${TRUEPREFIX}\\\""
README= ${WRKSRC}/doc/README
BOOK_FILE= ${WRKSRC}/src/book.dat
post-build:
cd ${WRKSRC}/src && ln -sf ../../book_1.01.pgn
cd ${WRKSRC}/src && \
printf "book add book_1.01.pgn\nquit\n" | ./gnuchess ; echo
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/gnuchess
${INSTALL_DATA} ${BOOK_FILE} ${PREFIX}/share/gnuchess
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuchess
${INSTALL_DATA} ${README} ${PREFIX}/share/doc/gnuchess
.include <bsd.port.mk>

View File

@ -1,3 +1,6 @@
MD5 (gnuchess-4.0.pl80.tar.gz) = 833110654ec086b4ace45e037612033e
RMD160 (gnuchess-4.0.pl80.tar.gz) = 889510f73c3e5143fc312c010e8324e68c11dcdc
SHA1 (gnuchess-4.0.pl80.tar.gz) = 0c581be2e7b6b17524e288e105a468a7ca328c8b
MD5 (book_1.01.pgn.gz) = 1be508d7a38a8c9a7d599d0cd92b24a6
MD5 (gnuchess-5.07.tar.gz) = 259da00aa559e5624c65279484fccaf7
RMD160 (book_1.01.pgn.gz) = 29b62c5c1477746b25a09912d2f9e8e4e3f1898f
RMD160 (gnuchess-5.07.tar.gz) = 043ee9bfd9dacccd6c55905d4a1c390bf56ba603
SHA1 (book_1.01.pgn.gz) = 3ef3f1e2c52941d35610f3723a4c200575faaf2e
SHA1 (gnuchess-5.07.tar.gz) = 7dbaf957bfea9cf37fe393e1fec7306de0162a16

View File

@ -1,13 +0,0 @@
$OpenBSD: patch-Makefile_in,v 1.1 2004/01/09 20:06:43 sturm Exp $
--- Makefile.in.orig 1998-09-28 08:41:13.000000000 +0200
+++ Makefile.in 2004-01-09 21:02:37.000000000 +0100
@@ -43,7 +43,8 @@ LANGF= -DLANGFILE=\"$(LIBDIR)/gnuchess.l
# The hashfile is a record of positions seen. It is used by
# GNU Chess to avoid making the same mistakes, a form of learning.
-HASH= -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
+# desturbs systrace and is not used due to missing permissions anyways
+#HASH= -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
# The "book" is a record of the first few moves, for playing good
# moves easily and quickly, saving time, and irritating the human

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-dspcom_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
--- dspcom.c.orig 1998-09-28 08:41:19.000000000 +0200
+++ dspcom.c 2004-01-09 20:33:29.000000000 +0100
@@ -1099,7 +1099,7 @@ InputCommand (void)
#ifdef NONDSP
s[0] = sx[0] = '\0';
while (!sx[0])
- (void) gets (sx);
+ (void) fgets (sx, 80, stdin);
#else
fflush (stdout);
#ifdef MSDOS

View File

@ -1,45 +0,0 @@
$OpenBSD: patch-gnuan_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
--- gnuan.c.orig 1999-04-03 05:58:53.000000000 +0200
+++ gnuan.c 2004-01-09 20:33:29.000000000 +0100
@@ -1348,12 +1348,12 @@ InputCommand (void)
fpout = stderr;
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
fflush (fpout);
- gets (infilename);
+ fgets (infilename, 255, stdin);
fprintf (fpout, "\n");
do
{
fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
- gets (inbuf);
+ fgets (inbuf, 256, stdin);
search_depth = atoi (inbuf);
if (search_depth < 0)
{
@@ -1369,7 +1369,7 @@ InputCommand (void)
do
{
fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
- gets (inbuf);
+ fgets (inbuf, 256, stdin);
max_minutes = atoi (inbuf);
if (max_minutes < 0)
{
@@ -1379,7 +1379,7 @@ InputCommand (void)
}
while ((max_minutes + max_seconds) < 1);
fprintf (fpout, "Post the search results(y/n).\n");
- gets (inbuf);
+ fgets (inbuf, 256, stdin);
if (inbuf[0] == 'y')
flag.post = true;
else
@@ -1559,7 +1559,7 @@ InputCommand (void)
while (true)
{
printf (">");
- gets (GNUANinbuf1);
+ fgets (GNUANinbuf1, 128, stdin);
p = GNUANinbuf1;
q = GNUANinbuf;
while (true)

View File

@ -1,25 +0,0 @@
$OpenBSD: patch-nondsp_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
--- nondsp.c.orig 1998-09-28 08:41:22.000000000 +0200
+++ nondsp.c 2004-01-09 20:33:29.000000000 +0100
@@ -264,10 +264,10 @@ SetupBoard (void)
NewGame ();
- gets (s); /* skip "setup" command */
+ fgets (s, 80, stdin); /* skip "setup" command */
for (r = 7; r >= 0; r--)
{
- gets (s);
+ fgets (s, 80, stdin);
for (c = 0; c <= 7; c++)
{
ch = s[c];
@@ -617,7 +617,7 @@ SelectLevel (CHAR *sx)
if (!T[0])
{
printz (CP[61]);
- gets (T);
+ fgets (T, 64, stdin);
}
strcat (T, "XX");
/* skip whitespace */

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_book_h,v 1.1 2004/07/06 04:00:11 mjc Exp $
--- src/book.h.orig Thu Jun 24 15:25:55 2004
+++ src/book.h Thu Jun 24 15:26:53 2004
@@ -31,8 +31,7 @@
*/
static char const * bookbin[] = {
"book.dat",
- "/usr/share/games/gnuchess/book.dat",
- "/usr/lib/games/gnuchess/book.dat",
+ BOOK_PREFIX"/share/gnuchess/book.dat",
NULL
};

View File

@ -1,24 +1,4 @@
Gnuchess plays a game of chess against the user or it
plays against itself.
GNU Chess lets most modern computers play a full game of chess. It has a
plain terminal interface but supports visual interfaces such as
X-Windows "xboard".
Gnuchess is an updated version of the GNU chess playing
program. It has a simple alpha-numeric board display, an
IBM PC compatible interface, or it can be compiled for use
with the chesstool program on a SUN workstation or with
the xboard program under X-windows. To invoke the program
gnuchess
- simple curses based version
gnuchessn
- fancy version using curses and inverse video on
UNIX, or IBM PC cursor controls and characters on
MSDOS
gnuchessr
- ASCII based version
gnuchessc
- chesstool compatible version
gnuchessx
- xboard compatible version

View File

@ -1,17 +1,7 @@
@comment $OpenBSD: PLIST,v 1.2 2002/04/07 01:54:49 naddy Exp $
@comment $OpenBSD: PLIST,v 1.3 2004/07/06 04:00:11 mjc Exp $
bin/gnuchess
bin/gnuchessr
bin/gnuchessn
bin/gnuchessx
bin/gnuchessc
bin/postprint
bin/gnuan
bin/game
lib/gnuchess.lang
lib/eco.pgn
lib/gnuchess.data
lib/gnuchess.eco
man/man6/game.6
man/man6/gnuan.6
man/man6/gnuchess.6
man/man6/postprint.6
share/doc/gnuchess/README
share/gnuchess/book.dat
@dirrm share/gnuchess
@dirrm share/doc/gnuchess