Software Distributor Administration Guide for HP-UX 11i

Creating Software Packages
Creating a Product Specification File (PSF)
Chapter 10342
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
Recursive File Specification The file * keyword directs swpackage to
include every file (and directory) within the current source directory in the
fileset. swpackage attempts to include the entire, recursive contents of the source
directory in the fileset. (Partial wildcarding is not supported, e.g. file dm* to
indicate all files starting with “dm”.)
All attributes for the destination file object are taken from the source file, unless
a file_permission keyword is active (this keyword is described below).