Join GitHub today
Notes on building Munki packages
Note: These docs are for building the Munki (1) tools. For Munki 2, see Building Munki2 Pkgs.
Munki releases are made available via Apple packages here: https://github.com/munki/munki/releases
These packages are built and released only for major development milestones. If you want to be on the cutting edge, or want to test a new feature before the official release, you may need to build your Munki tools from source.
A Leopard or Snow Leopard machine. See the next requirement.
Currently, to successfully build the Munki tools from source, you must be using Xcode 3.x on Leopard or Snow Leopard. Building on Lion is not currently supported because there is no way to build "universal" applications that run on PowerPC and Intel under Xcode 4. If you don't care about PowerPC compatibility, it is possible to use Xcode 4 on Lion, but this document does not describe that yet.
While not absolutely, strictly necessary to build the Munki tools, in order to follow this document you must also install Git. Git is a distributed revision control system. It is not installed by default on Leopard or Snow Leopard. You can find installation packages here: http://git-scm.com/download/mac
So now a bit of the chicken-and-the-egg problem. You need the Munki build script available here:
You can quickly download and execute it like so:
curl https://munki.googlecode.com/git/code/tools/make_munki_mpkg_from_git.sh | bash
This uses curl to download the latest make_munki_mpkg_from_git.sh script, and pipes it to the bash shell, which executes it.
When it's done, in the current directory, you'll have a Git clone of the current Munki code (munki-git) and a metapackage of the tools.
That's still too much work!
Timothy Sutton has set up an autobuild server for Munki, available here:
This machine automatically builds and makes available the the most recent Git commits. If you want to test a Git revision and don't want to/can't build it yourself, you can take advantage of these automatic builds.