From owner-freebsd-ports Sat Jul 7 7:57:51 2001 Delivered-To: freebsd-ports@freebsd.org Received: from hex.databits.net (hex.databits.net [207.29.192.16]) by hub.freebsd.org (Postfix) with SMTP id 4ACD137B405 for ; Sat, 7 Jul 2001 07:57:49 -0700 (PDT) (envelope-from petef@hex.databits.net) Received: (qmail 48536 invoked by uid 1001); 7 Jul 2001 14:57:48 -0000 Date: Sat, 7 Jul 2001 10:57:48 -0400 From: Pete Fritchman To: Mike Holling Cc: freebsd-ports@freebsd.org Subject: Re: Using $PREFIX in config.input? Message-ID: <20010707105748.G31989@databits.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from myke@ees.com on Sat, Jul 07, 2001 at 01:08:07AM -0600 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 ++ 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 Databits Network Services, Inc. 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