DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Packaging your software applications

Quick reference to packaging procedures

Before beginning any packaging procedure, you must first have planned your packaging needs based on the information presented in ``Basic steps of packaging''. This section covers only the required steps.

  1. Create a prototype(4) file.

  2. Create a pkginfo file.

    Use any editor. Define one entry per line per parameter in this format:

       PARAM="value"
    

    where PARAM is the name of one of the standard installation parameters defined in the pkginfo(4) manual page and value is the value you assign to it.

    You can also define values for your own installation parameters using the same format. Names for parameters that you create must begin with an uppercase letter and be followed by only lowercase letters.

    The following five parameters are required in every pkginfo file: PKG, NAME, ARCH, VERSION, and CATEGORY. No other restrictions apply concerning which parameters or how many parameters you define.

    The CLASSES parameter dictates which classes are installed and the order of installation. Although the parameter is not required, no classes will be installed without it. Even if you have no class action scripts, the none class must be defined in the CLASSES parameter before objects belonging to that class will be installed.

  3. Execute pkgmk(1).
       pkgmk [-d device] [-r rootpath] [-b basedir] [-f filename]
    
    where -d specifies that the package should be copied onto device, -r requests that the root directory rootpath be used to locate objects on your machine, -b requests that basedir be prepended to relocatable paths when searching for them on your machine, and -f names a file, filename, to be used as your prototype(4) file. (Other options are described in the pkgmk(1) manual page.)

Next topic: Case studies of package installation
Previous topic: The setsizecvt command

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004