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