Software Distributor Administration Guide for HP-UX 11i

Creating Software Packages
Creating a Product Specification File (PSF)
Chapter 10340
Explicit File Specification You can explicitly specify the files to be packaged
into a fileset. If you want to recursively include all files and directories, use the
recursive file specification (file *).
You can use the directory keyword to define a source (and destination) for
explicitly specified files. If no directory keyword is active, then the full source
path and the absolute destination path must be specified for each file. An explicit
file specification overrides or adds to, on a file-by-file basis, the specifications set
by the directory and/or file_permissions keywords.
An explicit file specification uses this form:
file [-v] [-m
mode
][-o [
owner
[,]][
uid
]] [-g [
group
[,]][
gid
]]
[-t type] [
source
][
destination
]
file This keyword specifies an existing file (usually within the
currently active source directory) to include in the fileset.
source This value defines the path to a file you want to include in the
package.
If this is a relative path, swpackage will search for it relative
to the source directory set by the directory keyword. If no
source directory is active, swpackage will search for it
relative to the current working directory in which the
command was invoked.
All attributes for the destination file object are taken from
the source file, unless a file_permission keyword is active,
or the -m, -o, or -g options are also included in the file
specification.
destination This value defines the destination path at which the file will
be installed. If
destination
is a relative path, the active
destination directory set by the directory keyword will be
prefixed to it. If it is a relative path, and no destination
directory is active, swpackage generates an error. If the
destination is not specified, then the source path is used as
the destination, with the appropriate mapping done with the
active destination directory (if any).
-m
mode
This option defines the (octal) mode for a file or directory at
its destination.
-o
[owner[,]][uid]
This option defines the file’s owner name and/or uid at its
destination. If only the
owner
is specified, then the owner and
uid attributes are set for the destination file based on the
packaging host’s. If only the
uid
is specified, it is set as the
destination’s uid and no owner name is assigned. If both are
specified, each sets the corresponding attribute for the file
object.