2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
6 include /usr
/share
/dpkg
/pkg-info.mk
7 include /usr
/share
/rustc
/architecture.mk
9 export BUILD_MODE
=release
11 CARGO
=/usr
/share
/cargo
/bin
/cargo
13 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
14 export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
15 export CARGO_HOME
= $(CURDIR
)/debian
/cargo_home
17 export DEB_CARGO_CRATE
=proxmox-backup_
$(DEB_VERSION_UPSTREAM
)
18 export DEB_CARGO_PACKAGE
=proxmox-backup
21 dh
$@
--with
=bash-completion
23 override_dh_auto_configure
:
24 $(CARGO
) prepare-debian
$(CURDIR
)/debian
/cargo_registry
--link-from-system
27 override_dh_auto_build
:
30 LIBDIR
=/usr
/lib
/$(DEB_HOST_MULTIARCH
)
33 dh_missing
--fail-missing
35 override_dh_auto_install
:
38 LIBDIR
=/usr
/lib
/$(DEB_HOST_MULTIARCH
)
40 override_dh_installsystemd
:
41 # note: we start/try-reload-restart services manually in postinst
42 dh_installsystemd
--no-start
--no-restart-after-upgrade
44 # workaround https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933541
45 # TODO: remove once available (Debian 11 ?)
47 dh_dwz
--no-dwz-multifile