From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 21:16:05 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 0312416A41F for ; Sun, 6 Nov 2005 21:16:05 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69AAF43D64 for ; Sun, 6 Nov 2005 21:16:03 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.253.228] ([82.41.253.228]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sun, 6 Nov 2005 21:16:54 +0000 Message-ID: <436E7292.7090104@dial.pipex.com> Date: Sun, 06 Nov 2005 21:16:02 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20051106 X-Accept-Language: en-us, pl MIME-Version: 1.0 To: ross References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Nov 2005 21:16:54.0859 (UTC) FILETIME=[69CAF9B0:01C5E317] 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 21:16:05 -0000 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