Application Packaging Developer's Guide

ProcedureHow to Write a request Script

  1. Make the directory that contains your information files the current working directory.

  2. Create a file named request with your favorite text editor.

  3. Save your changes and quit the editor when you are done.

  4. Complete one of the following tasks.

  5. Build your package.

    See How to Build a Package, if needed.

Example 3–5 Writing a request Script

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. Assume that these variables 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 <<!

See Also

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 these tasks and provides step-by-step instructions on how to transfer your verified package to a distribution medium.