diff --git a/Manifest b/Manifest index 89ed164..ccf582b 100644 --- a/Manifest +++ b/Manifest @@ -10,6 +10,7 @@ AUX proxmox-backup-client-3.1.2-compile.patch 21036 SHA256 fdebe3bc304841a88d3a3 AUX proxmox-backup-client-3.1.4-compile.patch 20751 SHA256 c94c3abe4e0feb11d9365854a8ed78fb81542ce9f6c2dbccb0300331e6ca9aa0 SHA512 52a1f4ea7d2ed0386d82ce3b48665d5a70eea6a09b4d377beec517e4f8cd6afe4c5fe40128425a88feb896aae57ddb77de901d90a269f44f9d9f24398e847840 WHIRLPOOL dc6ec1aee31b5534ac51d37a42cab2b982cbfbe25db1c14f676eb8156a9c40e51f2b4ee1d9492141571e2096bd961ee84aad121d0d104a63ad8ccaf9d892164a AUX proxmox-backup-client-3.1.5-compile.patch 20751 SHA256 39aad3b370b42fd7f87e3c34a19a449433d0f5ed5be364edff2a0580a613cc2e SHA512 507f9981789f2af37d2a6d6e671af74a90999ce258fbb1d3c2360b742300b406d60e69b01f667f9b177745d2346a7965de69ae205c60e0d0a8945fce7845eeb3 WHIRLPOOL 020ae2858121460d2f217c6a33ef61a7ac602491bf7ce1947c0e3e586ed8983e5acb3072742a0e95a234c39030d575b513956e96c354b05745d31f654ca91f07 AUX proxmox-backup-client-3.2.2-compile.patch 21157 SHA256 d6f3c620a531249c985b8395580dfffb209d918084bbb482cb3655b662a2d62e SHA512 496a2294f90ea39540628d26428f16daec6e132b35ad7a3fc6e7db79b13a220f53dabfaa0cbc1a3946f15ade6fac00ff05ce7da3c6be19468e99c52b6c71877b WHIRLPOOL 6dd1e63291dea9c1ff887cc922b6b0105e47fd35862b7a991e7806296b2ed484868a777e177821a074a685b7ab23fde9e6dca42dc1ebcb1212b60633af335b76 +AUX proxmox-backup-client-3.2.3-compile.patch 21215 SHA256 da6b91c5ff53464b14666b75bbe44e41dc344f020caf6cbc04ff72e4bb728834 SHA512 681ae541345509d90a3d2f6116f67062ce2162f80607229e9516a4af09eaf3e8aae4f47af0d2bb60abd80b3599e1fbc51d71cedcacce584bd48b541cd109a446 WHIRLPOOL 03bbf71fbe410b5538384e0f8dfdd85c721ee5c67cc6555daebeaf508217f6f301f6071cbefd8d855675ec78cfbc551621f0a9eb5b4a56c4ffa649dbc1afa06a DIST addr2line-0.14.1.crate 31201 SHA256 a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7 SHA512 f665deccae566ec2754cd43fc1d8fc05db11320af54d0561a612faad769234e8b3b8c0235f90f86027a4db9b7ef2915c86398005c949e2c096fac8e53f3f441e WHIRLPOOL 4fa6cae6970c64a0baeebdc63c032bcc2f9601dcf6e0ab843e256ecff183c2993290f14e5106160e95690b40f882574a891da497ec9ca73743cf8c07d285e6a0 DIST addr2line-0.17.0.crate 32260 SHA256 b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b SHA512 ef3bbd7c6d1dfdd0b47e3be1fb4c8b15ed61a769bed7e80dce80461a1ee13ef21c75e62e9a66328504f862341f1e808abec5790ac79784e18655afcc16206b95 WHIRLPOOL 204eb8261c5f670848c75585e624761fe93023a7a450b11203cd98d3d09320a29b6560b6d72e2e642b96a205d4a3de25f0ac14d01c1dfa0491c97d61f2d14bbd DIST addr2line-0.21.0.crate 40807 SHA256 8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb SHA512 afde7660dda30dee240e79df1fb5b92d4572520bf17a134ef3765e2a077af9e13713952d52e27fae420109b40f6e24dbce1056687dbcbead858ffc21cc7dc69b WHIRLPOOL 1b84e354101ccd35b7fe37273488a86c47f7759c4e88531ed61477566f3972d1ed12557827cd2ce16dec4abc28865bdba2ce651ba6bd41a447b4c1232c2ab816 @@ -758,4 +759,5 @@ EBUILD proxmox-backup-client-3.1.2.ebuild 7630 SHA256 98d4cf8b74d0595e7d89838de8 EBUILD proxmox-backup-client-3.1.4.ebuild 7630 SHA256 a9cae0031a36f89d372c04bee8a95f8bf4b30fca093415ce36260598af9b01ff SHA512 384953796b6f1dc946f31f222ce0a512d43e3f905aa5c4417bb6c00da036ef1a8f5082cbc3fd8bf6b0e38c4f557f7673e29a4ed120bd063bb4e17457f2670d16 WHIRLPOOL cb07a83564b18f81c6ea048f305774bc9710c098993edb3dff9e6cd1358a20d1d5365f0b914ceb15bec92db4a8b47fb90bd9ef03219cc5c708db7e05bb7475bf EBUILD proxmox-backup-client-3.1.5.ebuild 7735 SHA256 5d881fa959cdb2ba18f74f5e3b274dab1caa9cf1bb7d8d20be3fcf9965d314ec SHA512 32f9ba5419f1677e1faeaf2560ddc3b799f2f908181f9caa585594dc6c167366c9f660cc1df6f1802fd5bc27bad18ac424d9b07e57879e9fb6db94259acb0973 WHIRLPOOL cb799591c98b5675b33131dd925fc2ddc3843424a6cd8f27d6d4b04efe78f37b433708a6b8df7afc8d6f9cc465c06de46a64db089ac1c624393dcd5909cc35ca EBUILD proxmox-backup-client-3.2.2.ebuild 8193 SHA256 5ec8bc10627fb10ed82888037235f3ec8f11fbd163f7fc108704e94eec5479e8 SHA512 4bc71d9c27ef80a903b7b561b55ec20a1f8c3d877a94e7482158b131d540c15fe8337787d1bad53a93e77da64a03be6ea27ed3a7024c1136b13449bc1581a067 WHIRLPOOL db66e7adf8df5d94c15dac86528c93500af3f5c38cce3eeeb0005bd606a99c3a3337ee0db3a129d3b59e189b98cd1867ece6b68f61e3424d4c1fcc5c7cfcc5d9 +EBUILD proxmox-backup-client-3.2.3.ebuild 8193 SHA256 4d94ee99ba8dc5dd8f28a0317ff17ca7a9e57a28ed704b786a16cfcaab4c1732 SHA512 4ca0a3bb66e26884dd4c18c876849608eee1b19594bc60249b391e12229e9e1c5e8ec29bfabfb19ef46d55fb91671186f5808c43d71ba490f350514f73b1d808 WHIRLPOOL a5cd92c2fc2b2965baf5d96ac0ac3e138380c1cb741132b66f85cf9d8c0ef23c7e9b2613893527e5573e9286eea85fab1d6d38a7af1359188e03f8406ca2525a MISC README.md 42 SHA256 5a859a683a425ec9dda124ae94c30c9e19f95fc086f2f846441e34506173989d SHA512 0074edaf3905e7093fd03286609c4830d11a5508ed69185d1eb8f57bfb0f46698ae85e7db80bff7b81af6b30a19e201e83344f6305686879d6524c6e20fa4b81 WHIRLPOOL d9eb53e956bce4109deb4c1de2816fe4b0fb3706678e69194bf6836c7a97b75434fa66a9a3e6069fedda428be386d2844963c563b85a7c2b77d6c15872157b84 diff --git a/files/proxmox-backup-client-3.2.3-compile.patch b/files/proxmox-backup-client-3.2.3-compile.patch new file mode 100644 index 0000000..37bd059 --- /dev/null +++ b/files/proxmox-backup-client-3.2.3-compile.patch @@ -0,0 +1,513 @@ +diff --git a/.cargo/config b/.cargo/config +index 3b5b6e48..b028b13e 100644 +--- a/.cargo/config ++++ b/.cargo/config +@@ -1,5 +1,17 @@ +-[source] +-[source.debian-packages] +-directory = "/usr/share/cargo/registry" + [source.crates-io] +-replace-with = "debian-packages" ++replace-with = "vendored-sources" ++ ++[source."git://git.proxmox.com/git/pathpatterns.git"] ++git = "git://git.proxmox.com/git/pathpatterns.git" ++replace-with = "vendored-sources" ++ ++[source."git://git.proxmox.com/git/proxmox-fuse.git"] ++git = "git://git.proxmox.com/git/proxmox-fuse.git" ++replace-with = "vendored-sources" ++ ++[source."git://git.proxmox.com/git/pxar.git"] ++git = "git://git.proxmox.com/git/pxar.git" ++replace-with = "vendored-sources" ++ ++[source.vendored-sources] ++directory = "../cargo_home/gentoo" +diff --git a/Cargo.toml b/Cargo.toml +index 4119b3ca..8255604c 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -247,37 +247,37 @@ proxmox-rrd.workspace = true + # NOTE: You must run `cargo update` after changing this for it to take effect! + [patch.crates-io] + +-#proxmox-apt = { path = "../proxmox/proxmox-apt" } +-#proxmox-async = { path = "../proxmox/proxmox-async" } +-#proxmox-auth-api = { path = "../proxmox/proxmox-auth-api" } +-#proxmox-borrow = { path = "../proxmox/proxmox-borrow" } +-#proxmox-compression = { path = "../proxmox/proxmox-compression" } +-#proxmox-fuse = { path = "../proxmox-fuse" } +-#proxmox-http = { path = "../proxmox/proxmox-http" } +-#proxmox-human-byte = { path = "../proxmox/proxmox-human-byte" } +-#proxmox-io = { path = "../proxmox/proxmox-io" } +-#proxmox-lang = { path = "../proxmox/proxmox-lang" } +-#proxmox-ldap = { path = "../proxmox/proxmox-ldap" } +-#proxmox-metrics = { path = "../proxmox/proxmox-metrics" } +-#proxmox-notify = { path = "../proxmox/proxmox-notify" } +-#proxmox-openid = { path = "../proxmox/proxmox-openid" } +-#proxmox-rest-server = { path = "../proxmox/proxmox-rest-server" } +-#proxmox-router = { path = "../proxmox/proxmox-router" } +-#proxmox-rrd = { path = "../proxmox/proxmox-rrd" } +-#proxmox-schema = { path = "../proxmox/proxmox-schema" } +-#proxmox-section-config = { path = "../proxmox/proxmox-section-config" } +-#proxmox-serde = { path = "../proxmox/proxmox-serde" } +-#proxmox-shared-memory = { path = "../proxmox/proxmox-shared-memory" } +-#proxmox-sortable-macro = { path = "../proxmox/proxmox-sortable-macro" } +-#proxmox-subscription = { path = "../proxmox/proxmox-subscription" } +-#proxmox-sys = { path = "../proxmox/proxmox-sys" } +-#proxmox-tfa = { path = "../proxmox/proxmox-tfa" } +-#proxmox-time = { path = "../proxmox/proxmox-time" } +-#proxmox-uuid = { path = "../proxmox/proxmox-uuid" } ++proxmox-apt = { path = "../proxmox/proxmox-apt" } ++proxmox-async = { path = "../proxmox/proxmox-async" } ++proxmox-auth-api = { path = "../proxmox/proxmox-auth-api" } ++proxmox-borrow = { path = "../proxmox/proxmox-borrow" } ++proxmox-compression = { path = "../proxmox/proxmox-compression" } ++proxmox-fuse = { path = "../proxmox-fuse" } ++proxmox-http = { path = "../proxmox/proxmox-http" } ++proxmox-human-byte = { path = "../proxmox/proxmox-human-byte" } ++proxmox-io = { path = "../proxmox/proxmox-io" } ++proxmox-lang = { path = "../proxmox/proxmox-lang" } ++proxmox-ldap = { path = "../proxmox/proxmox-ldap" } ++proxmox-metrics = { path = "../proxmox/proxmox-metrics" } ++proxmox-notify = { path = "../proxmox/proxmox-notify" } ++proxmox-openid = { path = "../proxmox/proxmox-openid" } ++proxmox-rest-server = { path = "../proxmox/proxmox-rest-server" } ++proxmox-router = { path = "../proxmox/proxmox-router" } ++proxmox-rrd = { path = "../proxmox/proxmox-rrd" } ++proxmox-schema = { path = "../proxmox/proxmox-schema" } ++proxmox-section-config = { path = "../proxmox/proxmox-section-config" } ++proxmox-serde = { path = "../proxmox/proxmox-serde" } ++proxmox-shared-memory = { path = "../proxmox/proxmox-shared-memory" } ++proxmox-sortable-macro = { path = "../proxmox/proxmox-sortable-macro" } ++proxmox-subscription = { path = "../proxmox/proxmox-subscription" } ++proxmox-sys = { path = "../proxmox/proxmox-sys" } ++proxmox-tfa = { path = "../proxmox/proxmox-tfa" } ++proxmox-time = { path = "../proxmox/proxmox-time" } ++proxmox-uuid = { path = "../proxmox/proxmox-uuid" } + +-#proxmox-acme = { path = "../proxmox/proxmox-acme" } +-#pathpatterns = {path = "../pathpatterns" } +-#pxar = { path = "../pxar" } ++proxmox-acme = { path = "../proxmox/proxmox-acme" } ++pathpatterns = {path = "../pathpatterns" } ++pxar = { path = "../pxar" } + + [features] + default = [] +diff --git a/Makefile b/Makefile +index 03e93876..8c97ff6c 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,32 +4,21 @@ include defines.mk + PACKAGE := proxmox-backup + ARCH := $(DEB_BUILD_ARCH) + +-SUBDIRS := etc www docs templates ++SUBDIRS := docs + + # Binaries usable by users + USR_BIN := \ + proxmox-backup-client \ +- proxmox-file-restore \ +- pxar \ +- proxmox-tape \ +- pmtx \ +- pmt ++ pxar + + # Binaries usable by admins +-USR_SBIN := \ +- proxmox-backup-manager \ +- proxmox-backup-debug ++USR_SBIN := + + # Binaries for services: +-SERVICE_BIN := \ +- proxmox-backup-api \ +- proxmox-backup-banner \ +- proxmox-backup-proxy \ +- proxmox-daily-update ++SERVICE_BIN := + + # Single file restore daemon +-RESTORE_BIN := \ +- proxmox-restore-daemon ++RESTORE_BIN := + + SUBCRATES != cargo metadata --no-deps --format-version=1 \ + | jq -r .workspace_members'[]' \ +@@ -61,8 +50,7 @@ RESTORE_DEB=proxmox-backup-file-restore_$(DEB_VERSION)_$(ARCH).deb + RESTORE_DBG_DEB=proxmox-backup-file-restore-dbgsym_$(DEB_VERSION)_$(ARCH).deb + DOC_DEB=$(PACKAGE)-docs_$(DEB_VERSION)_all.deb + +-DEBS=$(SERVER_DEB) $(SERVER_DBG_DEB) $(CLIENT_DEB) $(CLIENT_DBG_DEB) \ +- $(RESTORE_DEB) $(RESTORE_DBG_DEB) ++DEBS=${CLIENT_DEB} ${CLIENT_DBG_DEB} + + DSC = rust-$(PACKAGE)_$(DEB_VERSION).dsc + +@@ -159,30 +147,11 @@ cargo-build: + $(COMPILED_BINS) $(COMPILEDIR)/dump-catalog-shell-cli $(COMPILEDIR)/docgen: .do-cargo-build + .do-cargo-build: + $(CARGO) build $(CARGO_BUILD_ARGS) \ +- --package proxmox-backup-banner \ +- --bin proxmox-backup-banner \ + --package proxmox-backup-client \ + --bin proxmox-backup-client \ + --bin dump-catalog-shell-cli \ +- --bin proxmox-backup-debug \ +- --package proxmox-file-restore \ +- --bin proxmox-file-restore \ + --package pxar-bin \ +- --bin pxar \ +- --package pbs-tape \ +- --bin pmt \ +- --bin pmtx \ +- --package proxmox-restore-daemon \ +- --bin proxmox-restore-daemon \ +- --package proxmox-backup \ +- --bin docgen \ +- --bin proxmox-backup-api \ +- --bin proxmox-backup-manager \ +- --bin proxmox-backup-proxy \ +- --bin proxmox-daily-update \ +- --bin proxmox-file-restore \ +- --bin proxmox-tape \ +- --bin sg-tape-cmd ++ --bin pxar + touch "$@" + + +@@ -191,25 +160,26 @@ lint: + cargo clippy -- -A clippy::all -D clippy::correctness + + install: $(COMPILED_BINS) ++ @echo "$(DESTDIR)" + install -dm755 $(DESTDIR)$(BINDIR) + install -dm755 $(DESTDIR)$(ZSH_COMPL_DEST) + $(foreach i,$(USR_BIN), \ +- install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)$(BINDIR)/ ; \ ++ install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)/$(BINDIR)/ ; \ + install -m644 zsh-completions/_$(i) $(DESTDIR)$(ZSH_COMPL_DEST)/ ;) + install -dm755 $(DESTDIR)$(SBINDIR) + $(foreach i,$(USR_SBIN), \ + install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)$(SBINDIR)/ ; \ + install -m644 zsh-completions/_$(i) $(DESTDIR)$(ZSH_COMPL_DEST)/ ;) +- install -m755 $(COMPILEDIR)/pbs2to3 $(DESTDIR)$(SBINDIR)/ ++ #install -m755 $(COMPILEDIR)/pbs2to3 $(DESTDIR)$(SBINDIR)/ + install -dm755 $(DESTDIR)$(LIBEXECDIR)/proxmox-backup + install -dm755 $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/file-restore + $(foreach i,$(RESTORE_BIN), \ + install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/file-restore/ ;) + # install sg-tape-cmd as setuid binary +- install -m4755 -o root -g root $(COMPILEDIR)/sg-tape-cmd $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/sg-tape-cmd ++ #install -m4755 -o root -g root $(COMPILEDIR)/sg-tape-cmd $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/sg-tape-cmd + $(foreach i,$(SERVICE_BIN), \ + install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/ ;) +- $(MAKE) -C www install ++ #$(MAKE) -C www install + $(MAKE) -C docs install + $(MAKE) -C templates install + +diff --git a/debian/control b/debian/control +index a7f8f327..4fefdf57 100644 +--- a/debian/control ++++ b/debian/control +@@ -14,132 +14,6 @@ Build-Depends: bash-completion, + latexmk , + libacl1-dev, + libfuse3-dev, +- librust-anyhow-1+default-dev, +- librust-apt-pkg-native-0.3+default-dev (>= 0.3.2-~~), +- librust-async-trait-0.1+default-dev (>= 0.1.56-~~), +- librust-base64-0.13+default-dev, +- librust-bitflags-1+default-dev (>= 1.2.1-~~), +- librust-bytes-1+default-dev, +- librust-cidr-0.2+default-dev (>= 0.2.1-~~), +- librust-const-format-0.2+default-dev, +- librust-crc32fast-1+default-dev, +- librust-crossbeam-channel-0.5+default-dev, +- librust-endian-trait-0.6+arrays-dev, +- librust-endian-trait-0.6+default-dev, +- librust-env-logger-0.10+default-dev, +- librust-flate2-1+default-dev, +- librust-foreign-types-0.3+default-dev, +- librust-futures-0.3+default-dev, +- librust-h2-0.3+default-dev, +- librust-h2-0.3+stream-dev, +- librust-handlebars-3+default-dev, +- librust-hex-0.4+default-dev (>= 0.4.3-~~), +- librust-hex-0.4+serde-dev (>= 0.4.3-~~), +- librust-http-0.2+default-dev, +- librust-hyper-0.14+default-dev, +- librust-hyper-0.14+full-dev, +- librust-lazy-static-1+default-dev (>= 1.4-~~), +- librust-libc-0.2+default-dev, +- librust-log-0.4+default-dev (>= 0.4.17-~~), +- librust-nix-0.26+default-dev (>= 0.26.1-~~), +- librust-nom-7+default-dev, +- librust-num-traits-0.2+default-dev, +- librust-once-cell-1+default-dev (>= 1.3.1-~~), +- librust-openssl-0.10+default-dev (>= 0.10.40-~~), +- librust-pathpatterns-0.3+default-dev, +- librust-percent-encoding-2+default-dev (>= 2.1-~~), +- librust-pin-project-lite-0.2+default-dev, +- librust-proxmox-acme-0.5+default-dev, +- librust-proxmox-apt-0.10+default-dev (>= 0.10.5-~~), +- librust-proxmox-async-0.4+default-dev, +- librust-proxmox-auth-api-0.4+api-dev, +- librust-proxmox-auth-api-0.4+api-types-dev, +- librust-proxmox-auth-api-0.4+default-dev, +- librust-proxmox-auth-api-0.4+pam-authenticator-dev, +- librust-proxmox-borrow-1+default-dev, +- librust-proxmox-compression-0.2+default-dev, +- librust-proxmox-fuse-0.1+default-dev (>= 0.1.3-~~), +- librust-proxmox-http-0.9+client-dev, +- librust-proxmox-http-0.9+client-trait-dev, +- librust-proxmox-http-0.9+default-dev, +- librust-proxmox-http-0.9+http-helpers-dev, +- librust-proxmox-http-0.9+proxmox-async-dev, +- librust-proxmox-http-0.9+rate-limited-stream-dev, +- librust-proxmox-http-0.9+rate-limiter-dev, +- librust-proxmox-http-0.9+websocket-dev, +- librust-proxmox-human-byte-0.1+default-dev, +- librust-proxmox-io-1+default-dev (>= 1.0.1-~~), +- librust-proxmox-io-1+tokio-dev (>= 1.0.1-~~), +- librust-proxmox-lang-1+default-dev (>= 1.1-~~), +- librust-proxmox-ldap-0.2+default-dev (>= 0.2.1-~~), +- librust-proxmox-metrics-0.3+default-dev (>= 0.3.1-~~), +- librust-proxmox-notify-0.4+default-dev, +- librust-proxmox-notify-0.4+pbs-context-dev, +- librust-proxmox-openid-0.10+default-dev, +- librust-proxmox-rest-server-0.5+default-dev (>= 0.5.1-~~), +- librust-proxmox-rest-server-0.5+rate-limited-stream-dev (>= 0.5.1-~~), +- librust-proxmox-rest-server-0.5+templates-dev (>= 0.5.1-~~), +- librust-proxmox-router-2+cli-dev, +- librust-proxmox-router-2+default-dev, +- librust-proxmox-router-2+server-dev, +- librust-proxmox-rrd-0.1+default-dev, +- librust-proxmox-schema-3+api-macro-dev, +- librust-proxmox-schema-3+default-dev, +- librust-proxmox-section-config-2+default-dev, +- librust-proxmox-serde-0.1+default-dev (>= 0.1.1-~~), +- librust-proxmox-serde-0.1+serde-json-dev (>= 0.1.1-~~), +- librust-proxmox-shared-memory-0.3+default-dev, +- librust-proxmox-sortable-macro-0.1+default-dev (>= 0.1.2-~~), +- librust-proxmox-subscription-0.4+api-types-dev (>= 0.4.2-~~), +- librust-proxmox-subscription-0.4+default-dev (>= 0.4.2-~~), +- librust-proxmox-sys-0.5+acl-dev (>= 0.5.4-~~), +- librust-proxmox-sys-0.5+crypt-dev (>= 0.5.4-~~), +- librust-proxmox-sys-0.5+default-dev (>= 0.5.4-~~), +- librust-proxmox-sys-0.5+logrotate-dev (>= 0.5.4-~~), +- librust-proxmox-sys-0.5+timer-dev (>= 0.5.4-~~), +- librust-proxmox-tfa-4+api-dev (>= 4.0.4-~~), +- librust-proxmox-tfa-4+api-types-dev (>= 4.0.4-~~), +- librust-proxmox-tfa-4+default-dev (>= 4.0.4-~~), +- librust-proxmox-time-1+default-dev (>= 1.1.6-~~), +- librust-proxmox-uuid-1+default-dev, +- librust-proxmox-uuid-1+serde-dev, +- librust-pxar-0.10+default-dev (>= 0.10.2-~~), +- librust-regex-1+default-dev (>= 1.5.5-~~), +- librust-rustyline-9+default-dev, +- librust-serde-1+default-dev, +- librust-serde-1+derive-dev, +- librust-serde-json-1+default-dev, +- librust-serde-plain-1+default-dev, +- librust-siphasher-0.3+default-dev, +- librust-syslog-6+default-dev, +- librust-tar-0.4+default-dev, +- librust-termcolor-1+default-dev (>= 1.1.2-~~), +- librust-thiserror-1+default-dev, +- librust-tokio-1+default-dev (>= 1.6-~~), +- librust-tokio-1+fs-dev (>= 1.6-~~), +- librust-tokio-1+io-std-dev (>= 1.6-~~), +- librust-tokio-1+io-util-dev (>= 1.6-~~), +- librust-tokio-1+macros-dev (>= 1.6-~~), +- librust-tokio-1+net-dev (>= 1.6-~~), +- librust-tokio-1+parking-lot-dev (>= 1.6-~~), +- librust-tokio-1+process-dev (>= 1.6-~~), +- librust-tokio-1+rt-dev (>= 1.6-~~), +- librust-tokio-1+rt-multi-thread-dev (>= 1.6-~~), +- librust-tokio-1+signal-dev (>= 1.6-~~), +- librust-tokio-1+sync-dev (>= 1.6-~~), +- librust-tokio-1+time-dev (>= 1.6-~~), +- librust-tokio-openssl-0.6+default-dev (>= 0.6.1-~~), +- librust-tokio-stream-0.1+default-dev, +- librust-tokio-util-0.7+codec-dev, +- librust-tokio-util-0.7+default-dev, +- librust-tokio-util-0.7+io-dev, +- librust-tower-service-0.3+default-dev, +- librust-udev-0.4+default-dev, +- librust-url-2+default-dev (>= 2.1-~~), +- librust-walkdir-2+default-dev, +- librust-xdg-2+default-dev (>= 2.2-~~), +- librust-zstd-0.12+bindgen-dev, +- librust-zstd-0.12+default-dev, + libsgutils2-dev, + libstd-rust-dev, + libsystemd-dev (>= 246-~~), +@@ -163,56 +37,9 @@ Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary + Homepage: https://www.proxmox.com + Rules-Requires-Root: binary-targets + +-Package: proxmox-backup-server +-Architecture: any +-Depends: fonts-font-awesome, +- gdisk, +- libjs-extjs (>= 7~), +- libjs-qrcodejs (>= 1.20201119), +- libproxmox-acme-plugins, +- libsgutils2-1.46-2, +- libzstd1 (>= 1.3.8), +- lvm2, +- openssh-server, +- pbs-i18n, +- postfix | mail-transport-agent, +- proxmox-backup-docs, +- proxmox-mini-journalreader, +- proxmox-widget-toolkit (>= 3.5.2), +- pve-xtermjs (>= 4.7.0-1), +- sg3-utils, +- smartmontools, +- ${misc:Depends}, +- ${shlibs:Depends}, +-Recommends: ifupdown2, +- proxmox-mail-forward, +- proxmox-offline-mirror-helper, +- zfsutils-linux, +-Description: Proxmox Backup Server daemon with tools and GUI +- This package contains the Proxmox Backup Server daemons and related +- tools. This includes a web-based graphical user interface. +- + Package: proxmox-backup-client + Architecture: any + Depends: qrencode, ${misc:Depends}, ${shlibs:Depends}, + Description: Proxmox Backup Client tools + This package contains the Proxmox Backup client, which provides a + simple command line tool to create and restore backups. +- +-Package: proxmox-backup-docs +-Build-Profiles: +-Section: doc +-Depends: fonts-font-awesome, libjs-extjs, libjs-mathjax, ${misc:Depends}, +-Architecture: all +-Description: Proxmox Backup Documentation +- This package contains the Proxmox Backup Documentation files. +- +-Package: proxmox-backup-file-restore +-Architecture: any +-Depends: ${misc:Depends}, ${shlibs:Depends}, +-Recommends: proxmox-backup-restore-image, pve-qemu-kvm (>= 5.0.0-9), +-Breaks: proxmox-backup-restore-image (<< 0.3.1), +-Description: Proxmox Backup single file restore tools for pxar and block device backups +- This package contains the Proxmox Backup single file restore client for +- restoring individual files and folders from both host/container and VM/block +- device backups. It includes a block device restore driver using QEMU. +diff --git a/debian/rules b/debian/rules +index 54a3c22b..95b1b1bf 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -4,12 +4,9 @@ + 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 +@@ -27,7 +24,6 @@ endif + override_dh_auto_configure: + @perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = "$(DEB_VERSION_UPSTREAM)"; \ + die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml +- $(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system + dh_auto_configure + + override_dh_auto_build: +@@ -41,12 +37,13 @@ override_dh_missing: + override_dh_auto_install: + dh_auto_install -- \ + PROXY_USER=backup \ +- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) ++ LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \ ++ DESTDIR=$(PWD)/debian/tmp + +-override_dh_installsystemd: +- dh_installsystemd -pproxmox-backup-server proxmox-backup-daily-update.timer ++#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 --no-stop-on-upgrade ++# dh_installsystemd --no-start --no-restart-after-upgrade --no-stop-on-upgrade + + override_dh_fixperms: + dh_fixperms --exclude sg-tape-cmd +diff --git a/docs/Makefile b/docs/Makefile +index d6c61c86..9b7445a5 100644 +--- a/docs/Makefile ++++ b/docs/Makefile +@@ -1,53 +1,17 @@ + include ../defines.mk + + GENERATED_SYNOPSIS := \ +- proxmox-tape/synopsis.rst \ + proxmox-backup-client/synopsis.rst \ + proxmox-backup-client/catalog-shell-synopsis.rst \ + proxmox-backup-manager/synopsis.rst \ +- proxmox-backup-debug/synopsis.rst \ +- proxmox-file-restore/synopsis.rst \ +- pxar/synopsis.rst \ +- pmtx/synopsis.rst \ +- pmt/synopsis.rst \ +- config/media-pool/config.rst \ +- config/notifications/config.rst \ +- config/notifications-priv/config.rst \ +- config/tape/config.rst \ +- config/tape-job/config.rst \ +- config/user/config.rst \ +- config/remote/config.rst \ +- config/sync/config.rst \ +- config/verification/config.rst \ +- config/acl/roles.rst \ +- config/datastore/config.rst \ +- config/domains/config.rst ++ pxar/synopsis.rst + + MAN1_PAGES := \ + pxar.1 \ +- pmtx.1 \ +- pmt.1 \ +- proxmox-tape.1 \ +- proxmox-backup-proxy.1 \ +- proxmox-backup-client.1 \ +- proxmox-backup-manager.1 \ +- proxmox-file-restore.1 \ +- proxmox-backup-debug.1 \ +- pbs2to3.1 \ +- +-MAN5_PAGES := \ +- media-pool.cfg.5 \ +- tape.cfg.5 \ +- tape-job.cfg.5 \ +- acl.cfg.5 \ +- user.cfg.5 \ +- remote.cfg.5 \ +- sync.cfg.5 \ +- verification.cfg.5 \ +- datastore.cfg.5 \ +- domains.cfg.5 \ +- notifications.cfg.5 \ +- notifications-priv.cfg.5 \ ++ proxmox-backup-client.1 ++ ++ ++MAN5_PAGES := + + PRUNE_SIMULATOR_FILES := \ + prune-simulator/index.html \ diff --git a/proxmox-backup-client-3.2.3.ebuild b/proxmox-backup-client-3.2.3.ebuild new file mode 100644 index 0000000..d7257f9 --- /dev/null +++ b/proxmox-backup-client-3.2.3.ebuild @@ -0,0 +1,384 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Auto-Generated by cargo-ebuild 0.5.4-r1 + +EAPI=8 + +CRATES=" + addr2line@0.21.0 + adler@1.0.2 + ahash@0.8.11 + aho-corasick@1.1.3 + allocator-api2@0.2.18 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anyhow@1.0.81 + apt-pkg-native@0.3.2 + async-trait@0.1.79 + autocfg@1.2.0 + backtrace@0.3.71 + base32@0.4.0 + base64@0.13.1 + base64@0.21.7 + base64@0.22.0 + bindgen@0.68.1 + bitflags@1.3.2 + bitflags@2.5.0 + block-buffer@0.10.4 + bumpalo@3.15.4 + bytes@1.6.0 + cc@1.0.90 + cexpr@0.6.0 + cfg-if@1.0.0 + chrono@0.4.35 + chumsky@0.9.3 + cidr@0.2.2 + clang-sys@1.7.0 + clipboard-win@4.5.0 + const_format@0.2.32 + const_format_proc_macros@0.2.32 + core-foundation@0.9.4 + core-foundation-sys@0.8.6 + cpufeatures@0.2.12 + crc32fast@1.4.0 + crossbeam-channel@0.5.12 + crossbeam-utils@0.8.19 + crypto-common@0.1.6 + darling@0.13.4 + darling_core@0.13.4 + darling_macro@0.13.4 + deranged@0.3.11 + digest@0.10.7 + dirs-next@2.0.0 + dirs-sys-next@0.1.2 + either@1.10.0 + email-encoding@0.3.0 + email_address@0.2.4 + endian-type@0.1.2 + endian_trait@0.6.0 + endian_trait_derive@0.6.0 + env_logger@0.10.2 + equivalent@1.0.1 + errno@0.3.8 + error-chain@0.12.4 + error-code@2.3.1 + fastrand@2.0.2 + fd-lock@3.0.13 + filetime@0.2.23 + flate2@1.0.28 + fmt2io@0.2.0 + fnv@1.0.7 + foreign-types@0.3.2 + foreign-types-shared@0.1.1 + form_urlencoded@1.2.1 + futures@0.3.30 + futures-channel@0.3.30 + futures-core@0.3.30 + futures-executor@0.3.30 + futures-io@0.3.30 + futures-macro@0.3.30 + futures-sink@0.3.30 + futures-task@0.3.30 + futures-util@0.3.30 + generic-array@0.14.7 + getrandom@0.2.12 + gimli@0.28.1 + glob@0.3.1 + h2@0.3.25 + half@1.8.3 + handlebars@3.5.5 + hashbrown@0.14.3 + hermit-abi@0.3.9 + hex@0.4.3 + home@0.5.9 + hostname@0.3.1 + hostname@0.4.0 + http@0.2.12 + http-body@0.4.6 + httparse@1.8.0 + httpdate@1.0.3 + humantime@2.1.0 + hyper@0.14.28 + iana-time-zone@0.1.60 + iana-time-zone-haiku@0.1.2 + ident_case@1.0.1 + idna@0.5.0 + indexmap@2.2.6 + is-terminal@0.4.12 + itertools@0.10.5 + itoa@1.0.11 + jobserver@0.1.28 + js-sys@0.3.69 + lazy_static@1.4.0 + lazycell@1.3.0 + lber@0.4.2 + ldap3@0.11.3 + lettre@0.11.7 + libc@0.2.153 + libloading@0.8.3 + libredox@0.0.1 + libudev-sys@0.1.4 + linux-raw-sys@0.4.13 + lock_api@0.4.11 + log@0.4.21 + match_cfg@0.1.0 + memchr@2.7.1 + memoffset@0.6.5 + memoffset@0.7.1 + mime@0.3.17 + minimal-lexical@0.2.1 + miniz_oxide@0.7.2 + mio@0.8.11 + native-tls@0.2.11 + nibble_vec@0.1.0 + nix@0.23.2 + nix@0.26.4 + nom@7.1.3 + num-bigint@0.4.4 + num-conv@0.1.0 + num-integer@0.1.46 + num-traits@0.2.18 + num_cpus@1.16.0 + num_threads@0.1.7 + oauth2@4.4.2 + object@0.32.2 + once_cell@1.19.0 + openidconnect@2.5.1 + openssl@0.10.64 + openssl-macros@0.1.1 + openssl-probe@0.1.5 + openssl-sys@0.9.101 + ordered-float@2.10.1 + pam-sys@0.5.6 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + peeking_take_while@0.1.2 + percent-encoding@2.3.1 + pest@2.7.8 + pest_derive@2.7.8 + pest_generator@2.7.8 + pest_meta@2.7.8 + pin-project-lite@0.2.13 + pin-utils@0.1.0 + pkg-config@0.3.30 + powerfmt@0.2.0 + ppv-lite86@0.2.17 + proc-macro2@0.2.3 + proc-macro2@1.0.79 + psm@0.1.21 + quick-error@2.0.1 + quote@0.4.2 + quote@1.0.35 + quoted_printable@0.5.0 + radix_trie@0.2.1 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + redox_syscall@0.4.1 + redox_users@0.4.4 + regex@1.10.4 + regex-automata@0.4.6 + regex-syntax@0.8.2 + rfc822-like@0.2.1 + ring@0.16.20 + ring@0.17.8 + rustc-demangle@0.1.23 + rustc-hash@1.1.0 + rustix@0.38.32 + rustls@0.22.4 + rustls-native-certs@0.7.0 + rustls-pemfile@2.1.2 + rustls-pki-types@1.5.0 + rustls-webpki@0.102.3 + rustyline@9.1.2 + ryu@1.0.17 + same-file@1.0.6 + schannel@0.1.23 + scopeguard@1.2.0 + security-framework@2.9.2 + security-framework-sys@2.9.1 + serde@1.0.197 + serde-value@0.7.0 + serde_cbor@0.11.2 + serde_derive@1.0.197 + serde_json@1.0.115 + serde_path_to_error@0.1.16 + serde_plain@1.0.2 + serde_with@1.14.0 + serde_with_macros@1.5.2 + sha2@0.10.8 + shlex@1.3.0 + signal-hook-registry@1.4.1 + siphasher@0.3.11 + slab@0.4.9 + smallvec@1.13.2 + smawk@0.3.2 + socket2@0.5.6 + spin@0.5.2 + spin@0.9.8 + stacker@0.1.15 + str-buf@1.0.6 + strsim@0.10.0 + subtle@2.5.0 + syn@0.12.15 + syn@1.0.109 + syn@2.0.55 + syslog@6.1.0 + tar@0.4.40 + tempfile@3.10.1 + termcolor@1.4.1 + textwrap@0.16.1 + thiserror@1.0.58 + thiserror-impl@1.0.58 + time@0.3.34 + time-core@0.1.2 + time-macros@0.2.17 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + tokio@1.36.0 + tokio-macros@2.2.0 + tokio-native-tls@0.3.1 + tokio-openssl@0.6.4 + tokio-stream@0.1.15 + tokio-util@0.7.10 + tower-service@0.3.2 + tracing@0.1.40 + tracing-attributes@0.1.27 + tracing-core@0.1.32 + try-lock@0.2.5 + typenum@1.17.0 + ucd-trie@0.1.6 + udev@0.4.0 + unicode-bidi@0.3.15 + unicode-ident@1.0.12 + unicode-linebreak@0.1.5 + unicode-normalization@0.1.23 + unicode-segmentation@1.11.0 + unicode-width@0.1.11 + unicode-xid@0.1.0 + unicode-xid@0.2.4 + untrusted@0.7.1 + untrusted@0.9.0 + ureq@2.9.6 + url@2.5.0 + utf8parse@0.2.1 + vcpkg@0.2.15 + version_check@0.9.4 + walkdir@2.5.0 + want@0.3.1 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen@0.2.92 + wasm-bindgen-backend@0.2.92 + wasm-bindgen-macro@0.2.92 + wasm-bindgen-macro-support@0.2.92 + wasm-bindgen-shared@0.2.92 + web-sys@0.3.69 + webauthn-rs@0.3.2 + webpki-roots@0.26.1 + which@4.4.2 + winapi@0.3.9 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.6 + winapi-x86_64-pc-windows-gnu@0.4.0 + windows@0.52.0 + windows-core@0.52.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.48.5 + windows-targets@0.52.4 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.4 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.4 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.4 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.4 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.4 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.4 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.4 + xattr@1.3.1 + xdg@2.5.2 + zerocopy@0.7.32 + zerocopy-derive@0.7.32 + zeroize@1.8.0 + zstd@0.12.4 + zstd-safe@6.0.6 + zstd-sys@2.0.9+zstd.1.5.5 +" + +inherit cargo +inherit git-r3 + +DESCRIPTION="Proxmox Backup Client" +HOMEPAGE="https://git.proxmox.com/?p=proxmox-backup.git" +SRC_URI="${CARGO_CRATE_URIS}" +# License set may be more restrictive as OR is not respected +# use cargo-license for a more accurate license picture +LICENSE="0BSD AGPL-3 AGPL-3+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 ISC MIT MITNFA MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" +SLOT="0" +KEYWORDS="amd64" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +# rust does not use *FLAGS from make.conf, silence portage warning +# update with proper path to binaries this crate installs, omit leading / +QA_FLAGS_IGNORED="usr/bin/${PN}" + +PATCHES=( + "${FILESDIR}/${P}-compile.patch" +) + +src_unpack() { + # version 0.10.2-1 + EGIT_REPO_URI="https://git.proxmox.com/git/pxar.git" + EGIT_COMMIT="29cbeed3e1b52f5eef455cdfa8b5e93f4e3e88f5" + EGIT_CHECKOUT_DIR=${WORKDIR}/pxar + git-r3_src_unpack + # version 0.3.0-1 + EGIT_REPO_URI="https://git.proxmox.com/git/pathpatterns.git" + EGIT_COMMIT="281894a5b66099e919d167cd5f0644fff6aca234" + EGIT_CHECKOUT_DIR=${WORKDIR}/pathpatterns + git-r3_src_unpack + EGIT_REPO_URI="https://git.proxmox.com/git/proxmox.git" + EGIT_COMMIT="aae8a03dc4e119b5930ef36a68fb7e50f446eeca" + EGIT_CHECKOUT_DIR=${WORKDIR}/proxmox + git-r3_src_unpack + # version 0.1.4 + EGIT_REPO_URI="https://git.proxmox.com/git/proxmox-fuse.git" + EGIT_COMMIT="8d57fb64f044ea3dcfdef77ed5f1888efdab0708" + EGIT_CHECKOUT_DIR=${WORKDIR}/proxmox-fuse + git-r3_src_unpack + # version 3.2.3-1 + EGIT_REPO_URI="https://git.proxmox.com/git/proxmox-backup.git" + EGIT_COMMIT="1d4afdccea36781a0441e32f538414b24df0c7e2" + EGIT_CHECKOUT_DIR=${WORKDIR}/${P} + git-r3_src_unpack + cargo_src_unpack +} + +src_compile() { + cargo_src_compile --package pxar-bin --bin pxar --package proxmox-backup-client --bin proxmox-backup-client +} + +src_test() { + cargo_src_test --package pxar-bin --bin pxar --package proxmox-backup-client --bin proxmox-backup-client +} + +src_install() { + debian/scripts/elf-strip-unused-dependencies.sh target/release/proxmox-backup-client + debian/scripts/elf-strip-unused-dependencies.sh target/release/pxar + + dobin target/release/pxar + dobin target/release/proxmox-backup-client + + insinto /usr/share/bash-completion/completions/ + newins debian/proxmox-backup-client.bc proxmox-backup-client + newins debian/pxar.bc pxar +}