Software Distributor Administrator Guide (September 2010)
10.6 Packaging Tasks and Examples.................................................................................260
10.6.1 Registering Depots Created by swpackage ......................................................260
10.6.2 Creating and Mastering a CD-ROM Depot.......................................................261
10.6.3 Compressing Files to Increase Performance .....................................................261
10.6.4 Packaging Security ...........................................................................................262
10.6.4.1 ACL Creation ............................................................................................263
10.6.5 Repackaging or Modifying a Software Package ...............................................264
10.6.6 Packaging In Place ............................................................................................265
10.6.7 Following Symbolic Links in the Source ..........................................................265
10.6.8 Generating File Revisions .................................................................................265
10.6.9 Depots on Remote File Systems .......................................................................266
10.6.10 Verifying the Software Package ......................................................................266
10.6.11 Packaging Patch Software................................................................................267
10.6.12 Writing to Multiple Tapes ...............................................................................267
10.6.13 Making Tapes from an Existing Depot ...........................................................268
11 Using Control Scripts ............................................................................................................269
11.1 Introduction to Control Scripts.................................................................................269
11.1.1 Types of Control Scripts ...................................................................................270
11.1.1.1 Space Files.................................................................................................273
11.1.1.2 Script Interpreter.......................................................................................273
11.1.1.3 Control Script Format ...............................................................................274
11.2 General Script Guidelines .........................................................................................274
11.3 Packaging Control Scripts.........................................................................................275
11.3.1 Control Script Location on the File System During Execution ........................276
11.4 Using Environment Variables ...................................................................................277
11.4.1 Variables That Affect All SD-UX Commands...................................................277
11.4.1.1 LANG........................................................................................................277
11.4.1.2 LC_ALL.....................................................................................................278
11.4.1.3 LC_CTYPE.................................................................................................278
11.4.1.4 LC_MESSAGES.........................................................................................278
11.4.1.5 LC_TIME...................................................................................................278
11.4.1.6 TZ..............................................................................................................278
11.4.2 Variables That Affect All SD-UX Scripts...........................................................278
11.4.2.1 SW_CATALOG..........................................................................................278
11.4.2.2 SW_CONTROL_DIRECTORY .................................................................278
11.4.2.3 SW_CONTROL_TAG................................................................................278
11.4.2.4 SW_LOCATION .......................................................................................279
11.4.2.5 SW_PATH .................................................................................................279
11.4.2.6 SW_ROOT_DIRECTORY .........................................................................279
11.4.2.7 SW_SESSION_OPTIONS..........................................................................280
11.4.2.8 SW_SOFTWARE_SPEC.............................................................................280
11.4.3 Variables That Affect swinstall and swremove.................................................280
Table of Contents 11