Make the directory containing your information files the current working directory.
Create a file named request with your favorite text editor.
Save your changes and quit the editor when you are done.
Complete one of the following tasks.
If you want to create additional installation scripts, skip to the next task, How to Gather File System Data.
If you have not created your prototype file, complete the procedure How to Create a prototype File Using the pkgproto Command, and skip to Step 5.
If you have already created your prototype file, edit it and add an entry for the installation script you just created.
Build your package.
See How to Build a Package, if needed.
After you build the package, install it to confirm that it installs correctly and verify its integrity. Chapter 4, Verifying and Transferring a Package explains how to do this and provides step-by-step instructions on how to transfer your verified package to a distribution medium.
When a request script assigns values to environment
variables, it must make those values available to the pkgadd
command. This example shows a request script segment
that performs this task for the four environment variables CLASSES
, NCMPBIN
, EMACS
, and NCMPMAN
. (These were defined in an interactive session with the
administrator earlier in the script.)
# make environment variables available to installation # service and any other packaging script we might have cat >$1 <<! CLASSES=$CLASSES NCMPBIN=$NCMPBI EMACS=$EMACS NCMPMAN=$NCMPMAN ! |