Freebsd-games patches...

Tim Hoban tim at e-easy.com.au
Mon Nov 3 19:12:45 PST 2003


The game Hack is busted for FreeBSD 5 CURRENT.

I offer two possible fixes:

Index: hack.unix.c
===================================================================
RCS file:
/usr/ports/games/freebsd-games/work/freebsd-games-5.0/cvs/hack/hack.unix.c,v
retrieving revision 1.10
diff -u -r1.10 hack.unix.c
--- hack.unix.c	23 May 2002 00:38:07 -0000	1.10
+++ hack.unix.c	4 Nov 2003 01:32:36 -0000
@@ -86,7 +86,7 @@
 /* old version - for people short of space */
 char *np;
 
-	name = "/usr/games/hide/hack";
+	name = "/usr/local/bin/hack";
 	if(stat(name, &hbuf))
 		error("Cannot get status of %s.",
 			(np = rindex(name, '/')) ? np+1 : name);


Or:

--- Makefile	Tue Nov  4 14:13:06 2003
+++ Makefile.old	Tue Nov  4 14:10:53 2003
@@ -59,6 +59,6 @@
 	@${CP} ${FILESDIR}/misc.h ${WRKSRC}/sail
 	@${FIND} ${WRKSRC} -name '*.c' -or -name '*.h' -or -name '*.6' -or \
 		-name 'index' | ${XARGS} ${REINPLACE_CMD} -e \
-		's|share/games|local/share/games|g ;
s|games/hide|local/bin|g' \
+		's|share/games|local/share/games|g' \
 
 .include <bsd.port.mk>




E-easy
15 Wellington St. Launceston TAS 7250
Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  
Web: http://www.e-easy.com.au




More information about the freebsd-ports mailing list