From owner-freebsd-ports@FreeBSD.ORG Mon Oct 3 11:07:40 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11E511065674 for ; Mon, 3 Oct 2011 11:07:40 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo102.cox.net (eastrmfepo102.cox.net [68.230.241.214]) by mx1.freebsd.org (Postfix) with ESMTP id A67368FC1B for ; Mon, 3 Oct 2011 11:07:39 +0000 (UTC) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmfepo102.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20111003110733.UIOM12239.eastrmfepo102.cox.net@eastrmimpo03.cox.net>; Mon, 3 Oct 2011 07:07:33 -0400 Received: from serene.no-ip.org ([98.164.86.236]) by eastrmimpo03.cox.net with bizsmtp id gB7Z1h00155wwzE02B7ZRV; Mon, 03 Oct 2011 07:07:33 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020B.4E899775.00A3,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=ASjpOCvEPoSfhuYnpalwTqAN2s78hBywh12H8bbbxwo= c=1 sm=1 a=YoT8z6bPh20A:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=uAbGmPAyUfLL1M3oYAsfuA==:17 a=pedpZTtsAAAA:8 a=kviXuzpPAAAA:8 a=av_qgA37DshtLZeNNiwA:9 a=CjuIK1q_8ugA:10 a=eJojReuL3h0A:10 a=4vB-4DCPJfMA:10 a=uAbGmPAyUfLL1M3oYAsfuA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id p93B7W53020445; Mon, 3 Oct 2011 06:07:32 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 3 Oct 2011 06:07:27 -0500 From: "Conrad J. Sabatier" To: "Thomas Mueller" Message-ID: <20111003060727.58662513@cox.net> In-Reply-To: <20111003072247.68808106566C@hub.freebsd.org> References: <20111002090448.094497a4@cox.net> <20111003072247.68808106566C@hub.freebsd.org> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: environment variables for portupgrade: /etc/make.conf or /usr/local/etc/pkgtools.conf? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 11:07:40 -0000 On Mon, 3 Oct 2011 07:22:44 +0000 (GMT) "Thomas Mueller" wrote: > > > But I still want to know where portupgrade gets environment > > > variables: /etc/make.conf, /usr/local/etc/pkgtools.conf (in > > > Ruby?), or other. > > > > Tom > > > Set them in your shell's environment: > > > > export PORTSDIR=/BETA1/usr/ports > > export PACKAGES=/usr/packages > > > -- > > Conrad J. Sabatier > > conrads@cox.net > > Do I have to do this for every portupgrade command, or can I put > these environment variable settings in a file, like /etc/make.conf > or /usr/local/etc/pkgtools.conf ? Put them in the rc file for your shell -- ~/{.bashrc,.shrc,.cshrc} or ~/.profile. > I left /usr/local/etc/pkgtools.conf in the modified state, modified > lines being > > ENV['PORTSDIR'] = '/BETA1/usr/ports' > ENV['PACKAGES'] = '/usr/packages' > # ENV['PORTSDIR'] ||= '/usr/ports' > # ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' > > > I suppose I could do a portupgrade with -n flag to see if my setup > looks workable? Sure, BTW, I think, if you do use the above in your pkgtools.conf, you probably want to stick to using the same operators ("||=") as the examples. I don't know the ruby language well enough at all to comment further. -- Conrad J. Sabatier conrads@cox.net