Improve many networking recipes

This commit is contained in:
Ribbon 2026-02-17 22:34:00 -03:00
parent 7af2fa6bc2
commit 7d609d0c34
59 changed files with 205 additions and 83 deletions

View File

@ -1,15 +1,17 @@
#TODO make dependencies work
#TODO not compiled or tested
#TODO discover minimum dependencies from gnu autotools log
# build instructions: https://gitlab.com/gnuwget/wget2#build-requirements
[source]
tar = "https://ftp.gnu.org/gnu/wget/wget2-2.0.1.tar.gz"
tar = "https://ftp.gnu.org/gnu/wget/wget2-2.2.1.tar.gz"
[build]
template = "configure"
dependencies = [
"gettext",
"libiconv",
"zlib",
"pcre",
"gnutls",
"bzip2",
"xz",
"zstd",
]
# dependencies = [
# "gettext",
# "libiconv",
# "zlib",
# "pcre",
# "gnutls3",
# "bzip2",
# "xz",
# "zstd",
# ]

View File

@ -1,8 +1,9 @@
#TODO compilation error (after cargo update)
[source]
git = "https://github.com/dertuxmalwieder/yaydl"
shallow_clone = true
[build]
template = "cargo"
dependencies = [
"openssl1",
"openssl3",
]

View File

@ -1,9 +1,10 @@
#TODO openssl error
#TODO not compiled or tested
[source]
git = "https://github.com/Siriusmart/youtube-tui"
shallow_clone = true
[build]
template = "cargo"
cargoflags = "--no-default-features"
dependencies = [
"openssl1",
"openssl3",
]

View File

@ -5,8 +5,7 @@ tar = "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz"
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/yt-dlp
echo "#!/usr/bin/env sh \n /usr/bin/yt-dlp-dir/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir/yt-dlp.sh
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir
echo "/usr/bin/yt-dlp-dir/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir/yt-dlp.sh "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
"""

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/pimalaya/neverest"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,5 +1,5 @@
#TODO not compiled or tested
# build intructions - https://wiki.filezilla-project.org/Client_Compile
# build intructions: https://wiki.filezilla-project.org/Client_Compile
[source]
tar = "https://dl3.cdn.filezilla-project.org/client/FileZilla_3.67.1_src.tar.xz?h=HG1-LUZAqtxJaEQhlQ9oNg&x=1722821782"
[build]

View File

@ -1,5 +1,5 @@
#TODO not compiled or tested
# build intructions - https://wiki.filezilla-project.org/Client_Compile
# build intructions: https://wiki.filezilla-project.org/Client_Compile
[source]
tar = "https://dl2.cdn.filezilla-project.org/server/FileZilla_Server_1.8.2_src.tar.xz?h=05HQOZtMOkV85GW9u3rrsg&x=1722821856"
[build]

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/bolcom/unFTP"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,16 +1,17 @@
#TODO not compiled or tested
# build instructions: https://github.com/skyjake/lagrange#how-to-compile
#TODO mpg123 dependency broken
[source]
tar = "https://git.skyjake.fi/gemini/lagrange/releases/download/v1.19.3/lagrange-1.19.3.tar.gz"
tar = "https://git.skyjake.fi/gemini/lagrange/releases/download/v1.19.4/lagrange-1.19.4.tar.gz"
[build]
template = "cmake"
cmakeflags = [
"-DENABLE_GAMEPAD=OFF",
"-DENABLE_POPUP_MENUS=OFF",
"-DENABLE_MPG123=OFF"
]
dependencies = [
"sdl2",
"openssl1",
"openssl3",
"zlib",
"harfbuzz",
"pcre",

View File

@ -1,6 +1,6 @@
#TODO compiles but requires setgroups syscall at startup
[source]
tar= "https://dlcdn.apache.org/httpd/httpd-2.4.61.tar.bz2"
tar= "https://archive.apache.org/dist/httpd/httpd-2.4.61.tar.bz2"
patches = [
"redox.patch",
]
@ -14,7 +14,7 @@ dependencies = [
"libuuid",
"libxcrypt",
"libxml2",
"openssl1",
"openssl3",
"pcre",
"zlib",
]
@ -23,6 +23,7 @@ template = "custom"
script = """
# cookbook_configure
DYNAMIC_INIT
export COOKBOOK_MAKE_JOBS=1
export CPPFLAGS="$CPPFLAGS -I${COOKBOOK_SYSROOT}/include/apr-1 -DDEBUG=1"
export LTFLAGS="$LTFLAGS -Wall"
@ -31,9 +32,9 @@ COOKBOOK_CONFIGURE_FLAGS=(
--host=${TARGET}
--with-apr=$COOKBOOK_SYSROOT
--with-apr-util=$COOKBOOK_SYSROOT
--enable-unixd=static
--enable-authz_core=static
--enable-authz_host=static
--enable-unixd=shared
--enable-authz_core=shared
--enable-authz_host=shared
ac_cv_prog_PCRE_CONFIG=$COOKBOOK_SYSROOT/bin/pcre-config
ap_cv_void_ptr_lt_long=no
)

View File

@ -2,8 +2,6 @@
#TODO determine how to configure this part of the deployment script: https://github.com/gmatht/easyp/blob/main/deploy.sh#L39
[source]
git = "https://github.com/gmatht/easyp-crate"
shallow_clone = true
[build]
template = "custom"
script = """
cookbook_cargo
"""
template = "cargo"

View File

@ -1,8 +1,10 @@
#TODO not compiled or tested
[source]
git = "https://github.com/ferronweb/ferron"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages ferron
"""

View File

@ -1,20 +1,17 @@
#TODO camino crate error
# broken since https://github.com/http-server-rs/http-server/pull/461
# because it needs https://trunkrs.dev to work
[source]
git = "https://github.com/http-server-rs/http-server"
# Broken since https://github.com/http-server-rs/http-server/pull/461
# because it needs https://trunkrs.dev to work
rev = "9ffa604de326e013330bced8e36dd7a6945ecb9f"
shallow_clone = true
[build]
template = "custom"
dependencies = [
"openssl1",
"openssl3",
]
script = """
DYNAMIC_INIT
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
export OPENSSL_STATIC="true"
"${COOKBOOK_CARGO}" build \
--manifest-path "${COOKBOOK_SOURCE}/crates/file-explorer-plugin/Cargo.toml" \
--locked ${build_flags} --lib

View File

@ -1,12 +1,10 @@
#TODO missing libc:: socket-related imports
[source]
git = "https://github.com/svenstaro/miniserve"
shallow_clone = true
[build]
template = "cargo"
dependencies = [
"openssl1",
"openssl3",
"zlib"
]
template = "cargo"

View File

@ -1,6 +1,7 @@
#TODO missing script for gnu make
[source]
git = "https://git.suckless.org/quark"
rev = "5ad0df91757fbc577ffceeca633725e962da345d.html"
rev = "5ad0df91757fbc577ffceeca633725e962da345d"
shallow_clone = true
[build]
template = "custom"

View File

@ -1,8 +1,10 @@
#TODO not compiled or tested
[source]
git = "https://github.com/sozu-proxy/sozu"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages sozu
"""

View File

@ -1,5 +1,6 @@
#TODO signal-hook crate error
[source]
git = "https://github.com/static-web-server/static-web-server"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,6 +1,7 @@
#TODO not compiled or tested
[source]
git = "https://github.com/grigio/network-monitor"
shallow_clone = true
[build]
template = "cargo"
dependencies = [

View File

@ -1,6 +1,7 @@
#TODO not compiled or tested
[source]
git = "https://github.com/domcyrus/rustnet"
shallow_clone = true
[build]
template = "cargo"
dependencies = [

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/theopfr/somo"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,11 +1,13 @@
#TODO pwd-grp crate error
[source]
git = "https://gitlab.torproject.org/tpo/core/arti"
shallow_clone = true
[build]
template = "custom"
dependencies = [
"openssl1",
"openssl3",
]
script = """
DYNAMIC_INIT
cookbook_cargo_packages arti
"""

View File

@ -2,11 +2,12 @@
# build instructions: https://i2pd.readthedocs.io/en/latest/devs/building/unix/
[source]
git = "https://github.com/PurpleI2P/i2pd"
rev = "beffdb9fe175a93164bd88ee0fafe1a22595ed15"
rev = "2.59.0"
shallow_clone = true
[build]
template = "cmake"
dependencies = [
"boost",
"openssl1",
"openssl3",
"zlib",
]

View File

@ -0,0 +1,24 @@
mk_add_options MOZ_OBJDIR=COOKBOOK_BUILD
ac_add_options --target=TARGET
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-audio-backends
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-dbus
ac_add_options --disable-gecko-profiler
ac_add_options --disable-profiling
ac_add_options --disable-dmd # dark matter detector
ac_add_options --without-wasm-sandboxed-libraries # need clang wasi
# TODO: cairo-gtk3-x11-wayland or separate cairo-gtk3-wayland-only
ac_add_options --enable-default-toolkit=cairo-gtk3-x11-only
ac_add_options --enable-bootstrap=-clang # only use our clang
ac_add_options --enable-optimize
ac_add_options --with-system-nspr
ac_add_options --with-gl-provider=EGL
export MOZ_REQUIRE_SIGNING=
export MOZ_TELEMETRY_REPORTING=
export CC="TARGET_CC"
export CXX="TARGET_CXX"

View File

@ -1,23 +1,69 @@
#TODO probably wrong template, see see https://firefox-source-docs.mozilla.org/setup/linux_build.html#build
#TODO patches for quinn-udp crate, switch into git fork
# mach: https://firefox-source-docs.mozilla.org/setup/linux_build.html
[source]
tar = "https://dist.torproject.org/torbrowser/13.0.1/src-firefox-tor-browser-115.4.0esr-13.0-1-build2.tar.xz"
tar = "https://dist.torproject.org/torbrowser/15.0.6/src-firefox-tor-browser-140.7.1esr-15.0-1-build1.tar.xz"
[build]
template = "configure"
template = "custom"
dependencies = [
"fontconfig",
"atk",
"cairo",
# "fontconfig",
# "atk",
# "cairo",
"dbus",
"libffi",
"freetype2",
"gdk-pixbuf",
"glib",
# "libffi",
# "freetype2",
# "gdk-pixbuf",
# "glib",
"gtk3",
"pango",
"sqlite3",
"nss-nspr",
"startup-notification",
"zlib",
"libvpx",
"ffmpeg6",
"libxkbcommon-x11",
"libice",
"mesa-x11",
"x11proto-kb",
"xcb-proto",
"xextproto",
"nspr",
"libxrandr",
"libsm",
# TODO: Should separate clang library and runtime
"clang21"
# "sqlite3",
# "nss-nspr",
# "startup-notification",
# "zlib",
# "ffmpeg6",
# "expat",
# "libepoxy",
# "pipewire",
]
dev-dependencies = [
"host:llvm21",
"host:llvm21.dev",
"host:llvm21.runtime",
"host:clang21",
]
script = """
DYNAMIC_INIT
cat ${COOKBOOK_RECIPE}/mozconfig > mozconfig
sed -i "s|COOKBOOK_BUILD|${COOKBOOK_BUILD}|g" mozconfig
sed -i "s|TARGET_CC|${CC}|g" mozconfig
sed -i "s|TARGET_CXX|${CXX}|g" mozconfig
sed -i "s|TARGET|${TARGET}|g" mozconfig
export MOZCONFIG="${COOKBOOK_BUILD}/mozconfig"
export PYTHONDONTWRITEBYTECODE=1
unset CC_WRAPPER
if [[ -z "$CI" ]]; then export MACH_NO_TERMINAL_FOOTER=1; fi;
# clang-sys specifics
PREFIX_INCLUDE="$COOKBOOK_HOST_SYSROOT/$TARGET/include"
export CLANGFLAGS="-I $PREFIX_INCLUDE/c++/13.2.0 -I $PREFIX_INCLUDE/c++/13.2.0/$TARGET -I $PREFIX_INCLUDE/c++/13.2.0/backward"
export CLANGFLAGS="$CLANGFLAGS -I $PREFIX_INCLUDE -I $COOKBOOK_SYSROOT/lib/clang/21/include -D__redox__"
export BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_redox="-target x86_64-unknown-redox -nostdinc $CLANGFLAGS"
export LLVM_CONFIG_PATH="$COOKBOOK_TOOLCHAIN/bin/llvm-config"
# Don't poison the stage1 compiler (host -> host)
unset AR AS CC CXX LD LDFLAGS NM OBJCOPY OBJDUMP RANLIB READELF RUSTFLAGS STRIP
(cd ${COOKBOOK_SOURCE} && ./mach build)
rsync -a ./dist ${COOKBOOK_STAGE}
"""

View File

@ -1,10 +1,10 @@
#TODO Make the libevent works
#TODO not compiled or tested
[source]
tar = "https://dist.torproject.org/tor-0.4.8.9.tar.gz"
[build]
template = "configure"
dependencies = [
"libevent",
"openssl1",
"openssl3",
"zlib",
]

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/n0-computer/dumbpipe"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,8 +1,10 @@
#TODO not compiled or tested
[source]
git = "https://github.com/EasyTier/EasyTier"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages easytier
"""

View File

@ -1,8 +1,10 @@
#TODO not compiled or tested
[source]
git = "https://github.com/OkuBrowser/oku"
shallow_clone = true
script = "./prebuild.sh"
[build]
template = "custom"
template = "cargo"
dependencies = [
"gtk4",
"glib",
@ -10,7 +12,3 @@ dependencies = [
"webkitgtk4",
"libfuse3",
]
script = """
./prebuild.sh
cookbook_cargo
"""

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/abdoufermat5/bayesian-ssh"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/doEggi/do-ssh"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,9 +1,11 @@
#TODO not compiled or tested
[source]
git = "https://github.com/ethersync/ethersync"
shallow_clone = true
[build]
template = "custom"
script = """
COOKBOOK_SOURCE="${COOKBOOK_SOURCE}/daemon"
DYNAMIC_INIT
cookbook_cargo
"""

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/rustonbsd/iroh-ssh"
shallow_clone = true
[build]
template = "cargo"

View File

@ -3,6 +3,7 @@
[source]
git = "https://github.com/mkiol/Jupii"
rev = "ed80ca0ea29081a2bff038faf4884e3acabb14b7"
shallow_clone = true
[build]
template = "cmake"
cmakeflags = [

View File

@ -4,10 +4,11 @@
[source]
git = "https://gitlab.com/Remmina/Remmina"
rev = "2a455eadd6462457d08c2d066c5c245e0dee3bf9"
shallow_clone = true
[build]
template = "cmake"
dependencies = [
"openssl1",
"openssl3",
"libxml2",
"gstreamer",
"ffmpeg6",

View File

@ -1,8 +1,10 @@
#TODO not compiled or tested
[source]
git = "https://github.com/cea-sec/sanzu"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages sanzu
"""

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/mateolafalce/shared"
shallow_clone = true
[build]
template = "cargo"

View File

@ -2,5 +2,8 @@
# require nerdfonts
[source]
git = "https://github.com/CompeyDev/ssh-portfolio"
shallow_clone = true
[build]
template = "cargo"
[package]
dependencies = ["nerd-fonts"]

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/julianbuettner/zeco"
shallow_clone = true
[build]
template = "cargo"

View File

@ -3,5 +3,6 @@
[source]
git = "https://github.com/ZingyTomato/NetPeek"
rev = "v0.2.4"
shallow_clone = true
[build]
template = "meson"

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/izya4ka/yadb"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,8 +1,10 @@
#TODO not compiled or tested
[source]
git = "https://github.com/manforowicz/gday"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages gday gday_server
"""

View File

@ -1,11 +1,13 @@
#TODO not compiled or tested
[source]
git = "https://github.com/czerwonk/hakanai"
shallow_clone = true
[build]
template = "custom"
dependencies = [
"openssl3"
]
script = """
DYNAMIC_INIT
cookbook_cargo_packages hakanai hakanai-server
"""

View File

@ -1,6 +1,7 @@
#TODO make GTK4 work
#TODO not compiled or tested
[source]
git = "https://github.com/feschber/lan-mouse"
shallow_clone = true
[build]
template = "cargo"
dependencies = [

View File

@ -1,8 +1,10 @@
#TODO async-tar and rustix crates error
[source]
git = "https://github.com/magic-wormhole/magic-wormhole.rs"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages magic-wormhole
"""

View File

@ -1,5 +1,7 @@
#TODO not compiled or tested
[source]
git = "https://github.com/szabodanika/microbin"
shallow_clone = true
[build]
DYNAMIC_INIT
template = "cargo"

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/CramBL/quick-file-transfer"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/n0-computer/sendme"
shallow_clone = true
[build]
template = "cargo"

View File

@ -2,6 +2,11 @@
# build instructions: https://gitlab.gnome.org/World/warp#meson
[source]
git = "https://gitlab.gnome.org/World/warp"
rev = "1daa60691aa1a697acaff55450dcccb085023fc7"
shallow_clone = true
[build]
template = "meson"
dependencies = [
"glib",
"gtk4",
"libadwaita",
]

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/akiomik/nostui"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/ck-zhang/reddix"
shallow_clone = true
[build]
template = "cargo"

View File

@ -2,6 +2,7 @@
[source]
git = "https://gitlab.redox-os.org/tfinnegan937/dropbear.git"
rev = "4c6828d39f988712cf4d2a64c7acf15d76f24aa9"
shallow_clone = true
[build]
template = "configure"
configureflags = [
@ -14,6 +15,6 @@ configureflags = [
"--disable-wtmpx",
]
dependencies = [
"openssl1",
"openssl3",
"zlib"
]

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/Julien-R44/fast-ssh"
shallow_clone = true
[build]
template = "cargo"

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/JayanAXHF/filessh"
shallow_clone = true
[build]
template = "cargo"

View File

@ -2,13 +2,9 @@
[source]
tar = "https://github.com/mobile-shell/mosh/releases/download/mosh-1.4.0/mosh-1.4.0.tar.gz"
[build]
template = "custom"
template = "configure"
dependencies = [
"openssl1",
"openssl3",
"ncurses",
"zlib",
]
script = """
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/ncurses"
cookbook_configure
"""

View File

@ -1,8 +1,9 @@
[source]
git = "https://github.com/jackpot51/russh"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_examples client_exec_simple client_exec_interactive sftp_client sftp_server
"""

View File

@ -2,12 +2,13 @@
[source]
git = "https://github.com/mfat/sshpilot"
rev = "v4.3.8"
shallow_clone = true
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/ssh-pilot-dir
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/usr/bin/ssh-pilot-dir"
echo "#!/usr/bin/env sh \n python3 /usr/bin/ssh-pilot-dir/run.py" > "${COOKBOOK_STAGE}"/usr/bin/ssh-pilot
echo "python3 /usr/bin/ssh-pilot-dir/run.py" > "${COOKBOOK_STAGE}"/usr/bin/ssh-pilot
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/ssh-pilot
"""
[package]

View File

@ -1,5 +1,6 @@
#TODO compiled but not tested
[source]
git = "https://github.com/quantumsheep/sshs"
shallow_clone = true
[build]
template = "cargo"

View File

@ -2,8 +2,10 @@
#TODO require NodeJS and NPM
[source]
git = "https://github.com/ekzhang/sshx"
shallow_clone = true
[build]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_cargo_packages sshx
"""

View File

@ -1,5 +1,6 @@
#TODO not compiled or tested
[source]
git = "https://github.com/caelansar/termirs"
shallow_clone = true
[build]
template = "cargo"