Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Nov 2005 14:15:43 -0800
From:      ross <ross.penner@gmail.com>
To:        "Alex Zbyslaw" <xfb52@dial.pipex.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Changing location of ports tree
Message-ID:  <op.szuashwew0tva9@ross.inet>
In-Reply-To: <436E7292.7090104@dial.pipex.com>
References:  <op.szt6yux7w0tva9@ross.inet> <436E7292.7090104@dial.pipex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 06 Nov 2005 13:16:02 -0800, Alex Zbyslaw <xfb52@dial.pipex.com>  
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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.szuashwew0tva9>