Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 17:47:13 +0100
From:      Ulrich Spoerlein <q@uni.de>
To:        Kevin Golding <kevin@caomhin.demon.co.uk>
Cc:        ports@freebsd.org
Subject:   Re: Patching for PREFIX
Message-ID:  <20030216164713.GC322@galgenberg.net>
In-Reply-To: <vGzPS5BCi6T%2BEw86@caomhin.demon.co.uk>
References:  <vGzPS5BCi6T%2BEw86@caomhin.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 16.02.2003 at 15:04:34 +0000, Kevin Golding wrote:
> Hi,
> 
> 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.
> 
> Basically I want to change /etc to $PREFIX/etc but I need $PREFIX to be
> expanded before the patch is applied.  Any ideas?

Most porters do it with ${REINPLACE_CMD} (aka sed) in post-patch:
target.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030216164713.GC322>