Date: Sat, 7 Jul 2001 10:57:48 -0400 From: Pete Fritchman <petef@databits.net> To: Mike Holling <myke@ees.com> Cc: freebsd-ports@freebsd.org Subject: Re: Using $PREFIX in config.input? Message-ID: <20010707105748.G31989@databits.net> In-Reply-To: <Pine.BSF.4.21.0107070105090.15859-100000@av.fks.lan>; from myke@ees.com on Sat, Jul 07, 2001 at 01:08:07AM -0600 References: <Pine.BSF.4.21.0107070105090.15859-100000@av.fks.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
++ 07/07/01 01:08 -0600 - Mike Holling: | QPAGE_CONFIG="/etc/qpage.cf" | | What's the best way to change this so that $PREFIX is prepended to the | files? You probably want to use a regexp in the Makefile. Assuming the file in question is "configure", you'd do: post-patch: @${PERL} -pi -e 's!/etc!${PREFIX}/etc!g' ${WRKSRC}/configure Whenever you can make a regexp instead of a patch (that would go in the files/ directory), it's a good thing. -pete -- Pete Fritchman <petef@databits.net> Databits Network Services, Inc. <http://databits.net> finger petef@databits.net for PGP key 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?20010707105748.G31989>