Software Distributor Administration Guide (March 2009)

Table Of Contents
10 Creating Software Packages
This chapter describes the tasks associated with packaging software for distribution.
Table 10-1 Chapter Topics
Topics:
“Overview of the Packaging Process ” (page 217)
“Identifying the Products to Package ” (page 218)
Adding Control Scripts” (page 219)
“Creating a Product Specification File (PSF) ” (page 220)
“Packaging the Software (swpackage) ” (page 249)
“Packaging Tasks and Examples” (page 256)
10.1 Overview of the Packaging Process
To help you distribute software from depots, Software Distributor lets you package
software into SD-UX format. The packaging process lets you create depots directly or
create packages that you can add to depots later. The packaging specification is flexible
enough to fit many software build and manufacturing process needs.
The packaging process consists of the following tasks:
1. Identifying the package.
Determine what files and directories you want to include in your software package,
and determine product structure. Your software package can consist of files, filesets,
subproducts, products, and bundles.
2. Write control scripts (optional).
You can write control scripts and include them in your package. These scripts let
you perform additional checks and operations beyond those supported by SD-UX.
3. Create a Product Specification File (PSF) to define the product package.
4. Create the software package by running the swpackage command.
The swpackage command reads the PSF file, analyzes the product definitions,
and packages the source files and information into product objects. It then creates
and inserts the product into the distribution depot.
10.1 Overview of the Packaging Process 217