Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

10 Creating Software Packages
This chapter describes the tasks associated with packaging software for distribution.
Table 44 Chapter Topics
Topics:
“Overview of the Packaging Process ” (page 171)
“Identifying the Products to Package ” (page 171)
Adding Control Scripts” (page 172)
“Creating a Product Specification File (PSF) ” (page 173)
“Packaging the Software (swpackage) ” (page 195)
“Packaging Tasks and Examples” (page 200)
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.1 Prerequisites
Before you begin packaging software, ensure the following:
SD-UX is installed and configured on the system where you intend to create your software
package.
The software to package is installed on the packaging system, or that the necessary files are
available remotely.
10.2 Identifying the Products to Package
10.2.1 Determining Product Contents
The first step in packaging software is to determine what files and directories you want included
in the software product. These files and directories must follow certain guidelines to support the
configuration you want.
10.1 Overview of the Packaging Process 171