Software Distributor Administration Guide for HP-UX 11i

Creating Software Packages
Creating a Product Specification File (PSF)
Chapter 10 315
Control Files SD-UX supports execution of control files (also known
as control scripts) at the product and fileset level. Control scripts let you
perform additional checks and operations. The swinstall, swconfig,
swverify, and swremove commands each execute one or more vendor
supplied scripts. All scripts are optional but many times are needed
correctly complete the task that you want your software package to
perform. See Chapter 11, “Using Control Scripts,” on page 369 for a
complete discussion of control scripts.
Selecting the PSF Layout Version
You can select the layout version in the depot definition in the PSF (see
“Product Specification File Semantics” on page 321) or with the
layout_version option for swpackage, swmodify, swcopy, or swlist.
PSF syntax conforms to the layout_version=1.0 of the IEEE Standard
1387.2: Software Administration(POSIX). Previous versions of SD
supported the POSIX layout_version=0.8 syntax, which continues to
be supported.
Software depots cannot mix layout versions; they must be one or the
other.
Table 10-3 Control File Attributes
Keyword Type
Size in
Bytes
Example
checkinstall
checkremove
configure
control_file
fix
postinstall
postremove
preinstall
preremove
request
unconfigure
unpreinstall
unpostinstall
verify
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
path_string
1K
1K
1K
1K
1K
1K
1K
1K
1K
1K
1K
1K
1K
1K
./scripts/checkinstall
./scripts/checkremove
./scripts/configure
./scripts/subscripts
./scripts/fix
./scripts/postinstall
./scripts/postremove
./scripts/preinstall
./scripts/preremove
./scripts/request
./scripts/unconfigure
./scripts/unpreinstall
./scripts/unpostinstall
./scripts/verify