Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
PSF Value Types .........................................................................................................172
Product Specification File Semantics...............................................................................175
Vendor-Defined Attributes........................................................................................175
Distribution (Depot) Specification..............................................................................175
Vendor Specification...............................................................................................176
Category Specification............................................................................................176
Product or Bundle Specification................................................................................177
Control Script Specification......................................................................................179
Subproduct Specification.........................................................................................180
Fileset Specification................................................................................................180
Dependency Specification.......................................................................................182
Control Script Specification......................................................................................183
File Specification....................................................................................................184
Re-Specifying Files ......................................................................................................188
Packaging the Software (swpackage) .....................................................................................189
Using swpackage............................................................................................................192
Output of Logfile Messages .........................................................................................194
Packaging Tasks and Examples..............................................................................................194
Registering Depots Created by swpackage .........................................................................194
Creating and Mastering a CD-ROM Depot..........................................................................195
Compressing Files to Increase Performance .........................................................................195
Packaging Security ..........................................................................................................195
ACL Creation .............................................................................................................196
Repackaging or Modifying a Software Package ..................................................................197
Packaging In Place ..........................................................................................................198
Following Symbolic Links in the Source ...............................................................................198
Generating File Revisions .................................................................................................198
Depots on Remote File Systems .........................................................................................198
Verifying the Software Package .........................................................................................199
Packaging Patch Software.................................................................................................199
Writing to Multiple Tapes .................................................................................................199
Making Tapes from an Existing Depot ................................................................................200
11 Using Control Scripts ............................................................................201
Introduction to Control Scripts.................................................................................................201
Types of Control Scripts ....................................................................................................202
Space Files.................................................................................................................204
Script Interpreter..........................................................................................................204
Control Script Format ..................................................................................................205
General Script Guidelines .....................................................................................................205
Packaging Control Scripts......................................................................................................205
Control Script Location on the File System During Execution ..................................................206
Using Environment Variables .................................................................................................207
Variables That Affect All SD-UX Commands.........................................................................207
LANG.......................................................................................................................207
LC_ALL.......................................................................................................................208
LC_CTYPE..................................................................................................................208
LC_MESSAGES...........................................................................................................208
LC_TIME....................................................................................................................208
TZ.............................................................................................................................208
Variables That Affect All SD-UX Scripts................................................................................208
SW_CATALOG...........................................................................................................208
SW_CONTROL_DIRECTORY .......................................................................................208
SW_CONTROL_TAG...................................................................................................208
SW_LOCATION .........................................................................................................208
Contents 9