From owner-freebsd-questions@FreeBSD.ORG Sun Jul 13 08:53:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 580E51065671 for ; Sun, 13 Jul 2008 08:53:07 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id D1A238FC1B for ; Sun, 13 Jul 2008 08:53:06 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2414447fkk.11 for ; Sun, 13 Jul 2008 01:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=qm9xYKANDP19G2GrJYlSdA6lLAt+5Y4AS3fxOURbECc=; b=skuqP5GB0UIf8Q1ri9koTC45bzWpdQxtIu+3fpw9H264ReLLb+4JO/LOAgroF7rZZX I/orQPa4n9wqC5FgEy0chIRVggufPpG6nZcboUBaP9m3wYcQQbW1n59cqRyMxnCm0OmJ 7/avlF539AdUWTrCets5PhcNf4SqY3unfwRQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Zursi1cdYd9L65fiV7fQVJtPLPNSuQaVVfgFgbZNg68ZjTO401YqtDPFh2ygbRX+ZO pILDpmNOt6gI9k9S5mqa9lHLY4x8MjrDBCT0SXlutOrGDj196xbxbztY+6Qgsv/gq2j8 N6rSMO3R4Wbsz9MWcq2+5MTg12AxG/dCAKzdA= Received: by 10.187.195.7 with SMTP id x7mr793914fap.46.1215939185478; Sun, 13 Jul 2008 01:53:05 -0700 (PDT) Received: from atlantis.dyndns.org ( [79.131.197.56]) by mx.google.com with ESMTPS id g28sm7181266fkg.8.2008.07.13.01.53.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Jul 2008 01:53:04 -0700 (PDT) Message-ID: <4879C26D.1020901@gmail.com> Date: Sun, 13 Jul 2008 11:53:01 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080703) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <48798b9d.0bgmwrViDqPyEGdk%perryh@pluto.rain.com> <20080713065902.GB1773@shepherd> <4879bdce.y5h8w8XA+d8w3XuK%perryh@pluto.rain.com> In-Reply-To: <4879bdce.y5h8w8XA+d8w3XuK%perryh@pluto.rain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, sahil@tandon.net Subject: Re: PACKAGESITE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2008 08:53:07 -0000 perryh@pluto.rain.com wrote: >> Did you specify the -r flag? Without that, the PACKAGESITE >> environment variable is note used ... >> > > No, I didn't, because -- unless I am misunderstanding the description > of the -r flag -- that will cause pkg_add to look *only* on the FTP > site. I want it to use packages that have already been downloaded, > and use the FTP site only when a needed package is not available > locally. I'm trying to install an already-downloaded 10MB package > which has quite a few dependencies, several of which were already > fetched during a previous attempt. > > IOW I want the equivalent of specifying the current directory, > followed by the FTP site, in PKG_PATH; but the colon in the URL > messes that up by looking like a pathname separator. If I tried > something like > > setenv PKG_PATH .:ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/All/ > > it would look first in the current directory, then in a subdirectory > named ftp, and finally in a directory named //ftp.freebsd.org/... > _______________________________________________ > PKG_PATH is for directories only, it will not do FTP. from man pkg_add: " The value of the PKG_PATH is used if a given package cannot be found. The environment variable should be a series of entries separated by colons. Each entry consists of a directory name." If I understand well, what you are asking is for pkg_add to: - Search all local paths (in PKG_PATH) for a dependency - If not found, use PACKAGESITE to download from a site. As far as I know, pkg_add will only fetch dependencies recursively from the Internet when used with -r but it will then ignore PKG_PATH. Seems what you are asking cannot be done this way, but I might be wrong.