From owner-freebsd-questions@FreeBSD.ORG Wed Nov 2 00:00:31 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CCF816A420 for ; Wed, 2 Nov 2005 00:00:31 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD0343D53 for ; Wed, 2 Nov 2005 00:00:30 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so3777nzd for ; Tue, 01 Nov 2005 16:00:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fVzB5jsf2cVF5AXS7bgBgEPf0dX229QDpfBdDvUTRSGOEaD9+hMSeMe86icTqY/KLq7Wg1a/tV1fIYIZJ9iimAAEgKa3Ne69dRv+JaZfWyPvGGAVQ+YnGKPUQYOzIwhjIdgZzxb7lf7vYGVlvqPRWiyAv0P2jT6EAqslY60A/Jg= Received: by 10.36.222.75 with SMTP id u75mr4559910nzg; Tue, 01 Nov 2005 16:00:26 -0800 (PST) Received: by 10.37.20.34 with HTTP; Tue, 1 Nov 2005 16:00:26 -0800 (PST) Message-ID: Date: Wed, 2 Nov 2005 03:00:26 +0300 From: "Andrew P." To: "Anthony M. Agelastos" In-Reply-To: <17C40F0B-BCE0-4BC1-99CE-E6E62BA2D4DF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <17C40F0B-BCE0-4BC1-99CE-E6E62BA2D4DF@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: wrkdirprefix default? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 00:00:31 -0000 On 10/30/05, Anthony M. Agelastos wrote: > Hello. > > Sometime back, I posted a message mentioning that I planned on > installing OpenOffice once it reached 2.0 status on my FreeBSD > machine using a nonstandard wrkdirprefix path (original email is > shown via the below link). > > http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D184696+187981+/usr/local/ > www/db/text/2005/freebsd-questions/20050918.freebsd-questions > > One reply was that I can use > > env WRKDIRPREFIX=3D/myotherlocation make install > > This is fine for installing it, but I was wondering was there a good > way of modifying WRKDIRPREFIX to always point to this location only > for OpenOffice.org, that way I can use portupgrade in the future and > not have to worry about it? I am assuming the best way of dealing > with this is with the file /usr/local/etc/pkgtools.conf. assume that > I could put it inside of the MAKE_ARGS section. What is the most > optimal way of modifying this file for what I have mentioned above? I > have read the pkgtools.conf and ports manpages (and am still slightly > confused) and am running FreeBSD 5.4-STABLE. > > If the only way to do this is by modifying the variable on the whole > so everything is built elsewhere, I suppose that is alright as well. > If this is the only way, what is the preferred way of handling this? > Thank you all for your assistance. > > -Anthony > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > Yes, pkgtools.conf is one of the best ways to do this, MAKE_ARGS =3D { 'openoffice*' =3D> 'WRKDIRPREFIX=3D/mydir', } You can also read make manpage and test .CURDIR in /etc/make.conf, but that's not so neat.