|
Lines 208-227
Link Here
|
| 208 |
.Sh TECHNICAL DETAILS |
208 |
.Sh TECHNICAL DETAILS |
| 209 |
The |
209 |
The |
| 210 |
.Nm |
210 |
.Nm |
| 211 |
utility is fairly simple. It extracts each package's "packing list" |
211 |
utility extracts each package's "packing list" into a special staging |
| 212 |
into a special staging directory, parses it, |
212 |
directory in /tmp (or $PKG_TMPDIR if set), parses it, and then runs |
| 213 |
and then runs through the following sequence to fully extract the contents: |
213 |
through the following sequence to fully extract the contents of the package: |
| 214 |
.Bl -enum |
214 |
.Bl -enum |
| 215 |
.It |
215 |
.It |
| 216 |
Check if the package is already recorded as installed. If so, |
216 |
A check is made to determine if the package is already recorded as installed. |
| 217 |
terminate installation. |
217 |
If it is, installation is terminated. |
|
|
218 |
.It |
| 219 |
A check is made to determine if the package conflicts (from |
| 220 |
.Cm @pkgcfl |
| 221 |
directives, see |
| 222 |
.Xr pkg_create 1 ) |
| 223 |
with an already recorded as installed package. If it is, |
| 224 |
installation is terminated. |
| 218 |
.It |
225 |
.It |
| 219 |
Scan all the package dependencies (from |
226 |
Scan all the package dependencies (from |
| 220 |
.Cm @pkgdep |
227 |
.Cm @pkgdep |
| 221 |
directives, see |
228 |
directives, see |
| 222 |
.Xr pkg_create 1 ) |
229 |
.Xr pkg_create 1 ) |
| 223 |
and make sure each one is met. If not, try and find the missing |
230 |
are read from the packing list. |
| 224 |
dependencies' packages and auto-install them; if they can't be found |
231 |
If any of these required packages is not currently installed, |
|
|
232 |
an attempt is made to find and install it; |
| 233 |
if the missing package cannot be found or installed, |
| 225 |
the installation is terminated. |
234 |
the installation is terminated. |
| 226 |
.It |
235 |
.It |
| 227 |
Search for any |
236 |
Search for any |
|
Lines 384-394
Link Here
|
| 384 |
consists of a directory name. |
393 |
consists of a directory name. |
| 385 |
The current directory may be indicated |
394 |
The current directory may be indicated |
| 386 |
implicitly by an empty directory name, or explicitly by a single |
395 |
implicitly by an empty directory name, or explicitly by a single |
| 387 |
period. |
396 |
period. It is usually set to |
|
|
397 |
.Pa /usr/ports/packages/All . |
| 388 |
.Pp |
398 |
.Pp |
| 389 |
The environment variable |
399 |
The environment variable |
| 390 |
.Ev PKG_DBDIR |
400 |
.Ev PKG_DBDIR |
| 391 |
specifies an alternative location for the installed package database. |
401 |
specifies an alternative location for the installed package database, |
|
|
402 |
default location is |
| 403 |
.Pa /var/db/pkg . |
| 392 |
.Pp |
404 |
.Pp |
| 393 |
The environment variables |
405 |
The environment variables |
| 394 |
.Ev PKG_TMPDIR |
406 |
.Ev PKG_TMPDIR |