HP Software Package Builder (SPB) manual Software Package Structure, Organizing Filesystems

Page 19

Software Packaging

Software Package Structure

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 product specification file (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 (i.e., file permissions).

Create directories with contents that are directed to the same filesets.

Chapter 2

19

Image 19
Contents Manufacturing Part Number December EditionTrademark Notices WarrantyGovernment License Copyright NoticePublication History Typographic Conventions Contents Glossary Index Introduction to Software Features Benefits FeaturesSoftware Package Builder Overview Distributor Software Package Builder and HP-UX SoftwareSoftware Package Builder Overview System Requirements To access Java configuration informationOptimizing Java Installation Installation OverviewTo download SPB from the Web Specifying Packaging Policy Rules File Starting Software Package BuilderPage Software Packaging Software Packaging Overview Software packaging lifecycle is displayed in Figure Software Packaging LifecycleSoftware Packaging Lifecycle TIP Organizing Filesystems Software Package StructureSoftware Elements Software Package Structure Software Package Hierarchy Software Package HierarchyStructural Function Relationship Element Structural Elements Functions and RelationshipsSoftware Package Structure Attributes Product Specification FileSoftware Element Recommended Attribute Required Attribute ValuesSoftware Element Required Attribute Recommended Attribute ValuesPackaging Policies Page Software Package Builder Introduction Package Structure Screen RegionsAttribute Table Policy Help Tab Messages TabPSF View Tool Bar MenusAdditional Information Page Getting Started with Software To create a product and add filesets Getting Started Using the SPB GUICreating a New PSF To create a PSFStep Click Add Directory Managing Fileset ContentStep From the Structure menu, select Add Elements Files To create a destination filesystemTo set file or directory permissions Validating a PSFTo filter the attribute display Setting AttributesTo set attributes You enter new data into the PSF, SPB re-validates the file Example Using the SPB Command Line InterfaceEditing from the CLI Validating from the CLIReturn Values Incorporating SPB into Automated ProcessesAdditional Information Advanced Features Managing Fileset Content Manage Fileset Content Dialog Box Options Using Advanced FeaturesRegions File MappingMapping Options Setting FileTo set the recursive option To set the file * or include option Permissions Mode field of the Directory Attributes and File AttributesFile Mode Access AddStep Select Apply to All To apply a mode to all filesAttributes table Step Select the Advanced Options button To change the default representation of the Mode fieldPermissions Selections Managing Fileset Content To create a subproduct Creating and Using a SubproductSubproduct To create a bundle Creating and Using a BundleTo add a vendor or category Creating and Using a Vendor or CategoryAttribute Table Attributes Creating and Using Vendor Defined AttributesTo create a vendor defined attribute To edit a vendor defined attributeSoftware Specification Attributes Overview of Software Specification AttributesDependency Attributes SPB SpecificationsResolving SoftwareWorking with Dependency Attributes Software Specification StatusSPB will not To add a dependency attribute using the and relationship Click Add To add a dependency attribute using the or relationshipSelect Structure Add Elements Corequisites Click Add SetClick Add Content To add remote content as a dependency attributeStep Select Structure Add Elements Corequisites Using Control Scripts Using Control Scripts Additional Information Page Glossary GlossaryMultiple architecture Optional attribute Tag Unconfigure script Unconfigure script Glossary Index Software elements, 20 bundle, 21 category Index