update package build system
This commit is contained in:
parent
10f000babf
commit
dbb7fd445d
|
@ -4,5 +4,5 @@ pg_data
|
||||||
|
|
||||||
tfclient/tmpexec.bin
|
tfclient/tmpexec.bin
|
||||||
|
|
||||||
packages/void_amd64/work
|
packages/void_amd64_tfclient/work
|
||||||
packages/void_amd64/*.xbps
|
packages/void_amd64_tfclient/*.xbps
|
|
@ -2073,7 +2073,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nebula-ffi"
|
name = "nebula-ffi"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"gobuild",
|
"gobuild",
|
||||||
|
@ -3431,11 +3431,12 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tfcli"
|
name = "tfcli"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 4.2.7",
|
"clap 4.2.7",
|
||||||
"dirs 5.0.1",
|
"dirs 5.0.1",
|
||||||
"ipnet",
|
"ipnet",
|
||||||
|
"openssl-sys",
|
||||||
"qr2term",
|
"qr2term",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nebula-ffi"
|
name = "nebula-ffi"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A Rust wrapper crate for communicating with Nebula via a CGO FFI."
|
description = "A Rust wrapper crate for communicating with Nebula via a CGO FFI."
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
@ -10,6 +10,7 @@ repository = "https://git.e3t.cc/~core/trifid"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
gobuild = "0.1.0-alpha.2"
|
gobuild = "0.1.0-alpha.2"
|
||||||
bindgen = "0.66.1"
|
bindgen = "0.66.1"
|
|
@ -64,7 +64,7 @@ impl NebulaInstance {
|
||||||
let res;
|
let res;
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
res = generated::NebulaSetup(config_path_bytes.as_mut_ptr().cast::<i8>(), config_test_u8);
|
res = generated::NebulaSetup(config_path_bytes.as_mut_ptr().cast::<c_char>(), config_test_u8);
|
||||||
}
|
}
|
||||||
|
|
||||||
let res = cstring_to_string(res);
|
let res = cstring_to_string(res);
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd $1 || exit
|
||||||
|
cd tfcli || exit
|
||||||
|
|
||||||
|
echo "Building for release, v$2_$3 (+static) (--target x86_64-unknown-musl)"
|
||||||
|
cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
cd ../packages/void || exit
|
||||||
|
|
||||||
|
echo "Creating workdir"
|
||||||
|
rm -rf work
|
||||||
|
mkdir work
|
||||||
|
mkdir -p work/usr/bin
|
||||||
|
mkdir -p work/etc/sv
|
||||||
|
|
||||||
|
echo "Copying tfcli binary"
|
||||||
|
|
||||||
|
cp ../../target/release/tfcli work/usr/bin/tfcli
|
||||||
|
chmod 755 work/usr/bin/tfcli
|
||||||
|
|
||||||
|
echo "Building XBPS package"
|
||||||
|
|
||||||
|
xbps-create -A x86_64 -B trifid-build -H https://hub.e3t.cc/~core/trifid -l GPL-3.0-or-later -m "c0repwn3r <core@e3t.cc>" -n "tfcli-$2_$3" -s "A command-line client for managing trifid-api servers" work
|
|
@ -23,4 +23,4 @@ cp -r tfclient work/etc/sv
|
||||||
|
|
||||||
echo "Building XBPS package"
|
echo "Building XBPS package"
|
||||||
|
|
||||||
xbps-create -A x86_64 -B trifid-build -H https://hub.e3t.cc/~core/trifid -l GPL-3.0-or-later -m "c0repwn3r <core@e3t.cc>" -n "tfclient-$2_$3" -s "An open-source Rust= Defined Networking client" work
|
xbps-create -A x86_64 -B trifid-build -H https://hub.e3t.cc/~core/trifid -l GPL-3.0-or-later -m "c0repwn3r <core@e3t.cc>" -n "tfclient-$2_$3" -s "An open-source Rust Defined Networking client" work
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tfcli"
|
name = "tfcli"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Command-line client for managing trifid-api"
|
description = "Command-line client for managing trifid-api"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
@ -20,3 +20,4 @@ dirs = "5.0.1"
|
||||||
qr2term = "0.3.1"
|
qr2term = "0.3.1"
|
||||||
ipnet = "2.7.2"
|
ipnet = "2.7.2"
|
||||||
serde_json = "1.0.96"
|
serde_json = "1.0.96"
|
||||||
|
openssl-sys = { version = "0.9.83", features = ["vendored"] }
|
Loading…
Reference in New Issue