PACK(5) File Formats Manual PACK(5)

packpack file format

pack is the name given to compressed archives used by pm(1) to install softwares under a directory.

The pack name is used to extract informations about it content, and should follow a strict naming scheme: <name>@<version>.<ext>.

The regex used to match pack names is as follows (case sensitive):

([-_a-z0-9]*)@([-.a-zA-Z0-9]*).t(bz|gz|xz)

name used for packs should remain the original software name, unless it doesn't match the regex above. In this case, the name should be changed to fit the convention used.

Libraries pack names MUST be named "lib<name>". For example, the pack for "zlib" would be named "libz@<version>.<ext>".

A pack is a compressed containing all the files and sub directories meant to be extracted under the $ROOT directory (See pm(1)). Supported compression algorithms are , , . For example:

bin/
bin/pm
share/
share/man/
share/man/man1/
share/man/man1/pm.1
share/man/man5/
share/man/man5/pack.5

In order to create a pack suitable for use with pm(1), you can use external tools to first install your pack into a specific directory, change to this directory and archive its content.

  make
  make DESTDIR=$PWD/tmproot PREFIX= install
  tar -C ./tmproot -f /tmp/pm@1.3.tbz -cj .

You can then check the content of this pack with:

  tar -f /tmp/pm@1.3.tbz -tj

pm(1), tar(1), gzip(1), bzip2(1), xz(1),

Willy Goiffon <dev@z3bra.org>

2016-01-13 POSIX.1-2008