Software Package Builder 5.0 User's Guide

TIP: For detailed information on SD-UX commands, refer to the manpage for individual
commands or the Software Distributor Administration Guide which can be found
at:http://www.docs.hp.com/en/SD
Software Package Structure
A software package is created from a hierarchy of software elements. The hierarchy provides
the structure needed by the filesystem to logically identify packaged files. A software package
also contains metadata specific to each software element. The metadata is generated by setting
attribute values. This is all accomplished through the creation of a PSF which defines the software
package.
Once the software package is created, you can create a software depot which acts as a repository
for your software products. Software depots can be managed using SD-UX commands.
The packaging process lets you create depots. The PSF is flexible enough to fit many software
build requirements and manufacturing process needs.
Before you begin packaging software, ensure the following:
SPB is installed and configured on the system where you intend to create your software
package.
The software to be packaged is installed on the packaging system, or the necessary files are
available remotely.
Organizing Filesystems
One of the first steps in packaging software is determining what files and directories you want
included in the software package. The files should follow certain guidelines to support the
configuration you want.
As much as is feasible, you should group your source directories and files so they correspond
with the filesets and products you are using in the software package. To make the maintenance
of your software package easier, when organizing your source and destination filesystems use
the following guidelines:
Create filesets with consistent file access modes (that is, file permissions).
Create directories with contents that are directed to the same filesets.
Group related files in the source filesystem that will directly translate to the destination
filesystem.
Software Elements
A software package is created from a hierarchy of software elements, which are structured and
defined in a PSF. The SPB-specific software elements are as follows:
File A file is the lowest level of software element that can be contained in a software
package. Files are grouped together to create filesets.
Fileset A fileset serves as a container for files, associated file attributes, and separate
control scripts. A fileset is comprised of a group of files. Filesets are grouped
and contained in products. A fileset can only belong to one product; however,
a fileset may be referenced in multiple subproducts within one product. A fileset
can also be included in multiple bundles through the product it is contained
within. A minimum of one fileset is required for a PSF.
Product A product is a container for filesets, subproducts, and/or control scripts specific
to a software package. Products are collections that form a set of related software.
A product can contain one fileset or multiple filesets. Products can contain
filesets specific to different versions of the product and different hardware
Software Package Structure 17