Can't you do something like pkg_create ... /dev/stdout | pkg_add -f -C /mnt - > > Hmm, recreating a package from the installed port and installing it > > again in chroot() sounds pretty straightforward to me... > > It has the indispensable quality that it works. The downsides are the > overhead in CPU consumption (compress, decompress) and disk space.