Building a Mac OS X Package for Amanda

From wiki.zmanda.com
Jump to navigation Jump to search

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:

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