frostfs-http-gw/docs/building-deb-package.md
Dmitriy Zabolotskiy f88fe1092d [#223] Debian packaging
Debian package includes:
 - user creation;
 - directories and permissions;
 - unit file for systemd

Signed-off-by: Dmitriy Zabolotskiy <d.zabolotskiy@yadro.com>
2022-11-29 17:37:33 +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