pkgsrc is a framework for building over 17,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, Mac OS X, and Linux.
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.