Posted 9 April 2012 on andypeace.com.
Unlike my previous attempt at this, building this version of the packages was easy as the source packages already exist in the 'precise' (12.10) release of Ubuntu. If you are doing this yourself (e.g. because you need them for a different OS version or architecture) you should install the
libacl1-dev in addition to the defined build dependencies, otherwise you'll get a build failure (see #808868 on Launchpad).
TODO: Since my original article, I discovered Ubuntu PPAs (personal package archives) where one can upload source packages and have binary packages generated. I should update this to use a PPA instead to make installation easier and safer, and to have the package available on more architectures and versions of Ubuntu.
The binary netatalk 2.2.1 package built for the 64-bit version of Ubuntu 11.04 (natty):
The source package files: