Software Distributor Administration Guide for HP-UX 11i
Creating Software Packages
Creating a Product Specification File (PSF)
Chapter 10 339
•
Set the same mode defaults, plus a uid and gid:
file_permissions -u 222 -o 2 -g 2
• Set the owner write permission in addition to the above:
file_permissions -u 022 -o 2 -g 2
• If you do not define file_permissions, swpackage uses the default value
file_permissions -u 000 for destination file objects based on existing
source files. (Meaning the
mode
,
owner/uid
,
group/gid
are set based on the
source file, unless specific overrides are specified for a destination file.)
Directory Mapping (Optional) The directory
source
[=
destination
]
specification defines the source directory under which subsequently listed files
are located. In addition, you can map the
source
directory to a
destination
directory under which the packaged files will be installed.
For example, the definition:
directory /build/hpux/mfg/usr = /usr
causes files from the /build/hpux/mfg/ directory to have the prefix /usr/sbin
when installed. The destination directory must be a superset of the product’s
directory attribute, if defined in the product specification. If the product’s
directory is defined, and the destination is not a superset, swpackage generates
an error.
The destination directory must be an absolute pathname. If not, then swpackage
generates an error.
The source directory can be either an absolute pathname, or a relative pathname.
If relative, swpackage interprets it relative to the current working directory in
which the command was invoked.
If the
source
directory does not exist, swpackage generates an error.