1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
'\" te
.\" Copyright 1989 AT&T
.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH PKGMAP 4 "Jul 12, 2006"
.SH NAME
pkgmap \- package contents description file
.SH DESCRIPTION
.sp
.LP
\fBpkgmap\fR is an \fBASCII\fR file that provides a complete listing of the
package contents. It is automatically generated by \fBpkgmk\fR(1) using the
information in the \fBprototype\fR(4) file.
.sp
.LP
Each entry in \fBpkgmap\fR 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.
.sp
.ne 2
.na
\fB\fIpart\fR\fR
.ad
.RS 12n
An optional field designating the part number in which the object resides. A
part is a collection of files and is the atomic unit by which a package is
processed. A developer can choose the criteria for grouping files into a part
(for example, based on class). If no value is defined in this field, part 1 is
assumed.
.RE
.sp
.ne 2
.na
\fB\fIftype\fR\fR
.ad
.RS 12n
A one-character field that indicates the file type. Valid values are listed
below. File types are divided between those that are not to be modified and
those that are modifiable.
.sp
Files of the following types must never be modified:
.sp
.ne 2
.na
\fB\fBb\fR\fR
.ad
.RS 5n
block special device
.RE
.sp
.ne 2
.na
\fB\fBc\fR\fR
.ad
.RS 5n
character special device
.RE
.sp
.ne 2
.na
\fB\fBd\fR\fR
.ad
.RS 5n
directory
.RE
.sp
.ne 2
.na
\fB\fBf\fR\fR
.ad
.RS 5n
a standard executable file, data file, or other type of file, the contents of
which must never be modified.
.RE
.sp
.ne 2
.na
\fB\fBi\fR\fR
.ad
.RS 5n
information file (such as a file containing a copyright, list of dependencies,
or package information) or installation script (such as checkinstall, class
action [\fBi.\fR], pre/post install/remove), the contents of which must never
be modified.
.RE
.sp
.ne 2
.na
\fB\fBl\fR\fR
.ad
.RS 5n
linked file
.RE
.sp
.ne 2
.na
\fB\fBp\fR\fR
.ad
.RS 5n
named pipe
.RE
.sp
.ne 2
.na
\fB\fBs\fR\fR
.ad
.RS 5n
symbolic link
.RE
.sp
.ne 2
.na
\fB\fBx\fR\fR
.ad
.RS 5n
an exclusive directory accessible only by this package
.RE
Files of the following types can be modified:
.sp
.ne 2
.na
\fB\fBe\fR\fR
.ad
.RS 5n
An editable file, intended to be edited (selectively modified) after
installation. An editable file is expected to change on installation or
removal, can be shared by several packages, and must be installed by a class
action script. Examples are a configuration file or a list of users.
.RE
.sp
.ne 2
.na
\fB\fBv\fR\fR
.ad
.RS 5n
A volatile file, intended to be overwritten or appended to after installation.
A volatile file is not expected to change on installation or removal, is not
preserved between installations, and can be installed by a class action script.
Examples are a log file or a lock file.
.RE
Following package installation, the contents of files of all types except
\fBe\fR and \fBv\fR must not change. Any file that is subject to change should
be marked as \fBe\fR or \fBv\fR.
.RE
.sp
.ne 2
.na
\fB\fIclass\fR\fR
.ad
.RS 12n
The installation class to which the file belongs. This name must contain only
alphanumeric characters and be no longer than 12 characters. It is not
specified if the \fIftype\fR is \fBi\fR (information file).
.RE
.sp
.ne 2
.na
\fB\fIpathname\fR\fR
.ad
.RS 12n
\fIpathname\fR may contain variables of the form \fB$\fR\fIvariable\fR that
support install-time configuration of the file. \fIvariable\fR may be embedded
in the pathname structure. (See \fBprototype\fR(4) for definitions of variable
specifications.)
.sp
Do not use the following reserved words in \fIpathname\fR, since they are
applied by \fBpkgadd\fR(1M) using a different mechanism:
.sp
.in +2
.nf
PKG_INSTALL_ROOT
BASEDIR
CLIENT_BASEDIR
.fi
.in -2
.sp
.RE
.sp
.ne 2
.na
\fB\fImajor\fR\fR
.ad
.RS 12n
The major device number. The field is only specified for block or character
special devices.
.RE
.sp
.ne 2
.na
\fB\fIminor\fR\fR
.ad
.RS 12n
The minor device number. The field is only specified for block or character
special devices.
.RE
.sp
.ne 2
.na
\fB\fImode\fR\fR
.ad
.RS 12n
The octal mode of the file (for example, 0664). A question mark (\fB?\fR)
indicates that the mode will be left unchanged, implying that the file already
exists on the target machine. This field is not used for linked files,
packaging information files, or non-installable files.
.sp
The mode can contain a variable specification. (See \fBprototype\fR(4) for
definitions of variable specifications.)
.RE
.sp
.ne 2
.na
\fB\fIowner\fR\fR
.ad
.RS 12n
The owner of the file (for example, \fBbin\fR or \fBroot\fR). The field is
limited to 14 characters in length. A question mark (\fB?\fR) indicates that
the owner will be left unchanged or changed to the owner stored in the package
database, which could be different from what is on the file system. When the
question mark is used, it implies that the file is already on the file system.
This field is not used for linked files or non-installable files. It is used
optionally with a package information file. If used, it indicates with what
owner an installation script will be executed.
.sp
The owner can contain a variable specification. (See \fBprototype\fR(4) for
definitions of variable specifications.)
.RE
.sp
.ne 2
.na
\fB\fIgroup\fR\fR
.ad
.RS 12n
The group to which the file belongs (for example, \fBbin\fR or \fBsys\fR). The
field is limited to 14 characters in length. A question mark (\fB?\fR)
indicates that the group will be left unchanged or changed to the owner stored
in the package database, which could be different from what is on the file
system. When the question mark is used, it implies that the file is already on
the file system. This field is not used for linked files or non-installable
files. It is used optionally with a package information file. If used, it
indicates with what group an installation script will be executed.
.sp
The group can contain a variable specification. (See \fBprototype\fR(4) for
definitions of variable specifications.)
.RE
.sp
.ne 2
.na
\fB\fIsize\fR\fR
.ad
.RS 12n
The actual size of the file in bytes. This field is not specified for named
pipes, special devices, directories or linked files.
.RE
.sp
.ne 2
.na
\fB\fIcksum\fR\fR
.ad
.RS 12n
The checksum of the file contents. This field is not specified for named pipes,
special devices, directories, or linked files.
.RE
.sp
.ne 2
.na
\fB\fImodtime\fR\fR
.ad
.RS 12n
The time of last modification, as reported by the \fBstat\fR(2) function call.
This field is not specified for named pipes, special devices, directories, or
linked files.
.RE
.sp
.LP
Each \fBpkgmap\fR 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:
.sp
.LP
\fB:\fR \fInumber_of_parts\fR \fImaximum_part_size\fR \fIcompressed_pkg_size\fR
.sp
.LP
Lines that begin with ``\fB#\fR'' are comment lines and are ignored.
.sp
.LP
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.
.SH EXAMPLES
.LP
\fBExample 1 \fRA Sample \fBpkgmap\fR File
.sp
.in +2
.nf
\fB: 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\fR
.fi
.in -2
.sp
.SH SEE ALSO
.sp
.LP
\fBpkgmk\fR(1), \fBpkgadd\fR(1M), \fBstat\fR(2), \fBpkginfo\fR(4),
\fBprototype\fR(4)
.sp
.LP
\fIApplication Packaging Developer\&'s Guide\fR
.SH NOTES
.sp
.LP
The \fBpkgmap\fR file may contain only one entry per unique pathname.
|