Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Software Package Builder 2.0 User's Guide: for HP-UX 11i v1 and 11i v2 > Chapter 4 Getting Started with Software Package Builder

Getting Started Using the SPB GUI

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Get started using SPB by familiarizing yourself with how to create a PSF, add a product and filesets, manage fileset content, validate a PSF, and set attributes.

This procedure walks you through the steps required to create a valid PSF.

Creating a New PSF

Procedure 4-1 To create a PSF

  1. Launch the SPB GUI.

    /opt/spb/bin/spb

  2. From the main menu, select File > New PSF.

  3. Select File > Save As to name and save the new PSF.

  4. Select the new PSF in the Package Structure.
    Its associated attributes display in the Attribute table.

NOTE: At a minimum, a valid PSF must contain one product, one fileset, and one file.

Procedure 4-2 To create a product and add filesets

  1. From the main menu, select Structure> Add Element(s) > Product.
    The Product dialog box displays.

  2. Enter a product name.

  3. Select a predefined fileset name by selecting from the list provided
    OR
    Enter a new name in the Fileset Name field.

  4. Click Add.

  5. To save and exit, click OK once all filesets have been added to the product.

Managing Fileset Content

  1. From the Package Structure, highlight the fileset to which you want to add files.

  2. From the Structure menu, select Add Element(s) > Files.
    The Manage Fileset Content dialog appears.

Procedure 4-4 To create a destination filesystem

  1. Click Add Directory.
    A new directory, titled NewDirectory1 appears in the Destination Filesystem.

  2. Double-click on the NewDirectory1.
    This places you in edit mode.

  3. Replace NewDirectory1 by typing your new directory path and press ENTER.
    The entire path is automatically built for you.

  4. Repeat this process until you have created the structure for the destination filesystem.

IMPORTANT: A source path must be specified for all directories added to the Destination Filesystem.

Procedure 4-5 To map a file from the source to the destination filesystem

  1. From the Destination Filesystem, select the directory into which you want to map files.

  2. Navigate the Source Filesystem and locate the appropriate directory path.

  3. Select the directory or file(s) you want to add to the Destination Filesystem.

  4. Click Add. The directory or file(s) are added to the selected directory in the Destination Filesystem.

  5. Repeat this process until you have mapped all the appropriate source files to the Destination Filesystem.

  6. From the Destination Filesystem, select the directory you want to map files into.

Procedure 4-6 To set file (or directory) permissions

  1. Select the appropriate file (or directory) from the Destination Filesystem.

  2. From the File Attributes table (or Directory Attributes table), click in the Mode field.

  3. Select the mode appropriate for your file (or directory).

  4. Once you have set all desired file permissions, click OK to exit and return to the main window.

NOTE: SPB by default assigns the file mode access for a destination file or directory by inheriting the setting from the original source. If you wish to accept the default settings, you need not do anything.
TIP: You can apply a common mode across a select group of files in the File Attributes table by right-clicking in a Mode field and selecting Apply to All.

Validating a PSF

Within SPB, validation occurs when you:

  • Open an existing PSF

  • Enter data

The results of the validation process appear on the Messages tab. If the PSF is valid, the message Validation Status: PSF Passed Validation appears. If it is invalid, you should debug the PSF as directed by the information provided in the Policy Help tab.

Setting Attributes

Most attributes are optional; however, there are a few required attributes. Setting optional attributes can help to provide more control and precision when the software package is installed, updated, and removed.

You can filter which attributes you want to display in the Attribute Table by selecting to view only the required and currently set attributes.

Procedure 4-7 To filter the attribute display

  1. Highlight any software element in the Package Structure.

  2. From the View menu, select Show Required or Set Attributes.

  3. View how the Attribute Table display has changed.
    The required attributes that you may have entered, along with any pre-set, default attribute display.

Procedure 4-8 To set attributes

  1. Highlight a software element in the Package Structure.
    Its associated Attribute Table displays.

  2. In the Attribute Table, click in the desired Attribute Value field and input valid data.

    TIP: At any time, you may select the Policy Help tab to review packaging policy information for the attribute you have currently selected.
  3. Press Enter.

  4. Verify you have entered a valid attribute value by looking in the Messages tab.

  5. Continue this process until you have entered all desired attribute values.

    NOTE: Remember, you are able to validate your PSF in real-time. Every time you enter new data into the PSF, SPB re-validates the file.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2002-2004 Hewlett-Packard Development Company, L.P.