Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
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.
-v This option marks the file as volatile, meaning it can be modified
(that is, deleted) after it is installed without impacting the fileset.
Files that may have their attributes (size, last modified time, etc.)
changed through normal use after they are installed should be
specified in the PSF file as volatile (by specifying -v on the line
defining the file). swverify will not, by default, check file attributes
for files that have the is_volatile attribute set to true (see the
check_volatile option for swverify).
Error Messages
When processing existing files in a source directory, swpackage identifies the following four kinds
of errors:
Cannot search directory (permission denied)
Cannot read the file (permission denied)
Unsupported file type encountered (source file must be a control script, regular file, directory,
hard link or symbolic link)
File does not exist
Using Directory and File Keywords
The following examples illustrate the use of the directory and file keywords.
Include all files under /build/hpux/mfg to be rooted under /usr:
directory /build/hpux/mfg=/usr
file *
Include only certain files under /build/hpux/mfg/, to be rooted under /usr and
/var/adm/sw:
directory /build/hpux/mfg=/usr
file sbin/swinstall
file sbin/swcopy
. . .
directory /build/hpux/mfg=/var/adm/sw
file nls/swinstall.cat nls/en_US.88591/swinstall.cat
file defaults newconfig/defaults
file defaults defaults
Explicitly list files, no directory mapping specified:
file /build/hpux/mfg/usr/bin/swinstall /usr/sbin/swinstall
file /build/hpux/mfg/usr/bin/swcopy /usr/sbin/swcopy
file /build/hpux/mfg/data/nls/swinstall.cat
/var/adm/sw/nls/en_US.88591/swinstall.cat
file /build/hpux/mfg/data/defaults
/var/adm/sw/newconfig/defaults
file /build/hpux/mfg/data/defaults /var/adm/sw/defaults
Use all specification types to include files:
directory /build/hpux/mfg/usr=/usr
file *
directory /build/hpux/mfg/data=/var/adm/sw
file defaults newconfig/defaults
file /build/hpux/mfg/data/defaults=/var/adm/sw/defaults
Creating a Product Specification File (PSF) 187