Date: Mon, 3 Oct 2011 06:07:27 -0500 From: "Conrad J. Sabatier" <conrads@cox.net> To: "Thomas Mueller" <mueller6727@bellsouth.net> Cc: freebsd-ports@freebsd.org Subject: Re: environment variables for portupgrade: /etc/make.conf or /usr/local/etc/pkgtools.conf? Message-ID: <20111003060727.58662513@cox.net> In-Reply-To: <20111003072247.68808106566C@hub.freebsd.org> References: <20111002090448.094497a4@cox.net> <20111003072247.68808106566C@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 3 Oct 2011 07:22:44 +0000 (GMT) "Thomas Mueller" <mueller6727@bellsouth.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111003060727.58662513>