diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-09 21:12:15 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-12 12:17:22 +0200 |
commit | 15ddf5d0e7e6badfe3c0deccd9e848e0d8642d3a (patch) | |
tree | 8a6167e67aea7ab09788430b6d0aa7af9c2a3c79 | |
parent | ab5197b7e4c0aafc00e3a5de3abaa577a49178ab (diff) | |
download | radicle-ci-broker-15ddf5d0e7e6badfe3c0deccd9e848e0d8642d3a.tar.gz |
chore: add deb packaging
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | Cargo.lock | 90 | ||||
-rwxr-xr-x | debian/build-deb | 34 | ||||
-rw-r--r-- | debian/cargo-checksum.json | 1 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 2 | ||||
-rw-r--r-- | debian/control | 20 | ||||
-rw-r--r-- | debian/copyright | 10 | ||||
-rw-r--r-- | debian/lintian-overrides | 2 | ||||
-rwxr-xr-x | debian/rules | 14 | ||||
-rw-r--r-- | debian/source/format | 1 |
10 files changed, 133 insertions, 46 deletions
@@ -54,9 +54,9 @@ dependencies = [ [[package]] name = "amplify" -version = "4.5.0" +version = "4.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8629db306c0bbeb0a402e2918bdcf0026b5ddb24c46460f3bf5410b350d98710" +checksum = "f8dd50780fa78a67bae725dd164bc993500656112815a9301fd8b797e9006803" dependencies = [ "amplify_derive", "amplify_num", @@ -611,9 +611,9 @@ dependencies = [ [[package]] name = "git2" -version = "0.18.1" +version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd" +checksum = "1b3ba52851e73b46a4c3df1d89343741112003f0f6f13beb0dfac9e457c3fdcd" dependencies = [ "bitflags 2.4.2", "libc", @@ -641,9 +641,9 @@ checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "hermit-abi" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d3d0e0f38255e7fa3cf31335b3a56f05febd18025f4db5ef7a0cfb4f8da651f" +checksum = "d0c62115964e08cb8039170eb33c1d0e2388a256930279edca206fff675f82c3" [[package]] name = "hmac" @@ -672,9 +672,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.2" +version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520" +checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" dependencies = [ "equivalent", "hashbrown", @@ -692,12 +692,12 @@ dependencies = [ [[package]] name = "is-terminal" -version = "0.4.10" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bad00257d07be169d870ab665980b06cdb366d792ad690bf2e76876dc503455" +checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" dependencies = [ "hermit-abi", - "rustix", + "libc", "windows-sys", ] @@ -709,9 +709,9 @@ checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "jobserver" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d" +checksum = "ab46a6e9526ddef3ae7f787c06f0f2600639ba80ea3eade3d8e670a2230f51d6" dependencies = [ "libc", ] @@ -742,9 +742,9 @@ checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libgit2-sys" -version = "0.16.1+1.7.1" +version = "0.16.2+1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c" +checksum = "ee4126d8b4ee5c9d9ea891dd875cfdc1e9d0950437179104b183d7d8a74d24e8" dependencies = [ "cc", "libc", @@ -799,9 +799,9 @@ checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" dependencies = [ "adler", ] @@ -851,19 +851,18 @@ dependencies = [ [[package]] name = "num-integer" -version = "0.1.45" +version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ - "autocfg", "num-traits", ] [[package]] name = "num-iter" -version = "0.1.43" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" +checksum = "d869c01cc0c455284163fd0092f1f93835385ccab5a98a0dcc497b2f8bf055a9" dependencies = [ "autocfg", "num-integer", @@ -872,9 +871,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" +checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ "autocfg", "libm", @@ -1074,7 +1073,7 @@ dependencies = [ [[package]] name = "radicle" version = "0.2.0" -source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#137961c1f72a6850325b05e65a232cd202cbd12c" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#292ff01923de86b9139eae538962e98d76178b9a" dependencies = [ "amplify", "base64 0.21.7", @@ -1121,7 +1120,7 @@ dependencies = [ [[package]] name = "radicle-cob" version = "0.2.0" -source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#137961c1f72a6850325b05e65a232cd202cbd12c" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#292ff01923de86b9139eae538962e98d76178b9a" dependencies = [ "fastrand", "git2", @@ -1139,7 +1138,7 @@ dependencies = [ [[package]] name = "radicle-crypto" version = "0.2.0" -source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#137961c1f72a6850325b05e65a232cd202cbd12c" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#292ff01923de86b9139eae538962e98d76178b9a" dependencies = [ "amplify", "cyphernet", @@ -1157,7 +1156,7 @@ dependencies = [ [[package]] name = "radicle-dag" version = "0.2.0" -source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#137961c1f72a6850325b05e65a232cd202cbd12c" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#292ff01923de86b9139eae538962e98d76178b9a" dependencies = [ "fastrand", ] @@ -1179,7 +1178,7 @@ dependencies = [ [[package]] name = "radicle-ssh" version = "0.2.0" -source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#137961c1f72a6850325b05e65a232cd202cbd12c" +source = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git?branch=master#292ff01923de86b9139eae538962e98d76178b9a" dependencies = [ "byteorder", "log", @@ -1583,13 +1582,12 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.9.0" +version = "3.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa" +checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67" dependencies = [ "cfg-if", "fastrand", - "redox_syscall", "rustix", "windows-sys", ] @@ -1605,18 +1603,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" dependencies = [ "proc-macro2", "quote", @@ -1721,9 +1719,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.90" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1223296a201415c7fad14792dbefaace9bd52b62d33453ade1c5b5f07555406" +checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1731,9 +1729,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.90" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd" +checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b" dependencies = [ "bumpalo", "log", @@ -1746,9 +1744,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.90" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999" +checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1756,9 +1754,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.90" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" +checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" dependencies = [ "proc-macro2", "quote", @@ -1769,9 +1767,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.90" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b" +checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" [[package]] name = "winapi" diff --git a/debian/build-deb b/debian/build-deb new file mode 100755 index 0000000..6f9ff8b --- /dev/null +++ b/debian/build-deb @@ -0,0 +1,34 @@ +#!/bin/bash + +set -euo pipefail + +rm -f ../radicle*_* +git clean -fdx + +# Get name and version of source package. +name="$(dpkg-parsechangelog -SSource)" +version="$(dpkg-parsechangelog -SVersion)" + +# Get upstream version: everything before the last dash. +uv="$(echo "$version" | sed 's/-[^-]*$//')" +orig="${name}_${uv}.orig.tar.xz" + +# Create a tar ball without the Debian packaging. +tmp="$(mktemp -d)" +trap 'rm -rf "$tmp"' EXIT +git archive HEAD | tar -C "$tmp" -xf - +rm -rf "$tmp/debian" +tar -C "$tmp" -cf - . | xz >"../$orig" + +# Actually build the package, without signing the .changes file. +dpkg-buildpackage -us -uc + +# Dump some information to make it easier to visually verify +# everything looks OK. Also, test the package with the lintian tool. +arch="$(dpkg --print-architecture)" +deb="../${name}_${version}_${arch}.deb" +changes="../${name}_${version}_${arch}.changes" + +ls -l "$deb" +dpkg -c "$deb" +lintian -i "$changes" diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..6852d00 --- /dev/null +++ b/debian/cargo-checksum.json @@ -0,0 +1 @@ +/* This file needs to exist, but can be empty. */ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..915a3e9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +radicle-ci-broker (0.1.0-1) unstable; urgency=medium + + * First release. + + -- Lars Wirzenius <liw@liw.fi> Mon, 25 Sep 2023 08:34:08 +0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..021ea30 --- /dev/null +++ b/debian/compat @@ -0,0 +1,2 @@ +10 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2a8adf1 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: radicle-ci-broker +Maintainer: The Radicle Team <team@radicle.xyz> +Uploaders: Lars Wirzenius <liw@liw.fi> +Section: vcs +Priority: optional +Standards-Version: 4.6.2 +Build-Depends: debhelper (>= 10~), + asciidoctor +Homepage: https://radicle.xyz/ + +Package: radicle-ci-broker +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, git +Description: broker continuous integration implementations for Radicle + Radicle is a secure, decentralized and powerful alternative to code + forges such as GitHub and GitLab that preserves user sovereignty and + freedom. + . + Radicle CI broker uses a configured CI engine to run Ci for a repsitory + on a Radicle node. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2cec5ea --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: radicle-ci-broker +Upstream-Contact: https://radicle.xyz/ +Source: https://app.radicle.xyz/nodes/radicle.liw.fi/rad:zwTxygwuz5LDGBq255RA2CbNGrz8 + +Files: * +Copyright: 2019-2021, The Radicle Foundation +License: Apache-2 or Expat + License texts omitted, see LICENSE-APACHE and LICENSE-MIT in the + source tree. diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..3ca48eb --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,2 @@ +radicle-ci-broker binary: initial-upload-closes-no-bugs +radicle-ci-broker binary: no-manual-page diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2aee143 --- /dev/null +++ b/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + true + +override_dh_auto_install: + cargo install --offline --path=. --root=debian/radicle-ci-broker + rm -f debian/*/.crates*.* + +override_dh_auto_test: + echo tests are disabled, for now diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) |