For now it only supports 'list' and 'extract' commands for 'pxar.didx' files. This should be the foundation for a general file-restore interface that is shared with block-level snapshots. This is packaged as a seperate .deb file, since for block level restore it will need to depend on pve-qemu-kvm, which we want to seperate from proxmox-backup-client. [original code for proxmox-file-restore.rs] Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> [code cleanups/clippy, use helpers::list_dir_content/ArchiveEntry, no /block subdir for .fidx files, seperate binary and package] Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Makefile
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/make -f
 | 
						|
# See debhelper(7) (uncomment to enable)
 | 
						|
# output every command that modifies files on the build system.
 | 
						|
DH_VERBOSE = 1
 | 
						|
 | 
						|
include /usr/share/dpkg/pkg-info.mk
 | 
						|
include /usr/share/rustc/architecture.mk
 | 
						|
 | 
						|
export BUILD_MODE=release
 | 
						|
 | 
						|
CARGO=/usr/share/cargo/bin/cargo
 | 
						|
 | 
						|
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
 | 
						|
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
 | 
						|
export CARGO_HOME = $(CURDIR)/debian/cargo_home
 | 
						|
 | 
						|
export DEB_CARGO_CRATE=proxmox-backup_$(DEB_VERSION_UPSTREAM)
 | 
						|
export DEB_CARGO_PACKAGE=proxmox-backup
 | 
						|
 | 
						|
%:
 | 
						|
	dh $@ --with=bash-completion
 | 
						|
 | 
						|
override_dh_auto_configure:
 | 
						|
	$(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system
 | 
						|
	dh_auto_configure
 | 
						|
 | 
						|
override_dh_auto_build:
 | 
						|
	dh_auto_build -- \
 | 
						|
	    PROXY_USER=backup \
 | 
						|
	    LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 | 
						|
 | 
						|
override_dh_missing:
 | 
						|
	dh_missing --fail-missing
 | 
						|
 | 
						|
override_dh_auto_install:
 | 
						|
	dh_auto_install -- \
 | 
						|
	    PROXY_USER=backup \
 | 
						|
	    LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 | 
						|
 | 
						|
override_dh_installsystemd:
 | 
						|
	dh_installsystemd -pproxmox-backup-server  proxmox-backup-daily-update.timer
 | 
						|
	# note: we start/try-reload-restart services manually in postinst
 | 
						|
	dh_installsystemd --no-start --no-restart-after-upgrade
 | 
						|
 | 
						|
override_dh_fixperms:
 | 
						|
	dh_fixperms --exclude sg-tape-cmd
 | 
						|
 | 
						|
# workaround https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933541
 | 
						|
# TODO: remove once available (Debian 11 ?)
 | 
						|
override_dh_dwz:
 | 
						|
	dh_dwz --no-dwz-multifile
 | 
						|
 | 
						|
override_dh_strip:
 | 
						|
	dh_strip
 | 
						|
	for exe in $$(find \
 | 
						|
	    debian/proxmox-backup-client/usr \
 | 
						|
	    debian/proxmox-backup-server/usr \
 | 
						|
	    debian/proxmox-file-restore/usr \
 | 
						|
	    -executable -type f); do \
 | 
						|
	  debian/scripts/elf-strip-unused-dependencies.sh "$$exe" || true; \
 | 
						|
	done
 | 
						|
 | 
						|
override_dh_compress:
 | 
						|
	dh_compress -X.pdf
 |