How to compile the client of Bacula 5.0.2 on Mac OS X Snow Leopard 64bit
After a fiddling around quite a while I finally managed to compile a working 64bit client of Bacula 5.0.2 for Mac OS X Snow Leopard (10.6.4).
After downloading the source tar.gz from http://www.bacula.org you would untar the file, enter the directory – and there is a special make command make -C platforms/osx
to compile the client. This does not work on 10.6.4 and not with 64bit.
My patch (bacula-5.0.2-snowleopard-64bit.patch.gz) can be applied as follows:
- Download bacula-5.0.2.tar.gz from http://www.bacula.org
tar xvzf bacula-5.0.2.tar.gz
cd bacula-5.0.2/platforms/osx
zcat ../../../wherever_you_saved_the_patch/bacula-5.0.2-snowleopard-64bit.patch.gz | patch -p1
make dmg
You will then find a mountable DMG within the products directory.
My patch is changing the following:
- Runs the file daemon as root after startup of the system
- Creates the config file with a director name of bacula-dir – to change this edit the file resources/postflight.in AFTER patching and replace bacula-dir by your_director_host-dir. This way all your clients already know the director host!
- Compiles a native 64bit executable under 10.6.4 with current SDKs
Hope this will help others!