move /usr/ports to different location

define in /etc/portsnap.conf

# Default location of the ports tree (target for "update" and "extract").
# PORTSDIR=/usr/ports
PORTSDIR=/usr/jails/ports

set variable in /etc/login.conf

:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,PORTSDIR=/usr/jails/ports:\

next rebuild db as root

# cap_mkdb /etc/login.conf

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.