|
|
The pkgmk(1) command takes all of the package objects residing on the development machine, optionally compresses them, copies them onto the installation medium, and places them into a fixed directory structure. You are not required to know the details of the fixed directory structure because pkgmk takes care of the formatting.
Files can be unstructured on the development machine and pkgmk will structure them correctly on the medium based on information supplied in the prototype(4) file. The installation medium onto which a package is formatted can be removable (a disk, for example) or it can be a directory on a machine.
pkgmk requires the presence of two information files on the development machine, the prototype(4) and the pkginfo(4) files (other package information files might be present). The pkginfo file defines the values for a number of package parameters, such as the package abbreviation and the package name. The prototype file provides a complete list of the package contents. pkgmk creates the pkgmap(4) file, the package contents file on the installation medium, by processing the prototype file and then adding three fields to each entry.
pkgmk follows these steps when processing a package: