HP Software Package Builder (SPB) manual Packaging Policies

Page 27

Software Packaging

Packaging Policies

Packaging Policies

Packaging policies are a set of rules that must be consistently followed to create a valid software package. Packaging policies help ensure that the software package you create in SPB is consistently named and structured.

SPB validates your PSF against packaging policies, eliminating the need for you to learn the intricacies of software package structuring. By following a standard set of policies, you will experience fewer problems, problems that can turn into longer test cycles and customer defects. Packaging policies are implemented as Extensible Markup Language (XML) files. The default policies supplied with SPB are located in /opt/spb/data and are named as follows:

For HP-UX 11i v2 (B.11.23) - the default policy file is

112XPolicies_SD.xml

For HP-UX 11i v1 (B.11.11) - the default policy file is

11XPolicies_SD.xml

Chapter 2

27

Image 27
Contents Manufacturing Part Number December EditionTrademark Notices WarrantyGovernment License Copyright NoticePublication History Typographic Conventions Contents Glossary Index Introduction to Software Features Features BenefitsSoftware Package Builder Overview Distributor Software Package Builder and HP-UX SoftwareSoftware Package Builder Overview To access Java configuration information System RequirementsOptimizing Java Installation Overview InstallationTo download SPB from the Web Specifying Packaging Policy Rules File Starting Software Package BuilderPage Software Packaging Software Packaging Overview Software Packaging Lifecycle Software packaging lifecycle is displayed in FigureSoftware 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 Screen Regions Package StructureAttribute Table Messages Tab Policy Help TabPSF View Menus Tool BarAdditional 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 PSFSetting Attributes To filter the attribute displayTo 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 MappingSetting File Mapping OptionsTo set the recursive option To set the file * or include option Permissions Mode field of the Directory Attributes and File AttributesFile Mode Access AddTo apply a mode to all files Step Select Apply to AllAttributes table To change the default representation of the Mode field Step Select the Advanced Options buttonPermissions Selections Managing Fileset Content Creating and Using a Subproduct To create a subproductSubproduct To create a bundle Creating and Using a BundleCreating and Using a Vendor or Category To add a vendor or categoryAttribute Table Attributes Creating and Using Vendor Defined AttributesTo create a vendor defined attribute To edit a vendor defined attributeOverview of Software Specification Attributes Software Specification AttributesDependency Attributes SPB SpecificationsResolving SoftwareSoftware Specification Status Working with Dependency AttributesSPB 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 SetTo add remote content as a dependency attribute Click Add ContentStep 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