DOC HOME
SITE MAP
MAN PAGES
GNU INFO
SEARCH
PRINT BOOK
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
pkgmk
pkgtrans
pkgproto
The installation tools
The package information files
pkginfo
prototype
The description lines
The command lines
compver
copyright
depend
space
pkgmap
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
Techniques
Approach
pkginfo file
prototype file
request script
2. Device driver installation
3. Create an installation database
Techniques
Approach
pkginfo file
prototype file
space file
Installation class action script (i.admin)
Removal class action script (r.cfgdata)
4. Define package compatibilities and dependencies
Techniques
Approach
pkginfo file
copyright file
compver file
depend file
5a. Modify an existing file using the sed class
Techniques
Approach
pkginfo file
prototype file
sed script (/home/mypkg/inittab.sed)
postinstall script
5b. Modify an existing file using a class action script
Techniques
Approach
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
Techniques
Approach
pkginfo file
prototype file
build script (/home/case5c/inittab.build)
6. Modify crontab files during installation
Techniques
Approach
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
Techniques
Approach
setinfo file
prototype file
preinstall script file
request script file
7b. Split one set into two
Techniques
Approach
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