pkgsrc is a framework for building over 20,000 open source software packages. It is the native package manager on SmartOS, NetBSD, and Minix, and is portable across 23 different operating systems. Use one package manager across all of your systems!
Joyent provide binary packages for SmartOS/illumos, macOS, Linux, and NetBSD.
pkgsrc is primarily distributed using CVS, however there are git mirrors if you prefer.
bootstrap script to build a set of pkg tools under a specific prefix.