From owner-freebsd-ports@FreeBSD.ORG Mon Nov 3 19:46:14 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD51216A4CE for ; Mon, 3 Nov 2003 19:46:14 -0800 (PST) Received: from postoffice.e-easy.com.au (eth0.lnk.e-easy.com.au [203.31.73.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 925DC43FB1 for ; Mon, 3 Nov 2003 19:46:12 -0800 (PST) (envelope-from tim@e-easy.com.au) Received: from e-easy.com.au (eet03s01.aims.private [192.168.10.3]) by postoffice.e-easy.com.au with ESMTP id hA43jEhe000891 for ; Tue, 4 Nov 2003 14:45:18 +1100 (EST) (envelope-from tim@e-easy.com.au) Received: from eet03s01 by e-easy.com.au (e-easy.com.au) (MDaemon.PRO.v7.0.0f.R) with ESMTP id md50000007050.msg for ; Tue, 04 Nov 2003 14:42:18 +1100 From: "Tim Hoban" To: "'Frank Laszlo'" Date: Tue, 4 Nov 2003 14:42:17 +1100 Organization: E-Easy Message-ID: <00f601c3a285$a5228980$030aa8c0@corp.eeasy.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <1067916211.2673.6.camel@star.vonostingroup.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Importance: Normal X-Spam-Processed: e-easy.com.au, Tue, 04 Nov 2003 14:42:18 +1100 (not processed: spam filter disabled) X-Return-Path: tim@e-easy.com.au X-MDaemon-Deliver-To: ports@freebsd.org X-Virus-Scanned: by amavisd-milter (http://amavis.org/) cc: ports@freebsd.org Subject: RE: Freebsd-games patches... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 03:46:14 -0000 > -----Original Message----- > From: Frank Laszlo [mailto:laszlof@vonostingroup.com]=20 > Sent: Tuesday, 4 November 2003 14:24 > To: Tim Hoban > Cc: ports@freebsd.org > Subject: Re: Freebsd-games patches... >=20 >=20 > 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. >=20 > -Frank Laszlo >=20 Dunno. Here's a fix with a variable. Index: hack.unix.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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; =20 - name =3D "/usr/games/hide/hack"; + name =3D _PATH_HACKBIN; if(stat(name, &hbuf)) error("Cannot get status of %s.", (np =3D rindex(name, '/')) ? np+1 : name); Index: pathnames.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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" =20 E-easy 15 Wellington St. Launceston TAS 7250 Tel: +61 3 6334 6664 Fax: +61 3 6331 7032 =20 Web: http://www.e-easy.com.au