Add packaging metadata to produce a deb package containing the kafka-kit binaries
We rely on debhelper
and the golang-specific toolchain, dh-golang
,
to build topicmappr
, autothrottle
and metricsfetcher
from
kafka-kit
.
This produces as deb
file that only contains the changelog, copyright, and the 3
binaries:
$ dpkg -c kafka-kit_4.2.1-1_amd64.deb
drwxr-xr-x root/root 0 2023-09-26 09:49 ./
drwxr-xr-x root/root 0 2023-09-26 09:49 ./usr/
drwxr-xr-x root/root 0 2023-09-26 09:49 ./usr/bin/
-rwxr-xr-x root/root 12640080 2023-09-26 09:49 ./usr/bin/autothrottle
-rwxr-xr-x root/root 11923248 2023-09-26 09:49 ./usr/bin/metricsfetcher
-rwxr-xr-x root/root 11518744 2023-09-26 09:49 ./usr/bin/topicmappr
drwxr-xr-x root/root 0 2023-09-26 09:49 ./usr/share/
drwxr-xr-x root/root 0 2023-09-26 09:49 ./usr/share/doc/
drwxr-xr-x root/root 0 2023-09-26 09:49 ./usr/share/doc/kafka-kit/
-rw-r--r-- root/root 159 2023-09-26 09:49 ./usr/share/doc/kafka-kit/changelog.Debian.gz
-rw-r--r-- root/root 995 2023-09-26 09:49 ./usr/share/doc/kafka-kit/copyright
The build step only consists in running dpkg-buildpackage -rfakeroot
.