Create a prototype file containing both absolute and relocatable package objects.
This is discussed in detail in "The prototype File".
Add the sed class script to the prototype file.
The name of a script must be the name of the file that will be edited. In this case, the file to be edited is /etc/devlink.tab and so the sed script is named /etc/devlink.tab. There are no requirements for the mode, owner, and group of a sed script (represented in the sample prototype by question marks). The file type of the sed script must be e (indicating that it is editable).
CLASSES parameter to include the sed class.
Create a sed class action script (/etc/devlink.tab).
Create a postinstall script.
The postinstall script needs to execute the add_drv command to add the device driver to the system.
Create a preremove script.
The preremove script needs to execute the rem_drv command to remove the device driver from the system, prior to the package being removed.
Create a copyright file.
A copyright file contains the ASCII text of a copyright message. The message shown in the sample file is displayed on the screen during package installation.