From owner-freebsd-questions@FreeBSD.ORG Mon May 26 06:35:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ADDE37B401 for ; Mon, 26 May 2003 06:35:08 -0700 (PDT) Received: from thong.s2s.msu.ru (thong.s2s.msu.ru [193.232.119.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31BB643F75 for ; Mon, 26 May 2003 06:35:07 -0700 (PDT) (envelope-from epbox@yandex.ru) Received: from hq.sectorb.msk.ru (petaflop.lcm.msu.ru [193.232.113.220]) by thong.s2s.msu.ru (Postfix) with ESMTP id 3FAD44612E for ; Mon, 26 May 2003 17:35:03 +0400 (MSD) Received: from 172.16.11.154 (unknown [172.16.11.154]) by hq.sectorb.msk.ru (Postfix) with ESMTP id EBD8813268 for ; Mon, 26 May 2003 17:35:02 +0400 (MSD) From: Vladik Kozin To: freebsd-questions@freebsd.org Date: Mon, 26 May 2003 17:36:32 +0400 User-Agent: KMail/1.5 References: <20030525111828.GA353@pooh.nagual.st> <20030525113105.GK90914@freepuppy.bellavista.cz> In-Reply-To: <20030525113105.GK90914@freepuppy.bellavista.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305261736.33348.epbox@yandex.ru> Subject: Re: PACKAGESITE ??/pub/unix/FreeBSD/ports/i386/packages-4.8-release/sysutils/ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: epbox@yandex.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 13:35:08 -0000 What if I'd like the "pkg_add -r" to work exactly the same way as it does by default but using an alternative url? Now, let say, there is a url: "ftp://fbsd.local/" with the following directory structure "/FreeBSD/ports/i386/packages-4.8-release/" (all the 4.8-release packages can be found in this directory). I'd like to tell "pkg_add -r foopackage" and have it installed with all its dependencies from the url mentioned above. As far as I understand the PACKAGESITE var specifies the exact path to the package, thus if the "/sysutils/foopackage.tgz" depends on "/rubysomething/foodep.tgz" then the latest won't be retrieved and the pkg_adding process will fail. Probably I need to use the PACKAGEROOT var? But in this case the site I intend to use is supposed to have some specific "default FreeBSD" structure, isn't it? Any ideas about how to solve the problem? On Sunday 25 May 2003 15:31, Roman Neuhauser wrote: > # dick@nagual.st / 2003-05-25 13:18:28 +0200: > > I have to set the "PACKAGESITE" for pkg_add or portinstall -PP to work > > properly, but I cannot find where to do this. > > I search the manual/handbook for a location, but alas.. > > > > Does anybody know how and where to set this, so I can do a > > "portupgrade -PPrR kde" and get the latest 3.1.2-packages? > > this is a basic-shell-usage question. > > bourne shell compatible: > > PACKAGESITE=http://example.com/this/that/ portupgrade -PPrR kde > > or > > export PACKAGESITE=http://example.com/this/that/ > portupgrade -PPrR kde > > (t)csh: > > env PACKAGESITE=http://example.com/this/that/ portupgrade -PPrR kde > > or > > setenv PACKAGESITE http://example.com/this/that/ > portupgrade -PPrR kde