| 1 |
Bacula file daemon package builder for Mac OS X |
| 2 |
=============================================== |
| 3 |
|
| 4 |
This package build script lets you download, compile and package the bacula |
| 5 |
file daemon easily with a single command line. In addition to the Bacula file daemon |
| 6 |
the resulting installer package contains a short ReadMe file with instructions |
| 7 |
on how to install and use the software. Also a basic launchd property list is |
| 8 |
included along with preupgrade and postflight installer scripts to stop and |
| 9 |
restart the daemon while upgrading. To ensure the security of the users the |
| 10 |
passwords in the configuration files are generated during a first time |
| 11 |
installation and file permissions are checked and corrected on upgrades. |
| 12 |
|
| 13 |
Requirements: |
| 14 |
* Mac OS X 10.5 or later (building/packaging), 10.4 or later (deployment) |
| 15 |
* Mac OS X developer tools installed |
| 16 |
|
| 17 |
Example (compile and create package from within Bacula source tree): |
| 18 |
$ ./configure --enable-client-only |
| 19 |
$ make -C platforms/osx |
| 20 |
|
| 21 |
By moving the contents of platforms/osx to some other directory (e.g. |
| 22 |
~/bacula-standalone-bulder), it is possible to create installer packages from |
| 23 |
older bacula versions and for specific platforms. |
| 24 |
|
| 25 |
Examples (standalone mode): |
| 26 |
1. Create an installer package from the newest supported bacula source |
| 27 |
containing the bacula file daemon as a PPC/Intel universal binary. |
| 28 |
$ make dmg |
| 29 |
|
| 30 |
2. Create an installer package from a specified version of the bacula source |
| 31 |
containing the bacula file daemon as a PPC/Intel universal binary. |
| 32 |
$ make dmg BACULA_VERSION=3.0.0 |
| 33 |
|
| 34 |
3. Create an installer package from the newest supported bacula source |
| 35 |
containing the bacula file daemon for PPC architecture only. |
| 36 |
$ make dmg ARCHFLAGS="-arch ppc" PACKAGE_TITLE="Bacula File Daemon PPC x.y.z" |
| 37 |
|
| 38 |
4. Create an installer package from a specified version of the bacula source |
| 39 |
containing the bacula file daemon for the current architecture. |
| 40 |
$ make dmg BACULA_VERSION=2.4.4 ARCHFLAGS="" |
| 41 |
|
| 42 |
You find the built disk images in the products folder. |
| 43 |
|
| 44 |
Misc commands: |
| 45 |
1. Cleanup the build directory |
| 46 |
$ make clean |
| 47 |
2. Additionally remove the downloads and products: |
| 48 |
$ make distclean |
| 49 |
|
| 50 |
Additional notes on the build-script: |
| 51 |
* The following *FLAGS are used tu build universal binary with 10.4 SDK: |
| 52 |
CPPFLAGS=-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 |
| 53 |
CFLAGS=-O -g -arch i386 -arch ppc |
| 54 |
CXXFLAGS=${CFLAGS} |
| 55 |
LDFLAGS=-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -arch i386 -arch ppc |