...
Installer Generation layout
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 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
Installers Projects Architecture
...