Set the following in /etc/make.conf:
WRKDIRPREFIX=/home/anl/ports-build
DISTDIR=/home/anl/ports-dist
WRKDIRPREFIX is a directory that the unprivileged user as able to write to; DISTDIR is the directory their downloads of source files are written to.
If the port you are building requires another port to be installed for it to be built, you will be prompted for the root password, so this technique is not suitable for unattended port installations.
Post a Comment