]> git.proxmox.com Git - proxmox-backup.git/blame - debian/rules
AuthId: derive Ord and PartialOrd
[proxmox-backup.git] / debian / rules
CommitLineData
de779814
DM
1#!/usr/bin/make -f
2# See debhelper(7) (uncomment to enable)
3# output every command that modifies files on the build system.
da0e1e40
FG
4DH_VERBOSE = 1
5
6include /usr/share/dpkg/pkg-info.mk
7include /usr/share/rustc/architecture.mk
de779814 8
bed78ccd 9export BUILD_MODE=release
de779814 10
da0e1e40
FG
11CARGO=/usr/share/cargo/bin/cargo
12
13export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
14export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
15export CARGO_HOME = $(CURDIR)/debian/cargo_home
16
17export DEB_CARGO_CRATE=proxmox-backup_$(DEB_VERSION_UPSTREAM)
18export DEB_CARGO_PACKAGE=proxmox-backup
19
de779814 20%:
36d74cd6 21 dh $@ --with=bash-completion
de779814 22
da0e1e40 23override_dh_auto_configure:
da0e1e40
FG
24 $(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system
25 dh_auto_configure
26
13b77d10
WB
27override_dh_auto_build:
28 dh_auto_build -- \
17ed456c 29 PROXY_USER=backup \
13b77d10
WB
30 LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
31
36d74cd6
DM
32override_dh_missing:
33 dh_missing --fail-missing
34
13b77d10
WB
35override_dh_auto_install:
36 dh_auto_install -- \
17ed456c 37 PROXY_USER=backup \
13b77d10 38 LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
02c7a755 39
b28253d6 40override_dh_installsystemd:
bc00289b 41 dh_installsystemd -pproxmox-backup-server proxmox-backup-daily-update.timer
b28253d6
DM
42 # note: we start/try-reload-restart services manually in postinst
43 dh_installsystemd --no-start --no-restart-after-upgrade
05c03161 44
df3a74d7
DM
45override_dh_fixperms:
46 dh_fixperms --exclude sg-tape-cmd
47
198ebc6c
TL
48override_dh_strip:
49 dh_strip
76425d84
DC
50 for exe in $$(find \
51 debian/proxmox-backup-client/usr \
52 debian/proxmox-backup-server/usr \
629103d6 53 debian/proxmox-backup-file-restore \
76425d84 54 -executable -type f); do \
198ebc6c
TL
55 debian/scripts/elf-strip-unused-dependencies.sh "$$exe" || true; \
56 done
57
ea5289e8
TL
58override_dh_compress:
59 dh_compress -X.pdf