I'd like to be able to move a port into my local FreeBSD source tree (because I am constantly modifying some of the header files on which the port depends). My naive approach is to (and I'll use net-snmp as an example):
Then modify the Makefile to be compatible with the build world environment.
Does this approach seem reasonable?
Are there gotcha's I should look out for?
Is there a better way to achieve the same result?
Code:
cd /usr/ports/net-mgmt/net-snmp
make configure
mkdir <path_to_freebsd_src>/usr.sbin/net-snmp
cp -a work/net-snmp<version>/ <path_to_freebsd_src>/usr.sbin/net-snmp
Then modify the Makefile to be compatible with the build world environment.
Does this approach seem reasonable?
Are there gotcha's I should look out for?
Is there a better way to achieve the same result?