PKGMAP(5) | File Formats and Configurations | PKGMAP(5) |
pkgmap - package contents description file
pkgmap is an ASCII file that provides a complete listing of the package contents. It is automatically generated by pkgmk(1) using the information in the prototype(5) file.
Each entry in pkgmap describes a single ``deliverable object file.'' A deliverable object file includes shell scripts, executable objects, data files, directories, and so forth. The entry consists of several fields of information, each field separated by a space. The fields are described below and must appear in the order shown.
part
ftype
Files of the following types must never be modified:
b
c
d
f
i
l
p
s
x
Files of the following types can be modified:
e
v
Following package installation, the contents of files of all types except e and v must not change. Any file that is subject to change should be marked as e or v.
class
pathname
Do not use the following reserved words in pathname, since they are applied by pkgadd(8) using a different mechanism:
PKG_INSTALL_ROOT BASEDIR CLIENT_BASEDIR
major
minor
mode
The mode can contain a variable specification. (See prototype(5) for definitions of variable specifications.)
owner
The owner can contain a variable specification. (See prototype(5) for definitions of variable specifications.)
group
The group can contain a variable specification. (See prototype(5) for definitions of variable specifications.)
size
cksum
modtime
Each pkgmap file must have one line that provides information about the number of parts, maximum size of parts that make up the package, and, optionally, the size of the package after compression (where size is given in 512-byte blocks). This line is in the following format:
: number_of_parts maximum_part_size compressed_pkg_size
Lines that begin with ``#'' are comment lines and are ignored.
When files are saved during installation before they are overwritten, they are normally just copied to a temporary pathname. However, for files whose mode includes execute permission (but which are not editable), the existing version is linked to a temporary pathname and the original file is removed. This allows processes which are executing during installation to be overwritten.
Example 1 A Sample pkgmap File
: 2 500 1 i pkginfo 237 1179 541296672 1 b class1 /dev/diskette 17 134 0644 root other 1 c class1 /dev/rdiskette 17 134 0644 root other 1 d none bin 0755 root bin 1 f none bin/INSTALL 0755 root bin 11103 17954 541295535 1 f none bin/REMOVE 0755 root bin 3214 50237 541295541 1 l none bin/UNINSTALL=bin/REMOVE 1 f none bin/cmda 0755 root bin 3580 60325 541295567 1 f none bin/cmdb 0755 root bin 49107 51255 541438368 1 f class1 bin/cmdc 0755 root bin 45599 26048 541295599 1 f class1 bin/cmdd 0755 root bin 4648 8473 541461238 1 f none bin/cmde 0755 root bin 40501 1264 541295622 1 f class2 bin/cmdf 0755 root bin 2345 35889 541295574 1 f none bin/cmdg 0755 root bin 41185 47653 541461242 2 d class2 data 0755 root bin 2 p class1 data/apipe 0755 root other 2 d none log 0755 root bin 2 v none log/logfile 0755 root bin 41815 47563 541461333 2 d none save 0755 root bin 2 d none spool 0755 root bin 2 d none tmp 0755 root bin
pkgmk(1), stat(2), pkginfo(5), prototype(5), pkgadd(8)
Application Packaging Developer's Guide
The pkgmap file may contain only one entry per unique pathname.
July 12, 2006 | OmniOS |