Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

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 /etc/
owner. If only the uid is specified, it is set as the destination’s uid
attribute and no owner name is assigned. If both are specified, each
sets the corresponding attribute for the file object.
On systems that support numeric usernames, to specify a numeric
username for owner, both the numeric username and the uid must
be supplied. If a numeric username alone is specified, it is interpreted
as a uid.
During an installation, the owner attribute is used to set the owner
name and uid, unless the owner name is not specified or is not
defined in the target system’s /etc/passwd file. In this case, the
uid attribute is used to set the uid.
-g [group[,]][gid] This option defines the file’s group name and/or gid at its destination.
If only the group is specified, then the group and gid attributes are
set for the destination file based on the packaging host’s /etc/
group. If only the gid specified, it is set as the destination’s gid
attribute and no group name is assigned. If both are specified, each
sets the corresponding attribute for the file object.
On systems that support numeric groupnames, to specify a numeric
groupname, both the numeric groupname and the gid must be
supplied. If a numeric groupname alone is specified, it is interpreted
as a gid.
During an installation, the group attribute is used to set the group
name and gid, unless the group name is not specified or is not defined
in the Target system’s /etc/group. In this case, the gid attribute is
used to set the gid.
-t type Defines a file of type d (directory), s (symbolic), h (hard link), or a
(archive) for files that need not exist before packaging.
192 Creating Software Packages