Use the package version as the version number compiled into the binary.

This commit is contained in:
Oliver Jowett 2014-12-10 12:25:43 +00:00
parent 890d1afbf1
commit c6077b1e6c
4 changed files with 10 additions and 4 deletions

1
debian/changelog vendored
View file

@ -4,6 +4,7 @@ dump1090-mutability (1.08.2302.14+1mu-3) UNRELEASED; urgency=medium
the interval is disabled, it makes more sense that way.
* Be much more cautious about missing config settings so we don't explode
so badly if something is omitted.
* Use the package version as the version number compiled into the binary.
-- Oliver Jowett <oliver@mutability.co.uk> Wed, 10 Dec 2014 02:01:27 +0000

4
debian/rules vendored
View file

@ -14,8 +14,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
VER=$(shell dpkg-parsechangelog -SVersion)
override_dh_auto_build:
dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\"'
dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\" -DMODES_DUMP1090_VERSION=\"$(VER)\"'
override_dh_install:
dh_install