The Purple Pre-Packager is a tool that eats source tarballs and spits out installable binary packages. Originally designed for installing packages on Mac OS X but can support any system with a package management system.