Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)
swpackage generates an error if the PSF contains an unrecognized or unpackageable file type.
The swpackage command supports specific mechanisms for specifying the files contained in a
fileset:
default permission specification For all or some of the files in the fileset, you can define a
default set of permissions.
directory mapping You can point swpackage at a source directory in which
the fileset’s files are located. In addition, you can map this
source directory to the appropriate (destination) directory
in which this subset of the product’s files will be located.
explicit file specification For all or some of the files in the fileset, you can name each
source file and destination location.
recursive (implicit) file specification If directory mapping is active, you can simply tell
swpackage to recursively include all files in the directory
into the fileset.
PSF extensions You can use include and exclude files to extend file
definitions.
These mechanisms can all be used in combination with the others.
10.4.2.4.11.1 Default Permission Specifications
By default, a destination file will inherit the mode, owner, and group of the source file. You can
use the file_permissions keyword to set a default permission mask, owner, and group for all
the files being packaged into the fileset:
file_permissions [-m mode| -u umask] [-o [owner[,]] [uid]] [-g [group[,]][gid]][-t
type]
file_permissions This keyword applies only to the fileset in which it is defined. You
can specify multiple file_permissions; later definitions replace
previous definitions.
-m mode This option defines a default (octal) mode for all files.
-u umask Instead of specifying an octal mode as the default, you can specify
an octal umask(1) value that gets “subtracted” from an existing source
file’s mode to generate the mode of the destination file.
By specifying a umask, you can set a default mode for executable
files, non-executable files, and directories. (A specific mode can be
set for any file using -m.)
-o [owner[,]][uid] This option defines the destination file’s owner name and/or or uid.
See the discussion of the -o option in “Explicit File Specification ”
(page 191) for more information.
-g [group[,]][gid] This option defines the destination file’s group name and/or or gid.
See the discussion of the -g option in “Explicit File Specification ”
(page 191) for more information.
-t type Defines files that need not exist before packaging.
190 Creating Software Packages