Packaging your software applications

Contents of a package
    Required components
    Optional package information files
    Optional installation scripts

Quick steps to packaging

Quick steps to network installation
    Network installation from the command line
    Network installation from the graphical interface

The structural life cycle of a package

The package creation tools

The installation tools

The package information files
        The description lines
        The command lines

The installation scripts
    Script processing
    Installation parameters
    Getting package information for a script
    Exit codes for scripts
    The request script
        Request script naming conventions
        Request script usage rules
        Soliciting user input in request scripts
    The class action script
        Class action script naming conventions
        Class action script usage rules
        Installation of classes
        Removal of classes
    The special system classes
        The sed class script
        The awk class script
        The build class script
    The procedure script
        Naming conventions for procedure scripts
        Procedure script usage rules

Basic steps of packaging
    1. Assigning a package abbreviation
    2. Defining a package instance
        Identifying a package instance
        Accessing the instance identifier in your scripts
    3. Placing objects into classes
    4. Making package objects relocatable
        Defining collectively relocatable objects
        Defining individually relocatable objects
    5. Writing your installation scripts
        Reserving additional space on the installation machine
    6. Defining package dependencies
    7. Writing a copyright message
    8. Creating the pkginfo file
    9. Creating the prototype file
        Creating the file manually
        Creating the file using pkgproto
    10. Distributing packages over multiple volumes
    11. Creating a package with pkgmk
        Package file compression
        Creating a package instance
        Helping pkgmk locate package contents
    12. Creating a package with pkgtrans
        Creating a datastream package
        Translating a package instance

Set packaging
    Set installation
    Set removal
    Set information display
    The setsize file
    The setsizecvt command

Quick reference to packaging procedures

Case studies of package installation
    1. Selective installation
        pkginfo file
        prototype file
        request script
    2. Device driver installation
    3. Create an installation database
        pkginfo file
        prototype file
        space file
        Installation class action script (i.admin)
        Removal class action script (r.cfgdata)
    4. Define package compatibilities and dependencies
        pkginfo file
        copyright file
        compver file
        depend file
    5a. Modify an existing file using the sed class
        pkginfo file
        prototype file
        sed script (/home/mypkg/inittab.sed)
        postinstall script
    5b. Modify an existing file using a class action script
        pkginfo file
        prototype file
        Installation class action script (i.inittab)
        Removal class action script (r.inittab)
        inittab file
    5c. Modify an existing file using the build class
        pkginfo file
        prototype file
        build script (/home/case5c/
    6. Modify crontab files during installation
        pkginfo file
        prototype file
        Installation class action script (i.cron)
        Removal class action script (r.cron)
        root crontab file (delivered with package)
        sys crontab file (delivered with package)
    7a. Create a Set Installation Package
        setinfo file
        prototype file
        preinstall script file
        request script file
    7b. Split one set into two
        Original setinfo file
        New setinfo file for SIP 1
        New setinfo file for SIP 2
        Original prototype file
        New prototype file for SIP 1
        New prototype file for SIP 2