Application Packaging Developer's Guide

The Process of Building a Package Task Map

The table below describes a process for you to follow when building packages, especially if you are inexperienced at building them. Although it is not mandatory for you to complete the first four tasks in the exact order listed, it will make your package building experience easier if you do. Once you are an experienced package designer, you can shuffle the sequence of these tasks to your preference.

As an experienced package designer, you can automate the package building process using the make command and makefiles. For more information, see make(1S).

Table 2–1 The Process of Building a Package Task Map

Task 

Description 

For Instructions, Go To ... 

1. Create a pkginfo File

You must create the pkginfo file to describe the characteristics of your package.

How to Create a pkginfo File

2. Organize Package Contents 

You should arrange your package components into a hierarchical directory structure. 

Organizing a Package's Contents

3. Create Information Files 

Optional. Define package dependencies, include a copyright message, and reserve additional space on a target system.

Chapter 3, Enhancing the Functionality of a Package

4. Create Installation Scripts 

Optional. Customize the installation and removal processes of a package.

Chapter 3, Enhancing the Functionality of a Package

5. Create a prototype File

Describe each object in your package in a prototype file.

Creating a prototype File

6. Build the Package 

Build your package using the pkgmk command.

Building a Package

7. Verify and Transfer the Package 

Verify the integrity of a package before copying it to a distribution medium. 

Chapter 4, Verifying and Transferring a Package