From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 22:15:51 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 32C7116A41F for ; Sun, 6 Nov 2005 22:15:51 +0000 (GMT) (envelope-from ross.penner@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id A690543D49 for ; Sun, 6 Nov 2005 22:15:50 +0000 (GMT) (envelope-from ross.penner@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so213504wra for ; Sun, 06 Nov 2005 14:15:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:subject:references:message-id:from:content-type:mime-version:content-transfer-encoding:date:in-reply-to:user-agent; b=sh+ibOijPsUtAQkqUQUZva8dLZomGk3b9PA/jHi6Ewzo90QANGqKiqNebb43BrPHe9Za9yM4KCT3kMCmBzW/6gQBnuq0DQWn97DYxEmluc7odVEyowHPIwr/dcMWJyXn0OkTOKyqEiczpz+kt7bgrWzPRosVCwQs1fbLkcdqdh8= Received: by 10.54.126.10 with SMTP id y10mr686024wrc; Sun, 06 Nov 2005 14:15:50 -0800 (PST) Received: from ross.inet ( [205.250.255.161]) by mx.gmail.com with ESMTP id 39sm5851072wrl.2005.11.06.14.15.49; Sun, 06 Nov 2005 14:15:49 -0800 (PST) To: "Alex Zbyslaw" References: <436E7292.7090104@dial.pipex.com> Message-ID: From: ross Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sun, 06 Nov 2005 14:15:43 -0800 In-Reply-To: <436E7292.7090104@dial.pipex.com> User-Agent: Opera M2/8.50 (FreeBSD, build 1358) Cc: "freebsd-questions@freebsd.org" Subject: Re: Changing location of ports tree 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, 06 Nov 2005 22:15:51 -0000 On Sun, 06 Nov 2005 13:16:02 -0800, Alex Zbyslaw wrote: > ross wrote: > >> My /usr partition is to small for some of the larger programs >> (openoffice.org, jdk, etc) and I want to move my ports tree to a >> harddrive with more space. can I just change the line in >> /usr/local/etc/pkgtools.conf that says "ENV['PORTSDIR'] ||= >> '/usr/ports'" to "ENV['PORTSDIR'] ||= '/mybigfatharddrive/ports'"? >> >> Will all the pkg tools such as portsnap, portupgrade, and portversion >> continue to function properly? will I have to edit any other config >> files before this will work seemlessly? > > Move the tree then make a symlink from /usr/ports to your new dir. > That's guaranteed to work. You could also try just moving the distfiles > subdir and symlinking it, since that really takes the space (apart from > building). Without knowing how little space you have, it's hard to know > if that will be good enough. > > Just changing the ENV in pkgtools.conf will only work for tools which > use it, which I don't think includes portsnap. You'd want to set it in > your root shell for everything to see it. > > Or, for the larger ports just make with WRKDIRPREFIX set to somewhere > with lots of space. You can set that is pkgtools.conf per port, > assuming you use portupgrade or in make.conf, for every port to use it. > I don't like that as for some ports I sometimes need to keep the work > subdir hanging around. > > See man ports! > > --Alex > that symbolic link trick works wonders. Thanks for that tip as well as the others -- What time is it? Dodgeball Time!