Application Packaging Developer's Guide

How to Organize A Package's Contents

  1. Determine how many packages you need to create and determine which package objects shall be located in each package.

    For help in completing this step, see Things to Think About Before Building a Package.

  2. For each package you need to build, make a directory.

    You can create this directory anywhere on your system and name it anything you like. The examples in this chapter assume that a package directory has the same name as the package abbreviation.

    $ cd /home/jane
    $ mkdir SUNWcadap
  3. For each package, organize package objects into a directory structure beneath their corresponding package directory, which mimics how they will be located on the target system.

    For example, the CAD application package, SUNWcadap, requires the following directory structure.

    Diagram shows teh structure of the SUNWcadap package directory.
  4. Decide where you will keep your information files and, if appropriate, make a directory to keep them in one location.

    This example assumes that the example pkginfo file from How to Create a pkginfo File was created in Jane's home directory.

    $ cd /home/jane
    $ mkdir InfoFiles
    $ mv pkginfo InfoFiles

Where to Go Next

If you are ready to go to the next task, see How to Create a prototype File Using the pkgproto Command.