...
To generate the installer, a directory is created and contains a specific structure to be used with the PackageMaker command line utility.
Here's the layout of this directory:
The Info.plist file contains the general information about the package (package name, version, etc.).
The Resources directory contains the resources of the Installer (License and background files).
The root directory contains the files to be installed and their location on the target system, the root directory acting as the root of the filesystem (/).
This way, for example, the file org.apache.directory.server.plist inside the root > Library > LaunchDaemons directories will be installed at /Library/LaunchDaemons/org.apache.directory.server.plist.
Installation layout
...
The generation will create a Mac OS X Installer Package called Apache Directory Server Installer.pkg.
This package is handled as a single file in the Finder but it is actually a folder (with a .pkg extension) containing a particular structure.
So, it is impossible to distribute the package file through the Internet.
To avoid this distribution problem, the package is distributed inside a DMG (Disk iMaGe).
To generate the disk image, a directory is created and contains a specific structure to be used with the hdiutil command line utility.
Here's the layout of this directory:
The dmg directory that will be used as root for the dmg contains the following files:
- a (hidden) .background directory in which is hidden the background image (baskgound.png) for the disk image.
- a (hidden) .DS_Store file holding the View Options for the disk image.
- the Apache Directory Server Installer.pkg package.
Once it is generated and mounted, the disk image will only display the Apache Directory Server Installer.pkg package, as show below:
Installation layout
Installers Projects Architecture
...