From owner-freebsd-ports@FreeBSD.ORG Wed May 9 18:42:21 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 899B416A403 for ; Wed, 9 May 2007 18:42:21 +0000 (UTC) (envelope-from jrhett@svcolo.com) Received: from kininvie.sv.svcolo.com (kininvie.sv.svcolo.com [64.13.135.12]) by mx1.freebsd.org (Postfix) with ESMTP id 71AC013C459 for ; Wed, 9 May 2007 18:42:21 +0000 (UTC) (envelope-from jrhett@svcolo.com) Received: from [10.67.240.119] (public-wireless.sc.svcolo.com [64.13.143.30]) (authenticated bits=0) by kininvie.sv.svcolo.com (8.13.8/8.13.4) with ESMTP id l49IgIOg091744; Wed, 9 May 2007 11:42:18 -0700 (PDT) (envelope-from jrhett@svcolo.com) In-Reply-To: <20070509120724.GA39154@goofy.cultdeadsheep.org> References: <46418749.9020902@svcolo.com> <20070509120724.GA39154@goofy.cultdeadsheep.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jo Rhett Date: Wed, 9 May 2007 11:42:08 -0700 To: Clement Laforet X-Mailer: Apple Mail (2.752.2) X-Spam-Score: undef - SENDER Whitelisted (jrhett@svcolo.com: Mail from user authenticated via SMTP AUTH allowed always) X-CanItPRO-Stream: default X-Canit-Stats-ID: 97031 - 0cd930a43c5d X-Scanned-By: CanIt (www . roaringpenguin . com) on 64.13.135.12 Cc: ports@freebsd.org Subject: pkg_add needs to have a command line option that replicates PACKAGESITE 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: Wed, 09 May 2007 18:42:21 -0000 On May 9, 2007, at 5:07 AM, Clement Laforet wrote: >> pkg_add really needs a command line option instead of only using the >> environment variables... > > "pkg_add -r http://my.freebsd-repo.com/packages/All/ > my_packages-1.0.tbz" > works fine ;-) The behavior is not identical. For example, this works only for a single package. /usr/sbin/pkg_add -r http://my.location/packages/{pkgname} This works for multiple packages: export PACKAGESITE=http://my.location/packages/ /usr/sbin/pkg_add -r {pkgname} {pkgname2} Also, the former will not resolve dependancies properly (it alters the path), whereas the latter will. In short, they are not synonymous. A command line option which is synonymous with the environment variable would be very useful in scripts/cfengine/etc. I thought I had opened a bug on this, but apparently not... -- Jo Rhett senior geek Silicon Valley Colocation Support Phone: 408-400-0550