mirror of
https://git.proxmox.com/git/proxmox-backup-restore-image
synced 2025-08-16 04:50:43 +00:00

instead of using crates.io - the build still requires network access and depends on configured APT sources in the build environment, so there's room for further improvement. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
25 lines
544 B
Makefile
Executable File
25 lines
544 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
include /usr/share/dpkg/buildflags.mk
|
|
include /usr/share/rustc/architecture.mk
|
|
|
|
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
|
|
PATH := /usr/share/cargo/bin:$(PATH)
|
|
|
|
export PATH
|
|
|
|
export CARGO_HOME=$(CURDIR)/debian/cargo_home
|
|
export DEB_CARGO_CRATE=init-shim-rs
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
cargo prepare-debian $(CARGO_HOME)/registry --link-from-system
|
|
dh_auto_configure
|