Installation scripts are not required. However, you can provide scripts that perform customized actions during the installation of your package. An installation script has the following characteristics:
The script is composed of Bourne shell commands.
The script's file permissions should be set to 0644.
The script does not need to contain the shell identifier (#! /bin/sh).
The four script types are as follows:
The request script
The request script requests input from the administrator who is installing the package.
The checkinstall script
The checkinstall script performs special file system verification.
The checkinstall script is only available with the SolarisTM 2.5 release and compatible releases.
Procedure scripts define actions that occur at particular points during package installation and removal. You can create four procedure scripts with these predefined names: preinstall, postinstall, preremove, and postremove.
Class action scripts define a set of actions to be performed on a group of objects.
See Creating Installation Scripts for a more information on installation scripts.