From owner-freebsd-questions@FreeBSD.ORG Mon May 26 21:59:48 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 EBFF337B401 for ; Mon, 26 May 2003 21:59:48 -0700 (PDT) Received: from thong.s2s.msu.ru (thong.s2s.msu.ru [193.232.119.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 242E043F85 for ; Mon, 26 May 2003 21:59:48 -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 03862461A3 for ; Tue, 27 May 2003 08:59:47 +0400 (MSD) Received: from 172.16.11.154 (unknown [172.16.11.154]) by hq.sectorb.msk.ru (Postfix) with ESMTP id 817D513268 for ; Tue, 27 May 2003 08:59:46 +0400 (MSD) From: Vladik Kozin To: freebsd-questions@freebsd.org Date: Tue, 27 May 2003 09:01:16 +0400 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305270901.17203.epbox@yandex.ru> Subject: "pkg_add -r ..." from a url other than the default (using PACKAGESITE, PACKAGEROOT or smth. else) 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: Tue, 27 May 2003 04:59:49 -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 "pub/unix/FreeBSD/ports/i386/packages-4.8-release/". 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 "/lang/foodep.tgz" then the latter 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? In my case "/FreeBSD/ports/i386/packages-4.8-release/" is a commonly used structure, but it is prefixed by "/pub/unix/". Any ideas about how to solve the problem? Best regards. Vladik Kozin