Making ports in alternative areas

Kris Kennaway kris at obsecurity.org
Fri Oct 21 16:07:14 PDT 2005


On Fri, Oct 21, 2005 at 06:42:36PM -0400, Jerry McAllister wrote:
> > 
> > I'm running low on disc space on my /usr partition and I would like to  
> > compile a program from the ports that is rather large. I have enough space  
> > once it's compiled, it's just the work that I don't have enough space for.  
> > how can I get the port to do it's work in a different area on a different  
> > partition?
> 
> Do you have enough space on another partition to move the whole
> ports tree over there?   That would be nicest.   But, the principle
> is the same even if you only move that directory.
> 
> Make a directory in the larger partition.   If it is for all of ports
> I might suggest calling it usr.ports
> Tar up the stuff you want to move.
> Unroll it in the new roomier space.
> Create a symlink to the new space.
> You can tar to a pipe and untar from that pipe, but if there is room
> I prefer to go to and from a file.   It improves my confidence.

[...]

This is way too much work.  We have environment variable to solve the
OP's problem.  See make.conf(5) and ports(7).

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20051021/f7733c66/attachment.bin


More information about the freebsd-questions mailing list