| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
include /usr/share/rustc/architecture.mk |
| 5 |
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS |
| 6 |
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE |
| 7 |
export PATH := /usr/share/cargo/bin:$(PATH) |
| 8 |
export CARGO=/usr/share/cargo/bin/cargo |
| 9 |
export CARGO_HOME=$(CURDIR)/debian/cargo_home |
| 10 |
export CARGO_REGISTRY=$(CURDIR)/debian/cargo_registry |
| 11 |
export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) |
| 12 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --buildsystem=cargo |
| 16 |
|
| 17 |
execute_after_dh_auto_clean: |
| 18 |
rm -rf debian/cargo_registry debian/evremap.service |
| 19 |
|
| 20 |
override_dh_install: |
| 21 |
dh_install |
| 22 |
dh_installsystemd |
| 23 |
|
| 24 |
execute_before_dh_auto_configure: |
| 25 |
$(CARGO) prepare-debian debian/cargo_registry --link-from-system |
| 26 |
touch Cargo.lock debian/cargo-checksum.json |
| 27 |
rm -f Cargo.lock |
| 28 |
cp evremap.service debian/evremap.service |