Software Distributor Administrator Guide (September 2010)

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.
10.4 Creating a Product Specification File (PSF) 249