Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

10.3 Adding Control Scripts...................................................................................................172
10.4 Creating a Product Specification File (PSF) .......................................................................173
10.4.1 Product Specification File Examples .........................................................................173
10.4.1.1 Minimal PSF ..................................................................................................173
10.4.1.2 Typical PSF....................................................................................................174
10.4.2 PSF Syntax ..........................................................................................................175
10.4.2.1 PSF Object Syntax .........................................................................................175
10.4.2.1.1 Control Files............................................................................................177
10.4.2.2 Selecting the PSF Layout Version .....................................................................178
10.4.2.3 PSF Value Types ............................................................................................178
10.4.2.4 Product Specification File Semantics.................................................................181
10.4.2.4.1 Vendor-Defined Attributes........................................................................181
10.4.2.4.2 Distribution (Depot) Specification..............................................................181
10.4.2.4.3 Vendor Specification..............................................................................182
10.4.2.4.4 Category Specification...........................................................................182
10.4.2.4.5 Product or Bundle Specification................................................................183
10.4.2.4.6 Control Script Specification......................................................................185
10.4.2.4.7 Subproduct Specification.........................................................................185
10.4.2.4.8 Fileset Specification................................................................................186
10.4.2.4.9 Dependency Specification.......................................................................188
10.4.2.4.10 Control Script Specification....................................................................189
10.4.2.4.11 File Specification...................................................................................189
10.4.2.5 Re-Specifying Files ........................................................................................194
10.5 Packaging the Software (swpackage) ..............................................................................195
10.5.1 Using swpackage..................................................................................................198
10.5.1.1 Output of Logfile Messages ..............................................................................200
10.6 Packaging Tasks and Examples.......................................................................................200
10.6.1 Registering Depots Created by swpackage ...............................................................200
10.6.2 Creating and Mastering a CD-ROM Depot...............................................................201
10.6.3 Compressing Files to Increase Performance ..............................................................201
10.6.4 Packaging Security ...............................................................................................201
10.6.4.1 ACL Creation ................................................................................................202
10.6.5 Repackaging or Modifying a Software Package .......................................................203
10.6.6 Packaging In Place ...............................................................................................204
10.6.7 Following Symbolic Links in the Source ....................................................................204
10.6.8 Generating File Revisions ......................................................................................204
10.6.9 Depots on Remote File Systems ...............................................................................204
10.6.10 Verifying the Software Package .............................................................................205
10.6.11 Packaging Patch Software......................................................................................205
10.6.12 Writing to Multiple Tapes .....................................................................................205
10.6.13 Making Tapes from an Existing Depot ....................................................................206
11 Using Control Scripts ............................................................................207
11.1 Introduction to Control Scripts...........................................................................................207
11.1.1 Types of Control Scripts ............................................................................................208
11.1.1.1 Space Files.......................................................................................................210
11.1.1.2 Script Interpreter...............................................................................................210
11.1.1.3 Control Script Format ........................................................................................211
11.2 General Script Guidelines ..............................................................................................211
11.3 Packaging Control Scripts................................................................................................211
11.3.1 Control Script Location on the File System During Execution ..........................................212
11.4 Using Environment Variables ..........................................................................................213
11.4.1 Variables That Affect All SD-UX Commands................................................................213
11.4.1.1 LANG............................................................................................................213
Contents 9