pack_create – create binary packages from installed set of files of a package.

Description

The method creates full set of binary packages from the binaries of the current P.

It gets names of expected binary files with pack_name_file(3) and names of declared subpackages with pack_name(3). For each subpackage method finds directory IMGDIR/subpackage and packs it with pack_create_archive(3). If no directory is found, method interrupts the build with error. The special case is single binary package: method tries to pack D as well, in case of IMGDIR/subpackage absence. Thus without splitting to subpackages there is no need to copy binary files from D anywhere else.

Writing

The method writes to PACKDIR.

Variables

The method uses any-api(7) variables:
PACKDIR
D
IMGDIR

Interfaces

The method calls any-map(7) interfaces:
pack_name_file(3)
pack_name(3)
pack_create_archive(3)

See also

any(1), any-map(7), any-api(7)