mirror of
https://git.proxmox.com/git/proxmox-mail-forward
synced 2025-04-28 18:47:30 +00:00
d/rules: enforce that the debian package version mateches cargo one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6cbec56a2c
commit
6d999bd2a4
7
debian/rules
vendored
7
debian/rules
vendored
@ -2,6 +2,8 @@
|
||||
|
||||
#DH_VERBOSE = 1
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
export BUILD_MODE=release
|
||||
|
||||
CARGO=/usr/share/cargo/bin/cargo
|
||||
@ -13,6 +15,11 @@ export CARGO_HOME = $(CURDIR)/debian/cargo_home
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
@perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = "$(DEB_VERSION_UPSTREAM)"; \
|
||||
die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml
|
||||
dh_auto_configure
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms --exclude proxmox-mail-forward
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user