From cce052e97f5b4a5d4089dab558adfaeff6fc9b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 30 Nov 2020 15:08:05 +0100 Subject: [PATCH] build: track d/control in git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and check build-dependencies before building.. Signed-off-by: Fabian Grünbichler --- build.sh | 10 + proxmox-api-macro/debian/control | 41 ++++ proxmox-sortable-macro/debian/control | 41 ++++ proxmox/debian/control | 310 ++++++++++++++++++++++++++ 4 files changed, 402 insertions(+) create mode 100644 proxmox-api-macro/debian/control create mode 100644 proxmox-sortable-macro/debian/control create mode 100644 proxmox/debian/control diff --git a/build.sh b/build.sh index 7554e7da..72670b86 100755 --- a/build.sh +++ b/build.sh @@ -12,6 +12,16 @@ mkdir -p build echo system >build/rust-toolchain rm -rf "build/${CRATE}" +CONTROL="$PWD/${CRATE}/debian/control" + +if [ -e "$CONTROL" ]; then + # check but only warn, debcargo fails anyway if crates are missing + dpkg-checkbuilddeps $PWD/${CRATE}/debian/control || true + rm -f "$PWD/${CRATE}/debian/control" +fi + debcargo package --config "$PWD/${CRATE}/debian/debcargo.toml" --changelog-ready --no-overlay-write-back --directory "$PWD/build/${CRATE}" "${CRATE}" "$(dpkg-parsechangelog -l "${CRATE}/debian/changelog" -SVersion | sed -e 's/-.*//')" cd "build/${CRATE}" ${BUILDCMD} + +cp debian/control "$CONTROL" diff --git a/proxmox-api-macro/debian/control b/proxmox-api-macro/debian/control new file mode 100644 index 00000000..e1d6ee1c --- /dev/null +++ b/proxmox-api-macro/debian/control @@ -0,0 +1,41 @@ +Source: rust-proxmox-api-macro +Section: rust +Priority: optional +Build-Depends: debhelper (>= 11), + dh-cargo (>= 18), + cargo:native , + rustc:native , + libstd-rust-dev , + librust-anyhow-1+default-dev , + librust-proc-macro2-1+default-dev , + librust-quote-1+default-dev , + librust-syn-1+default-dev , + librust-syn-1+full-dev , + librust-syn-1+visit-mut-dev +Maintainer: Proxmox Support Team +Standards-Version: 4.4.1 +Vcs-Git: +Vcs-Browser: + +Package: librust-proxmox-api-macro-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-anyhow-1+default-dev, + librust-proc-macro2-1+default-dev, + librust-quote-1+default-dev, + librust-syn-1+default-dev, + librust-syn-1+full-dev, + librust-syn-1+visit-mut-dev +Provides: + librust-proxmox-api-macro+default-dev (= ${binary:Version}), + librust-proxmox-api-macro-0-dev (= ${binary:Version}), + librust-proxmox-api-macro-0+default-dev (= ${binary:Version}), + librust-proxmox-api-macro-0.2-dev (= ${binary:Version}), + librust-proxmox-api-macro-0.2+default-dev (= ${binary:Version}), + librust-proxmox-api-macro-0.2.3-dev (= ${binary:Version}), + librust-proxmox-api-macro-0.2.3+default-dev (= ${binary:Version}) +Description: Proxmox API macro - Rust source code + This package contains the source for the Rust proxmox-api-macro crate, packaged + by debcargo for use with cargo and dh-cargo. diff --git a/proxmox-sortable-macro/debian/control b/proxmox-sortable-macro/debian/control new file mode 100644 index 00000000..8a891bf7 --- /dev/null +++ b/proxmox-sortable-macro/debian/control @@ -0,0 +1,41 @@ +Source: rust-proxmox-sortable-macro +Section: rust +Priority: optional +Build-Depends: debhelper (>= 11), + dh-cargo (>= 18), + cargo:native , + rustc:native , + libstd-rust-dev , + librust-anyhow-1+default-dev , + librust-proc-macro2-1+default-dev , + librust-quote-1+default-dev , + librust-syn-1+default-dev , + librust-syn-1+full-dev , + librust-syn-1+visit-mut-dev +Maintainer: Proxmox Support Team +Standards-Version: 4.4.1 +Vcs-Git: +Vcs-Browser: + +Package: librust-proxmox-sortable-macro-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-anyhow-1+default-dev, + librust-proc-macro2-1+default-dev, + librust-quote-1+default-dev, + librust-syn-1+default-dev, + librust-syn-1+full-dev, + librust-syn-1+visit-mut-dev +Provides: + librust-proxmox-sortable-macro+default-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0+default-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0.1-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0.1+default-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0.1.1-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0.1.1+default-dev (= ${binary:Version}) +Description: Proxmox sortable macro - Rust source code + This package contains the source for the Rust proxmox-sortable-macro crate, + packaged by debcargo for use with cargo and dh-cargo. diff --git a/proxmox/debian/control b/proxmox/debian/control new file mode 100644 index 00000000..16a2082d --- /dev/null +++ b/proxmox/debian/control @@ -0,0 +1,310 @@ +Source: rust-proxmox +Section: rust +Priority: optional +Build-Depends: debhelper (>= 11), + dh-cargo (>= 18), + cargo:native , + rustc:native , + libstd-rust-dev , + librust-anyhow-1+default-dev , + librust-base32-0.4+default-dev , + librust-base64-0.12+default-dev , + librust-bytes-0.5+default-dev , + librust-endian-trait-0.6+arrays-dev , + librust-endian-trait-0.6+default-dev , + librust-futures-0.3+default-dev , + librust-http-0.2+default-dev , + librust-hyper-0.13+default-dev , + librust-lazy-static-1+default-dev (>= 1.4-~~) , + librust-libc-0.2+default-dev , + librust-nix-0.19+default-dev , + librust-openssl-0.10+default-dev , + librust-percent-encoding-2+default-dev (>= 2.1-~~) , + librust-regex-1+default-dev (>= 1.2-~~) , + librust-rustyline-6+default-dev , + librust-serde-1+default-dev , + librust-serde-1+derive-dev , + librust-serde-derive-1+default-dev , + librust-serde-json-1+default-dev , + librust-textwrap-0.11+default-dev , + librust-tokio-0.2+default-dev , + librust-tokio-0.2+io-util-dev , + librust-tokio-0.2+sync-dev , + librust-url-2+default-dev (>= 2.1-~~) , + uuid-dev , + uuid-dev , + uuid-dev , + uuid-dev , + uuid-dev , + uuid-dev , + uuid-dev +Maintainer: Proxmox Support Team +Standards-Version: 4.4.1 +Vcs-Git: +Vcs-Browser: + +Package: librust-proxmox-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-anyhow-1+default-dev, + librust-base64-0.12+default-dev, + librust-bytes-0.5+default-dev, + librust-endian-trait-0.6+arrays-dev, + librust-endian-trait-0.6+default-dev, + librust-http-0.2+default-dev, + librust-lazy-static-1+default-dev (>= 1.4-~~), + librust-libc-0.2+default-dev, + librust-nix-0.19+default-dev, + librust-percent-encoding-2+default-dev (>= 2.1-~~), + librust-regex-1+default-dev (>= 1.2-~~), + librust-rustyline-6+default-dev, + librust-serde-1+default-dev, + librust-serde-1+derive-dev, + librust-serde-derive-1+default-dev, + librust-serde-json-1+default-dev, + librust-textwrap-0.11+default-dev, + librust-url-2+default-dev (>= 2.1-~~), + uuid-dev +Recommends: + librust-proxmox+default-dev (= ${binary:Version}) +Suggests: + librust-proxmox+api-macro-dev (= ${binary:Version}), + librust-proxmox+base32-dev (= ${binary:Version}), + librust-proxmox+cli-dev (= ${binary:Version}), + librust-proxmox+examples-dev (= ${binary:Version}), + librust-proxmox+futures-dev (= ${binary:Version}), + librust-proxmox+hyper-dev (= ${binary:Version}), + librust-proxmox+openssl-dev (= ${binary:Version}), + librust-proxmox+proxmox-sortable-macro-dev (= ${binary:Version}), + librust-proxmox+router-dev (= ${binary:Version}), + librust-proxmox+tokio-dev (= ${binary:Version}), + librust-proxmox+websocket-dev (= ${binary:Version}) +Provides: + librust-proxmox+test-harness-dev (= ${binary:Version}), + librust-proxmox-0-dev (= ${binary:Version}), + librust-proxmox-0+test-harness-dev (= ${binary:Version}), + librust-proxmox-0.8-dev (= ${binary:Version}), + librust-proxmox-0.8+test-harness-dev (= ${binary:Version}), + librust-proxmox-0.8.0-dev (= ${binary:Version}), + librust-proxmox-0.8.0+test-harness-dev (= ${binary:Version}) +Description: Proxmox library - Rust source code + This package contains the source for the Rust proxmox crate, packaged by + debcargo for use with cargo and dh-cargo. + +Package: librust-proxmox+api-macro-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-proxmox-api-macro-0.2+default-dev +Provides: + librust-proxmox+proxmox-api-macro-dev (= ${binary:Version}), + librust-proxmox-0+api-macro-dev (= ${binary:Version}), + librust-proxmox-0+proxmox-api-macro-dev (= ${binary:Version}), + librust-proxmox-0.8+api-macro-dev (= ${binary:Version}), + librust-proxmox-0.8+proxmox-api-macro-dev (= ${binary:Version}), + librust-proxmox-0.8.0+api-macro-dev (= ${binary:Version}), + librust-proxmox-0.8.0+proxmox-api-macro-dev (= ${binary:Version}) +Description: Proxmox library - feature "api-macro" and 1 more + This metapackage enables feature "api-macro" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + . + Additionally, this package also provides the "proxmox-api-macro" feature. + +Package: librust-proxmox+base32-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-base32-0.4+default-dev +Provides: + librust-proxmox+u2f-dev (= ${binary:Version}), + librust-proxmox-0+base32-dev (= ${binary:Version}), + librust-proxmox-0+u2f-dev (= ${binary:Version}), + librust-proxmox-0.8+base32-dev (= ${binary:Version}), + librust-proxmox-0.8+u2f-dev (= ${binary:Version}), + librust-proxmox-0.8.0+base32-dev (= ${binary:Version}), + librust-proxmox-0.8.0+u2f-dev (= ${binary:Version}) +Description: Proxmox library - feature "base32" and 1 more + This metapackage enables feature "base32" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + . + Additionally, this package also provides the "u2f" feature. + +Package: librust-proxmox+cli-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-proxmox+router-dev (= ${binary:Version}), + librust-hyper-0.13+default-dev, + librust-tokio-0.2+default-dev +Provides: + librust-proxmox-0+cli-dev (= ${binary:Version}), + librust-proxmox-0.8+cli-dev (= ${binary:Version}), + librust-proxmox-0.8.0+cli-dev (= ${binary:Version}) +Description: Proxmox library - feature "cli" + This metapackage enables feature "cli" for the Rust proxmox crate, by pulling + in any additional dependencies needed by that feature. + +Package: librust-proxmox+default-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-proxmox+cli-dev (= ${binary:Version}), + librust-proxmox+router-dev (= ${binary:Version}), + librust-proxmox+tfa-dev (= ${binary:Version}), + librust-proxmox+u2f-dev (= ${binary:Version}), + librust-proxmox+websocket-dev (= ${binary:Version}) +Provides: + librust-proxmox-0+default-dev (= ${binary:Version}), + librust-proxmox-0.8+default-dev (= ${binary:Version}), + librust-proxmox-0.8.0+default-dev (= ${binary:Version}) +Description: Proxmox library - feature "default" + This metapackage enables feature "default" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + +Package: librust-proxmox+examples-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-proxmox+u2f-dev (= ${binary:Version}), + librust-tokio-0.2+macros-dev +Provides: + librust-proxmox-0+examples-dev (= ${binary:Version}), + librust-proxmox-0.8+examples-dev (= ${binary:Version}), + librust-proxmox-0.8.0+examples-dev (= ${binary:Version}) +Description: Proxmox library - feature "examples" + This metapackage enables feature "examples" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + +Package: librust-proxmox+futures-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-futures-0.3+default-dev +Provides: + librust-proxmox-0+futures-dev (= ${binary:Version}), + librust-proxmox-0.8+futures-dev (= ${binary:Version}), + librust-proxmox-0.8.0+futures-dev (= ${binary:Version}) +Description: Proxmox library - feature "futures" + This metapackage enables feature "futures" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + +Package: librust-proxmox+hyper-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-hyper-0.13+default-dev +Provides: + librust-proxmox-0+hyper-dev (= ${binary:Version}), + librust-proxmox-0.8+hyper-dev (= ${binary:Version}), + librust-proxmox-0.8.0+hyper-dev (= ${binary:Version}) +Description: Proxmox library - feature "hyper" + This metapackage enables feature "hyper" for the Rust proxmox crate, by pulling + in any additional dependencies needed by that feature. + +Package: librust-proxmox+openssl-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-openssl-0.10+default-dev +Provides: + librust-proxmox+tfa-dev (= ${binary:Version}), + librust-proxmox-0+openssl-dev (= ${binary:Version}), + librust-proxmox-0+tfa-dev (= ${binary:Version}), + librust-proxmox-0.8+openssl-dev (= ${binary:Version}), + librust-proxmox-0.8+tfa-dev (= ${binary:Version}), + librust-proxmox-0.8.0+openssl-dev (= ${binary:Version}), + librust-proxmox-0.8.0+tfa-dev (= ${binary:Version}) +Description: Proxmox library - feature "openssl" and 1 more + This metapackage enables feature "openssl" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + . + Additionally, this package also provides the "tfa" feature. + +Package: librust-proxmox+proxmox-sortable-macro-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-proxmox-sortable-macro-0.1+default-dev (>= 0.1.1-~~) +Provides: + librust-proxmox+sortable-macro-dev (= ${binary:Version}), + librust-proxmox-0+proxmox-sortable-macro-dev (= ${binary:Version}), + librust-proxmox-0+sortable-macro-dev (= ${binary:Version}), + librust-proxmox-0.8+proxmox-sortable-macro-dev (= ${binary:Version}), + librust-proxmox-0.8+sortable-macro-dev (= ${binary:Version}), + librust-proxmox-0.8.0+proxmox-sortable-macro-dev (= ${binary:Version}), + librust-proxmox-0.8.0+sortable-macro-dev (= ${binary:Version}) +Description: Proxmox library - feature "proxmox-sortable-macro" and 1 more + This metapackage enables feature "proxmox-sortable-macro" for the Rust proxmox + crate, by pulling in any additional dependencies needed by that feature. + . + Additionally, this package also provides the "sortable-macro" feature. + +Package: librust-proxmox+router-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-hyper-0.13+default-dev, + librust-tokio-0.2+default-dev +Provides: + librust-proxmox-0+router-dev (= ${binary:Version}), + librust-proxmox-0.8+router-dev (= ${binary:Version}), + librust-proxmox-0.8.0+router-dev (= ${binary:Version}) +Description: Proxmox library - feature "router" + This metapackage enables feature "router" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature. + +Package: librust-proxmox+tokio-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-tokio-0.2+default-dev +Provides: + librust-proxmox-0+tokio-dev (= ${binary:Version}), + librust-proxmox-0.8+tokio-dev (= ${binary:Version}), + librust-proxmox-0.8.0+tokio-dev (= ${binary:Version}) +Description: Proxmox library - feature "tokio" + This metapackage enables feature "tokio" for the Rust proxmox crate, by pulling + in any additional dependencies needed by that feature. + +Package: librust-proxmox+websocket-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-proxmox-dev (= ${binary:Version}), + librust-futures-0.3+default-dev, + librust-hyper-0.13+default-dev, + librust-openssl-0.10+default-dev, + librust-tokio-0.2+io-util-dev, + librust-tokio-0.2+sync-dev +Provides: + librust-proxmox-0+websocket-dev (= ${binary:Version}), + librust-proxmox-0.8+websocket-dev (= ${binary:Version}), + librust-proxmox-0.8.0+websocket-dev (= ${binary:Version}) +Description: Proxmox library - feature "websocket" + This metapackage enables feature "websocket" for the Rust proxmox crate, by + pulling in any additional dependencies needed by that feature.