forked from TrueCloudLab/frostfs-node
Dmitriy Zabolotskiy
92e9782c44
Debian package building, including: - users creation if not exist; - dirs creation and ownership/ACLs set; - man/doc/examples installation; - shell completion generation; - locode DB binary download Using: make debpackage Signed-off-by: Dmitriy Zabolotskiy <d.zabolotskiy@yadro.com>
1.1 KiB
1.1 KiB
Building Debian package on host
Prerequisites
For now, we're assuming building for Debian 11 (stable) x86_64 on Debian 11 x86_64.
Go version 18.4 or later should be installed from official Go repos binaries should be buildable, i.e. this should run 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
Building in container
Build dependencies will be added to Go container and package will be built.
$ sudo make docker/debpackage
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 PACK_VERSION variable before build, Debian package versioining rules should be respected.
$ PACK_VERSION=0.32 make debpackge