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

Document Information


1.  Designing a Package

2.  Building a Package

3.  Enhancing the Functionality of a Package (Tasks)

Creating Information Files and Installation Scripts (Task Map)

Creating Information Files

Defining Package Dependencies

How to Define Package Dependencies

Writing a Copyright Message

How to Write a Copyright Message

Reserving Additional Space on a Target System

How to Reserve Additional Space on a Target System

Creating Installation Scripts

Script Processing During Package Installation

Script Processing During Package Removal

Package Environment Variables Available to Scripts

Obtaining Package Information for a Script

Exit Codes for Scripts

Writing a request Script

request Script Behaviors

Design Rules for request Scripts

How to Write a request Script

Gathering File System Data With the checkinstall Script

checkinstall Script Behaviors

Design Rules for checkinstall Scripts

How to Gather File System Data

Writing Procedure Scripts

Procedure Script Behaviors

Design Rules for Procedure Scripts

How to Write Procedure Scripts

Writing Class Action Scripts

Defining Object Classes

How Classes Are Processed During Package Installation

How Classes Are Processed During Package Removal

The Class Action Script

Class Action Script Behaviors

Design Rules for Class Action Scripts

The Special System Classes

The sed Class Script

The awk Class Script

The build Class Script

The preserve Class Script

The manifest Class Script

How to Write Class Action Scripts

Creating Signed Packages

Signed Packages

Certificate Management

Adding Trusted Certificates to the Package Keystore

Adding a User Certificate and Private Key to the Package Keystore

Verifying the Contents in the Package Keystore

Deleting Trusted Certificates and Private Keys From the Package Keystore

Signed Packages Creation

How to Create an Unsigned, Directory-Format Package

How to Import the Certificates Into the Package Keystore

How to Sign the Package

4.  Verifying and Transferring a Package

5.  Case Studies of Package Creation

6.  Advanced Techniques for Creating Packages



Creating Information Files and Installation Scripts (Task Map)

The following task map describes the optional features you can build into a package.

Table 3-1 Creating Information Files and Installation Scripts (Task Map)

For Instructions
1. Create information files
Define package dependencies

A definition of package dependencies allows you to specify whether your package is compatible with previous versions, dependent on other packages, or whether other packages are dependent on yours.

Write a copyright message

A copyright file provides legal protection for your software application.

Reserve additional space on the target system.

A space file sets aside blocks on the target system, which enables you to create files during installation that are not defined in the pkgmap file.

2. Create installation scripts
Obtain information from the installer

A request script enables you to obtain information from the person installing your package.

Gather file system data needed for installation

A checkinstall script enables you to perform an analysis of the target system and set up the correct environment for, or cleanly halt, the installation.

Write procedure scripts

Procedure scripts enable you to provide customized installation instructions during specific phases of the installation or removal process.

Write class action scripts

Class action scripts enable you to specify a set of instructions to be executed during package installation and removal on specific groups of package objects.