Bug 30874

Summary: Change ports system to note installs outside of /usr/ports
Product: Ports & Packages Reporter: wayne <wayne>
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description wayne 2001-09-27 18:20:01 UTC
When building a port, make install writes files, including work/.install_done
into the /usr/prots tree.  As make install is normally run by root, this
means that companies trying to NFS mount a single copy of/usr/ports are 
required to mount it write enabled AND -maproot=root.
Also, it is not intuitive that one must do make reinstall on a new machine
to circumvent the ports system.

Fix: 

Move the files read/written by make install and make reinstall 
from the ports work directory to /var/db/pkg/<PORT NAME>.
How-To-Repeat: NFS mount /usr/ports read only and try to make install
Comment 1 FUJISHIMA Satsuki freebsd_committer freebsd_triage 2001-09-27 23:19:29 UTC
State Changed
From-To: open->closed

use WRKDIRPREFIX.