From owner-freebsd-ports Thu Feb 20 10:11:42 2003 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 1694237B401 for ; Thu, 20 Feb 2003 10:11:41 -0800 (PST) Received: from mail.fsei.e-technik.tu-muenchen.de (trafo.fsei.e-technik.tu-muenchen.de [129.187.54.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86D3543F75 for ; Thu, 20 Feb 2003 10:11:39 -0800 (PST) (envelope-from corecode@corecode.ath.cx) Received: from hydra (corecode@hydra.fsei.e-technik.tu-muenchen.de [192.168.113.23]) by mail.fsei.e-technik.tu-muenchen.de (8.9.3/8.9.3/FSEI-Mailer) with SMTP id TAA02141; Thu, 20 Feb 2003 19:10:41 +0100 Date: Thu, 20 Feb 2003 19:10:38 +0100 From: "Simon 'corecode' Schubert" To: Kevin Golding Cc: ports@freebsd.org Subject: Re: Patching for PREFIX Message-Id: <20030220191038.62fbadd2.corecode@corecode.ath.cx> In-Reply-To: References: X-Mailer: Sylpheed version 0.8.10claws18 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.8bC'lUCO+(5Eef" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=.8bC'lUCO+(5Eef Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 16 Feb 2003 15:04:34 +0000 Kevin Golding wrote: > I'm making a port of some Perl scripts which have the path to a config > file hard coded into them and I'm wondering what's the best approach. you could extract the dirname of the binary, remove "/bin" and add "/etc" :) cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.8bC'lUCO+(5Eef Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+VRoir5S+dk6z85oRAihlAKCpRbo+uEkVMK78doHgf24iP0qwMwCgk6VO LIKxiLPOfvNHx8QIl4aU/08= =++xb -----END PGP SIGNATURE----- --=.8bC'lUCO+(5Eef-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message