Table 2-1 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 the make(1S) man page and the Programming Utilities Guide.
Table 2-1 Task Map: The Process of Building a Package
Task |
Description |
For Instructions, Go To |
|||||
---|---|---|---|---|---|---|---|
Create a pkginfo File |
You must create the pkginfo file to describe the characteristics of your package. | ||||||
Organize Package Contents |
You should arrange your package components into a hierarchical directory structure. | ||||||
| |||||||
Create Information Files |
Optional. Define package dependencies, include a copyright message, and reserve additional space on a target system. | ||||||
| |||||||
Create Installation Scripts |
Optional. Customize the installation and removal processes of a package. | ||||||
| |||||||
Create a prototype File |
Describe each object in your package in a prototype file. | ||||||
| |||||||
Build the Package |
Build your package using the pkgmk command. | ||||||
| |||||||
Verify and Transfer the Package |
Verify the integrity of a package before copying it to a distribution medium. | ||||||