diff --git a/Manifest b/Manifest index 3d9b819..f01a4bb 100644 --- a/Manifest +++ b/Manifest @@ -7,6 +7,7 @@ AUX proxmox-backup-client-3.2.3-compile.patch 21215 SHA256 da6b91c5ff53464b14666 AUX proxmox-backup-client-3.2.4-compile.patch 21215 SHA256 3cef2d7535e44953cb8b350f15588b60bb52a17fe60f7667f3d9ea609846d7d1 SHA512 8d70298c565409ae7bb9e33bd9954615b29e3af87d43f21dd4e0cb8058d68d9619fa26b2a7a32cef07452929ad7487eb8fee12790a218c1c63516330da3d034a WHIRLPOOL b2f15c7d4df342729ad100bd7fa8f8188475ad51f2071abc1d865c7254bee1c1616fef7527fd54407815ec7435ef996f60d0dcad7257b22f9acc5eb9fc9ada64 AUX proxmox-backup-client-3.2.5-compile.patch 21215 SHA256 7ccc0989c498c57a5fe57375194888b9aa0e6c55a4fcefbbdff8d843311757d2 SHA512 7de6295d1c86dcad8a0aed664956aa3cf41ee465bf105ef7347b60b6f03115ad572c48fc33ae7f29d0ed137e6b87bad7c5fd2b7fccda108b2bcb966de28268a9 WHIRLPOOL 3bf60dca91c65438077871ec0a434991ed16e7aed7b7c1598e91ab984bee518e7410347a2557ba1211983986bcceb80ad24160aea5d342e486bf8572498c313e AUX proxmox-backup-client-3.2.6-compile.patch 21200 SHA256 a2f51f8f390959017a22d83da05fa4054c32368678a802cdb231f23a37ba567b SHA512 8656576ecd90e38d967cfe3ebcac59e0ee03f6862ca2666ceb55a932790f4dfdbc6d4371fe759d2dd83afcb8b05a2be82d10743eb945e883af1afce00c67b296 WHIRLPOOL eb0535416ba82e2faf57a14c3f70e933f59ec218b1ffeb8f27750be950cd74af1bc0008ce414f55f2010d405503e46c47f3b0e5bd7014dbb498ca3fa77c8dfc3 +AUX proxmox-backup-client-3.2.7-compile.patch 21163 SHA256 94869f07612de046d38ca776453321b189f4c0ed8bc2b1d7405bcdf024e16100 SHA512 f671c6458823f85a8ab8bd5f8ff3a8f5fb86e585942ee34cbb4a45f299c8ebc335856a300b64adf0d063a1b5184bf6820fadb76f1e643879f26b3fec451e492c WHIRLPOOL 021a06681e026ffe387318d44a7b28179b0fd578423d84a206c9540b9f10d565367c0b66c2de0648a840e69e0fc94772ff9e8cf1ba8a4ed5b2aaea67dda20a29 DIST addr2line-0.21.0.crate 40807 SHA256 8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb SHA512 afde7660dda30dee240e79df1fb5b92d4572520bf17a134ef3765e2a077af9e13713952d52e27fae420109b40f6e24dbce1056687dbcbead858ffc21cc7dc69b WHIRLPOOL 1b84e354101ccd35b7fe37273488a86c47f7759c4e88531ed61477566f3972d1ed12557827cd2ce16dec4abc28865bdba2ce651ba6bd41a447b4c1232c2ab816 DIST adler-1.0.2.crate 12778 SHA256 f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe SHA512 7ab190d31890fc05b0b55d8e2c6527a505e06793d5496be0b3831e0513412f9ba97f8148f6f68ed0770fa9cd980a5092d885e058becf1d5506b7c74b82674aa1 WHIRLPOOL 80f1c738f6dded5e843d4f62dd86fb485062330410e66b050272a8a41b43a4d51579307f741be248b88ea33bd2ec334289de6bc0de9884e22b3fbb6fa16e65cf DIST ahash-0.8.11.crate 43607 SHA256 e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011 SHA512 47d211b2422de0b381dfe32229faa346406eb7a22dff867dc04c22389609a8671ce3218e662000c49891a06c259d82e0ff4413740f007729d80e097a6c3f0d9d WHIRLPOOL 29c414cfb6c7cfcdd6313b7e052e883af82aad4534bc35ecaa6e19542efb1cdcaef1f46fcd3e84ec7e870a6f1362508cc3fb6a226d918fa18a9412685cf6fa5f @@ -436,4 +437,5 @@ EBUILD proxmox-backup-client-3.2.3.ebuild 8193 SHA256 4d94ee99ba8dc5dd8f28a0317f EBUILD proxmox-backup-client-3.2.4.ebuild 8193 SHA256 a368aa638c4a1e413ba88606ec87c71989f524376b1d79aacb8bb3875eeae90a SHA512 190f38fd7a3b6b74f8a9d458ba57567e46d5624e2869824fb6715432a01b8ae7079d29dacd50b6ae43c9deac898568802ab27032d7329996812261ef1687b7a0 WHIRLPOOL 0cb0ea92db0889f15e56109f923fbf616507c869a8302288e5ef79d45b80268b9a71559890c3d59044746b09e5a59b4114c748244e489aeb56e85f8bab9b5d76 EBUILD proxmox-backup-client-3.2.5.ebuild 8193 SHA256 222380000f598b2971ab5aa43b06555698c20b33fbf4ce8f8b2373c5921cf22b SHA512 d1a1a37382b133eac1b29d8f61f22ec95dda023021b02c8d301e113b4fa7ca5520722ae739b73c1a991b9312f3a5f792096aa52429f49d1ede4270da10afa385 WHIRLPOOL 4df2a032e3d3652ceb3dd657cc469fbdd341a1080985e9a377afdaf3bf898be3c76c7a45fc70b66ee980f2a2f587c404487e9c62ec28c9b0e35e64b3866ec11e EBUILD proxmox-backup-client-3.2.6.ebuild 8193 SHA256 67dce0e27369090cb7e3998be37fc8d866cc3fd958dd82d7c80e7873784a350c SHA512 6f1e0de6c20b1062d422ddd13de026392dbcbd8a7c0d84f6788a226c10892bcd43be9d4ca48cf1778787fbec34dc727ea0d97a44839bb0700a3de61017a55ab7 WHIRLPOOL 5f074a798204e1a60164f56d0e0209101067be7c7f9e0d83516bee7ac61fad7a7884c9eac75590c6fff55492d8c6e6898dd99234f4d4f91f92d8f992dced0439 +EBUILD proxmox-backup-client-3.2.7.ebuild 8193 SHA256 eb08b33ea5d6db0388b262791507b10434e4c7b0335dc1016bdc79663a1d2c7e SHA512 3c7a3d344d207612dfe692de19cc082ff5a015c6781524f04508894df697f15725b385b7e8e8a284fd56ca31fa6f3812904c52f7a0cd17897201aa158ad986bf WHIRLPOOL 5dfb439970d4dc403408725bff0009f1df3a5b20f899c6b9657466846784e3d2a0bb245341ad657fb5477493538b4f4bc5f1ac2301f882b622c18e0c602a568b MISC README.md 42 SHA256 5a859a683a425ec9dda124ae94c30c9e19f95fc086f2f846441e34506173989d SHA512 0074edaf3905e7093fd03286609c4830d11a5508ed69185d1eb8f57bfb0f46698ae85e7db80bff7b81af6b30a19e201e83344f6305686879d6524c6e20fa4b81 WHIRLPOOL d9eb53e956bce4109deb4c1de2816fe4b0fb3706678e69194bf6836c7a97b75434fa66a9a3e6069fedda428be386d2844963c563b85a7c2b77d6c15872157b84 diff --git a/files/proxmox-backup-client-3.2.7-compile.patch b/files/proxmox-backup-client-3.2.7-compile.patch new file mode 100644 index 0000000..59d3e02 --- /dev/null +++ b/files/proxmox-backup-client-3.2.7-compile.patch @@ -0,0 +1,515 @@ +diff --git a/.cargo/config.toml b/.cargo/config.toml +index a439c97b..a15eb2f2 100644 +--- a/.cargo/config.toml ++++ b/.cargo/config.toml +@@ -1,8 +1,20 @@ +-[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" + + [profile.release] + debug=true +diff --git a/Cargo.toml b/Cargo.toml +index 7013a468..632f3b80 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 dfbaacab..4a061b9d 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'[]' \ +@@ -62,8 +51,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 + +@@ -163,31 +151,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 pbs2to3 \ +- --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 "$@" + + +@@ -196,25 +164,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 230a3ab4..4fefdf57 100644 +--- a/debian/control ++++ b/debian/control +@@ -14,131 +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-2+default-dev (>= 2.4-~~), +- 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+server-dev, +- librust-proxmox-rrd-0.2+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.7-~~), +- librust-proxmox-sys-0.5+crypt-dev (>= 0.5.7-~~), +- librust-proxmox-sys-0.5+default-dev (>= 0.5.7-~~), +- librust-proxmox-sys-0.5+logrotate-dev (>= 0.5.7-~~), +- librust-proxmox-sys-0.5+timer-dev (>= 0.5.7-~~), +- 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-2+default-dev, +- librust-proxmox-uuid-1+default-dev, +- librust-proxmox-uuid-1+serde-dev, +- librust-pxar-0.12+default-dev, +- 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-~~), +@@ -162,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 (>= 4.1.4), +- 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 a82c3e12..e95b0f60 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -4,11 +4,9 @@ + DH_VERBOSE = 1 + + include /usr/share/dpkg/pkg-info.mk +-include /usr/share/rustc/architecture.mk + + export BUILD_MODE=release + +-export CARGO=/usr/share/cargo/bin/cargo + + export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS + export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE +@@ -27,7 +25,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 +38,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 d23796b7..4108f422 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.7.ebuild b/proxmox-backup-client-3.2.7.ebuild new file mode 100644 index 0000000..495348d --- /dev/null +++ b/proxmox-backup-client-3.2.7.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.12.0-1 + EGIT_REPO_URI="https://git.proxmox.com/git/pxar.git" + EGIT_COMMIT="ebe402c01c736eb6b822d984cda48538c0b7bf87" + 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="0652d81977a3a35a6f1b046faf0768246a71a8bf" + 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.7-1 + EGIT_REPO_URI="https://git.proxmox.com/git/proxmox-backup.git" + EGIT_COMMIT="cb3d41e838dec0e1002aaf5ee4c0e6cd28284c74" + 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 +}