From owner-freebsd-ports@FreeBSD.ORG Mon Oct 3 07:22:47 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 68808106566C for ; Mon, 3 Oct 2011 07:22:47 +0000 (UTC) (envelope-from mueller6727@bellsouth.net) Received: from fmailhost06.isp.att.net (fmailhost06.isp.att.net [207.115.11.56]) by mx1.freebsd.org (Postfix) with ESMTP id 57AF68FC08 for ; Mon, 3 Oct 2011 07:22:47 +0000 (UTC) Date: Mon, 3 Oct 2011 07:22:44 +0000 (GMT) X-Comment: Sending client does not conform to RFC822 minimum requirements X-Comment: Date has been added by Maillennium Received: from localhost (adsl-68-210-187-7.sdf.bellsouth.net[68.210.187.7]) by isp.att.net (frfwmhc06) with SMTP id <20111003072244H0600a7a1oe>; Mon, 3 Oct 2011 07:22:44 +0000 X-Originating-IP: [68.210.187.7] From: "Thomas Mueller" To: freebsd-ports@freebsd.org References: <20111002090448.094497a4@cox.net> Message-Id: <20111003072247.68808106566C@hub.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 07:22:47 -0000 > > 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