|
|
Installation classes allow a series of actions to be performed on a group of package objects at the time of their installation or removal. You place objects into a class in the prototype(4) file. All package objects must be given a class, although the class of none can be used for objects that require no special action.
The installation parameter CLASSES, defined in the pkginfo(4) file, is a list of classes to be installed (including the none class). Objects defined in the prototype file that belong to a class not listed in this parameter will not be installed. The actions to be performed on a class (other than simply copying the components to the installation machine) are defined in a class action script. These scripts are named after the class itself.
For example, to define and install a group of objects belonging to a class named class1, follow these steps:
f class1 /usr/src/myfile f class1 /usr/src/myfile2
CLASSES="class1 class2 none"
If you define a class but do not deliver a class action script, the only action taken for that class will be to copy components from the installation medium to the installation machine.