HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
s
swpackage(4) swpackage(4)
(Hewlett-Packard Company)
directory
source[=destination]
file *
pairs to gather files from different source directories into a single fileset.
Explicit File Specification
Instead of, or in addition to, the recursive file specification, the user can explicitly specify the files and
directories to be packaged into a fileset.
The user can use the directory keyword to define a source (and destination) for explicitly specified files. If
no directory keyword is active, then the source path and the absolute destination path must be specified for
each file.
(See the EXAMPLES section for sample file specifications.)
An explicit file specification uses this form:
file [-m mode][-o [owner[,]][uid]] [-g [group[,]][gid]] [-t type]
[-v][
source][destination]
file
Specifies an existing file or directory (perhaps within the currently active source directory) to
include in the fileset.
source
Defines the relative or absolute path to the source file.
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_permissions keyword is active, or the
-m, -o,or-g, options are also included in the
file specification.
destination
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, the source is used as the destination, with the appropriate mapping
done with the active destination directory (if any).
-m mode
Defines the (octal) mode of a file or directory.
-o [owner[,]][uid]
Defines the destination file’s owner name and/or or uid. If only the owner is specified, the owner
and uid attributes are set for the destination file object, based on the packaging host’s
/etc/passwd . If only the uid is specified, it is set as the uid attribute for the destination
object and no owner name is assigned. If both are specified, each sets the corresponding attri-
bute for the file object. During an installation, the owner attribute is used to set the owner name
and uid, unless the owner name is not defined in the target system’s
/etc/passwd . In this
case, the uid attribute is used to set the uid.
-g [group[,]][gid]
Defines the destination file’s group name and/or or gid. If only the group is specified, the group
and gid attributes are set for the destination file object, based on the packaging host’s
/etc/group. If only the group is specified, and it contains digits only, it is interpreted as the
gid, and is set as the gid attribute for the destination object; no group name is assigned to the
object. If both are specified, each sets the corresponding attribute for the file object. During an
installation, the group attribute is used to set the group name and gid, unless the group name is
not defined in the target system’s /etc/group. In this case, the gid attribute is used to set
the gid.
-t type [ mode_options ] source [ filename ]
Defines a file of type d (directory), s (symbolic), or h (hard link). (Files do not need exist before
packaging.) For links, both source and path are required. For hard links, the source must exist
as a regular file elsewhere in the fileset. If the source and path both exist, then attributes from
the source are used in the target path, unless redefined by the mode_options.
HP-UX Release 11i: December 2000 − 20 − Section 4−−305
___
___