Scriptification of http://www.perkin.org.uk/posts/distributed-chrooted-pkgsrc-bulk-builds.html