JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Application Packaging Developer's Guide     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Designing a Package

2.  Building a Package

The Process of Building a Package (Task Map)

Package Environment Variables

General Rules on Using Environment Variables

Package Environment Variables Summary

Creating a pkginfo File

Defining a Package Instance

Defining a Package Abbreviation (PKG)

Specifying a Package Architecture (ARCH)

Specifying a Package Instruction Set Architecture (SUNW_ISA)

Specifying a Package Version (VERSION)

Defining a Package Name (NAME)

Defining a Package Category (CATEGORY)

How to Create a pkginfo File

Organizing a Package's Contents

How to Organize a Package's Contents

Creating a prototype File

Format of the prototype File

The ftype Field

The class Field

The path Field

Collectively Relocatable Objects

Individually Relocatable Objects

Parametric Path Names

A Brief Word on an Object's Source and Destination Locations

The mode Field

The owner Field

The group Field

Creating a prototype File From Scratch

Example--Creating a prototype File With the pkgproto Command

Fine-Tuning a prototype File Created With the pkgproto Command

Creating Object Entries With File Types v, e, x, and i

Using Multiple Class Definitions

Example--Fine-Tuning a prototype File Created Using the pkgproto Command

Adding Functionality to a prototype File

Defining Additional Objects to Be Created at Install Time

Creating Links at Install Time

Distributing Packages Over Multiple Volumes

Nesting prototype Files

Setting Default Values for the mode, owner, and group Fields

Providing a Search Path for the pkgmk Command

Setting Environment Variables

How to Create a prototype File by Using the pkgproto Command

Building a Package

Using the Simplest pkgmk Command

The pkgmap File

How to Build a Package

3.  Enhancing the Functionality of a Package (Tasks)

4.  Verifying and Transferring a Package

5.  Case Studies of Package Creation

6.  Advanced Techniques for Creating Packages

Glossary

Index

Organizing a Package's Contents

Organize your package objects in a hierarchical directory structure that mimics the structure that the package objects will have on the target system after installation. If you do this step before you create a prototype file, you can save yourself some time and effort when creating that file.

How to Organize a Package's Contents

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

    For help in completing this step, see Considerations Before Building a Package.

  2. Create a directory for each package you need to build.

    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. Organize the package objects in each package into a directory structure beneath their corresponding package directory. The directory structure must mimic the structure that the package objects will have 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. If appropriate, create a directory to keep the files 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
See Also

See How to Create a prototype File by Using the pkgproto Command.