You also want to set WRKDIRPREFIX to a writable directory or you won't be able to build ports.kpa said:If you're like me and would prefer to keep your ports tree mounted read-only (writeable only via a custom update script for example) set PACKAGES or PKGREPOSITORY to a writeable directory that already exists. More details in ports(7).