Building a Mac OS X Package for Amanda: Difference between revisions
m (started..) |
No edit summary |
||
Line 3: | Line 3: | ||
= Prerequisites = | = Prerequisites = | ||
You will need: | You will need: | ||
* XCode (download the latest version from Apple at http://developer.apple.com/tools/xcode/) | |||
* autotools (use [http://www.finkproject.org/ Fink] or [http://darwinports.opendarwin.org/ DarwinPorts], or install them manually) | |||
= Overview = | |||
The basic plan here is to compile Amanda and install it into a temporary location (<tt>/tmp/amroot</tt>). The result is essentially an overlay containing the files that <tt>make install</tt> would create. We then use Package Maker to bundle that overlay with some additional scripts and utilities into a package. | |||
NOTE: these instructions reference files which may not yet be a part of the distribution tarball. | |||
= Compile = | = Compile = | ||
Amanda should be compiled | Amanda should be compiled as described in [[Installing Amanda on Mac OS X]]. You will need to create the amanda user, although creating the remaining directories is not required. | ||
The configuration is | |||
./configure --prefix=/usr/local --with-user=amanda --with-group=wheel | |||
Instead of <tt>sudo make install</tt>, however, run | |||
DESTDIR=/tmp/amroot sudo make install |
Revision as of 19:09, 29 March 2007
This document discusses creating a MacOS X package (a .pkg file in a .dmg disk image) from scratch. This is the process that the Amanda team follows to create a new package. Unfortunately, Apple's packaging applications are not scriptable -- these instructions must be followed manually.
Prerequisites
You will need:
- XCode (download the latest version from Apple at http://developer.apple.com/tools/xcode/)
- autotools (use Fink or DarwinPorts, or install them manually)
Overview
The basic plan here is to compile Amanda and install it into a temporary location (/tmp/amroot). The result is essentially an overlay containing the files that make install would create. We then use Package Maker to bundle that overlay with some additional scripts and utilities into a package.
NOTE: these instructions reference files which may not yet be a part of the distribution tarball.
Compile
Amanda should be compiled as described in Installing Amanda on Mac OS X. You will need to create the amanda user, although creating the remaining directories is not required.
The configuration is
./configure --prefix=/usr/local --with-user=amanda --with-group=wheel
Instead of sudo make install, however, run
DESTDIR=/tmp/amroot sudo make install