swpackage.4 (2010 09)
s
swpackage(4) swpackage(4)
Default Permission Specification
By default, a destination file object will inherit the mode, owner, and group of the source file. The
file_permissions
keyword can be specified to set a default permission umask/mode, owner, and
group for all the files being packaged into the fileset. This includes files specified by
-t that do not exist
before packaging. (See the EXAMPLES section for sample permission specifications.)
file_permissions [-m
mode|-u umask][-o[
owner[,]][uid]] \
[-g[group[,]][gid
]] [-t type]
file_permissions
Applies only to the fileset it is defined in. Multiple
file_permissions
can be specified,
later definitions simply replace previous definitions.
-m mode
Defines a default (octal) mode for all file objects.
-u umask
Instead of specifying an octal mode as the default, the user can specify an octal
umask value
which gets "subtracted" from an existing source file’s mode to generate the mode of the destina-
tion file.
By specifying a
umask, the user can set a default mode for executable files, non-executable
files, and directories. (A specific mode can be set for any file, as described above.)
-o [owner[,]][uid]
Defines the destination file’s owner name and/or or uid (as defined above).
-g [group[,]][gid]
Defines the destination file’s group name and/or or gid (as defined above).
-t type
Defines the destination file’s type (as defined above). Caution, some releases of swpackage do
not work correctly with -t type, see WARNINGS section for details.
PSF Extensions
A PSF can contain extended file definitions. SD currently supports
exclude and include files.
Exclude files let you explicitly exclude files that would otherwise be included in the PSF. The syntax is:
exclude filename
An exclude file can only be specified after a file definition. The file listed after the
exclude keyword is
excluded from the current context (for example, from a recursive file definition or wildcard).
If the filename specifies a directory, then all files below that directory are excluded.
Include files let you include file definitions from a separate file. The syntax is:
file < include_file
The include file must be separated from the
file keyword by a less than sign (<).
EXAMPLES
This example illustrates a typical PSF.
# PSF file which defines an example product.
depot
layout_version 1.0
# Vendor definition:
vendor
tag HP
title Hewlett-Packard Company
description < data/descr.hp
category
tag system_mgt
title Systems Management Applications
description These are the system management applications
revision 1.0
end
HP-UX 11i Version 3: September 2010 − 23 − Hewlett-Packard Company 23