Freebsd-games patches...

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


> -----Original Message-----
> From: Frank Laszlo [mailto:laszlof at vonostingroup.com] 
> Sent: Tuesday, 4 November 2003 14:24
> To: Tim Hoban
> Cc: ports at freebsd.org
> Subject: Re: Freebsd-games patches...
> 
> 
> umm, why is the absolute path to that file in the src anyways?
> it should be in an include file as a variable, and changed by the
> configure script.
> 
> -Frank Laszlo
> 

Dunno. Here's a fix with a variable.

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 03:51:13 -0000
@@ -86,7 +86,7 @@
 /* old version - for people short of space */
 char *np;
 
-	name = "/usr/games/hide/hack";
+	name = _PATH_HACKBIN;
 	if(stat(name, &hbuf))
 		error("Cannot get status of %s.",
 			(np = rindex(name, '/')) ? np+1 : name);
Index: pathnames.h
===================================================================
RCS file:
/usr/ports/games/freebsd-games/work/freebsd-games-5.0/cvs/hack/pathnames.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pathnames.h
--- pathnames.h	4 Sep 1994 04:02:55 -0000	1.1.1.1
+++ pathnames.h	4 Nov 2003 03:53:07 -0000
@@ -36,4 +36,5 @@
 #define	_PATH_MAIL	"/usr/bin/mail"
 #define	_PATH_QUEST	"/var/games/questdir"
 #define	_PATH_HACK	"/var/games/hackdir"
+#define	_PATH_HACKBIN	"/usr/local/bin/hack"
 

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