HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)
s
swpackage(4) swpackage(4)
path_mapping_string
Maximum length: none
Examples: /mfg/sd/files/usr = /usr
A value of the form: ‘‘source[=
destination]’’ where the source defines the directory in which
subsequently defined files are located. The optional destination maps the source to a desti-
nation directory in which the files will actually be installed.
file_specification
Maximum length: none
Examples:
-m 04555 sbin/swinstall
or * (to denote all files and directories)
Explicitly specifies a file or directory to be packaged, using the format:
[-m mode][-o [owner
[,]][uid]]
[-g [
group[,]][gid
]] [-v][source][destination]
The source and destination can be paths relative to source and destination directories
specified in the path_mapping_string.
You can also use * to include all files below the source directory specified by a
direc-
tory
keyword.
permission_string
Maximum length: none
Examples: -u 0222 -o root -g sys
A value of the form:
[-m mode|-u umask ][-o [owner[,]][uid]]
[-g [
group[,]][gid]]
where each component defines a default permissions value for each file and directory
defined in a fileset. The default values can be overridden in each file’s specific definition.
The owner and group fields are of type tag_string. The uid and gid fields are of type
unsigned integer. The mode and umask are unsigned integers, but only supports the octal
character set: "0"-"7".
software_specification
Maximum length: none
Examples: SD.agent or SD,r=2.0,a=HP-UX_B.11.23_IA/PA
Software specifications are used to specify software in dependencies, ancestors and other
attributes, as well as command line selections. The SD commands and attributes support
the following syntax for each software_specification:
bundle[.product[.subproduct][.fileset]][,version]
product[.subproduct][.fileset][,version]
• The = (equals) relational operator lets you specify selections with the following shell
wildcard and pattern-matching notations:
[], *, ?
For example, *man selects all bundles and products with tags that end with "man".
• Bundles and subproducts are recursive. Bundles can contain other bundles and subpro-
ducts can contain other subproducts, for example:
bun1.bun2.prod.sub1.sub2.fset,r=1.0
or (using expressions):
bun[12].bun?.prod.sub*,a=HP-UX
• The \* software specification selects all products. Use this specification with caution.
The version component has the form:
[,r <op> revision][,a <op> arch][,v <op> vendor]
[,c
<op> category][,q=qualifier][,l=location]
[,fr
<op> revision][,fa <op> arch]
HP-UX 11i Version 3: February 2007 − 7 − Hewlett-Packard Company 447