Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
10 Creating Software Packages
This chapter describes the tasks associated with packaging software for distribution.
Table 45 Chapter Topics
Topics:
“Overview of the Packaging Process ” (page 165)
“Identifying the Products to Package ” (page 165)
Adding Control Scripts” (page 166)
“Creating a Product Specification File (PSF) ” (page 167)
“Packaging the Software (swpackage) ” (page 189)
“Packaging Tasks and Examples” (page 194)
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.
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.
Identifying the Products to Package
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.
Overview of the Packaging Process 165