Building a Mac OS X Package for Amanda: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
No edit summary
Line 19: Line 19:
Instead of <tt>sudo make install</tt>, however, run  
Instead of <tt>sudo make install</tt>, however, run  
  DESTDIR=/tmp/amroot sudo make install
  DESTDIR=/tmp/amroot sudo make install
You should now have a full amanda install located under <tt>/tmp/amroot/</tt>.
= Build Package =
Open the Package Maker project under contrib/macosx.  Edit the "Package Version" information, if necessary, and then select Project -> Build.  You will be prompted for the location at which to save the resulting package.

Revision as of 20:12, 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:

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

You should now have a full amanda install located under /tmp/amroot/.

Build Package

Open the Package Maker project under contrib/macosx. Edit the "Package Version" information, if necessary, and then select Project -> Build. You will be prompted for the location at which to save the resulting package.