frostfs-node/docs/building-deb-package.md
Stanislav Bogatyrev 7653a1f626 [#409] Fix package building doc typos
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2022-10-28 12:58:32 +03:00

865 B

Building Debian package on host

Prerequisites

For now, we're assuming building for Debian 11 (stable) x86_64.

Go version 18.4 or later should already be installed, i.e. this runs successfully:

  • make all

Installing packaging dependencies

$ sudo apt install debhelper-compat dh-sequence-bash-completion devscripts

Warining: number of package installed is pretty large considering dependecies.

Package building

$ make debpackage

Leftovers cleaning

$ make debclean

or

$ dh clean

Package versioning

By default, package version is based on product version and may also contain git tags and hashes.

Package version could be overwritten by setting PKG_VERSION variable before build, Debian package versioning rules should be respected.

$ PKG_VERSION=0.32.0 make debpackge