From 7d609d0c3497ea4278f6158aa345f559ed70d56e Mon Sep 17 00:00:00 2001 From: Ribbon Date: Tue, 17 Feb 2026 22:34:00 -0300 Subject: [PATCH] Improve many networking recipes --- recipes/wip/net/download/wget2/recipe.toml | 26 ++++--- recipes/wip/net/download/yaydl/recipe.toml | 3 +- .../wip/net/download/youtube-tui/recipe.toml | 5 +- recipes/wip/net/download/yt-dlp/recipe.toml | 7 +- recipes/wip/net/email/neverest/recipe.toml | 1 + .../wip/net/ftp/filezilla-client/recipe.toml | 2 +- .../wip/net/ftp/filezilla-server/recipe.toml | 2 +- recipes/wip/net/ftp/unftp/recipe.toml | 1 + recipes/wip/net/gemini/lagrange/recipe.toml | 7 +- recipes/wip/net/http/apache-httpd/recipe.toml | 11 +-- recipes/wip/net/http/easyp/recipe.toml | 6 +- recipes/wip/net/http/ferron/recipe.toml | 2 + .../wip/net/http/http-server-rs/recipe.toml | 9 +-- recipes/wip/net/http/miniserve/recipe.toml | 8 +- recipes/wip/net/http/quark/recipe.toml | 3 +- recipes/wip/net/http/sozu/recipe.toml | 2 + recipes/wip/net/http/sws/recipe.toml | 1 + .../monitor/network-monitor-rs/recipe.toml | 1 + recipes/wip/net/monitor/rustnet/recipe.toml | 1 + recipes/wip/net/monitor/somo/recipe.toml | 1 + .../wip/net/onion-routing/arti/recipe.toml | 4 +- .../wip/net/onion-routing/i2pd/recipe.toml | 5 +- .../net/onion-routing/tor-browser/mozconfig | 24 ++++++ .../net/onion-routing/tor-browser/recipe.toml | 78 +++++++++++++++---- recipes/wip/net/onion-routing/tor/recipe.toml | 4 +- recipes/wip/net/p2p/dumbpipe/recipe.toml | 1 + recipes/wip/net/p2p/easytier/recipe.toml | 2 + recipes/wip/net/p2p/oku/recipe.toml | 8 +- .../wip/net/remote/bayesian-ssh/recipe.toml | 1 + recipes/wip/net/remote/do-ssh/recipe.toml | 1 + recipes/wip/net/remote/ethersync/recipe.toml | 2 + recipes/wip/net/remote/iroh-ssh/recipe.toml | 1 + recipes/wip/net/remote/jupii/recipe.toml | 1 + recipes/wip/net/remote/remmina/recipe.toml | 3 +- recipes/wip/net/remote/sanzu/recipe.toml | 2 + recipes/wip/net/remote/shared/recipe.toml | 1 + .../wip/net/remote/ssh-portfolio/recipe.toml | 3 + recipes/wip/net/remote/zeco/recipe.toml | 1 + recipes/wip/net/scan/netpeek/recipe.toml | 1 + recipes/wip/net/security/yadb/recipe.toml | 1 + recipes/wip/net/sharing/gday/recipe.toml | 2 + recipes/wip/net/sharing/hakanai/recipe.toml | 2 + recipes/wip/net/sharing/lan-mouse/recipe.toml | 3 +- .../net/sharing/magic-wormhole-rs/recipe.toml | 2 + recipes/wip/net/sharing/microbin/recipe.toml | 2 + recipes/wip/net/sharing/qft/recipe.toml | 1 + recipes/wip/net/sharing/sendme/recipe.toml | 1 + recipes/wip/net/sharing/warp/recipe.toml | 7 +- recipes/wip/net/social/nostui/recipe.toml | 1 + recipes/wip/net/social/reddix/recipe.toml | 1 + recipes/wip/net/ssh/dropbear/recipe.toml | 3 +- recipes/wip/net/ssh/fastssh/recipe.toml | 1 + recipes/wip/net/ssh/filessh/recipe.toml | 1 + recipes/wip/net/ssh/mosh/recipe.toml | 8 +- recipes/wip/net/ssh/russh/recipe.toml | 3 +- recipes/wip/net/ssh/ssh-pilot/recipe.toml | 3 +- recipes/wip/net/ssh/sshs/recipe.toml | 1 + recipes/wip/net/ssh/sshx/recipe.toml | 2 + recipes/wip/net/ssh/termirs/recipe.toml | 1 + 59 files changed, 205 insertions(+), 83 deletions(-) create mode 100644 recipes/wip/net/onion-routing/tor-browser/mozconfig diff --git a/recipes/wip/net/download/wget2/recipe.toml b/recipes/wip/net/download/wget2/recipe.toml index 74c362eca..c77f16683 100644 --- a/recipes/wip/net/download/wget2/recipe.toml +++ b/recipes/wip/net/download/wget2/recipe.toml @@ -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", +# ] diff --git a/recipes/wip/net/download/yaydl/recipe.toml b/recipes/wip/net/download/yaydl/recipe.toml index df880e5ff..d227a0926 100644 --- a/recipes/wip/net/download/yaydl/recipe.toml +++ b/recipes/wip/net/download/yaydl/recipe.toml @@ -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", ] diff --git a/recipes/wip/net/download/youtube-tui/recipe.toml b/recipes/wip/net/download/youtube-tui/recipe.toml index 5306f25dc..8470347a9 100644 --- a/recipes/wip/net/download/youtube-tui/recipe.toml +++ b/recipes/wip/net/download/youtube-tui/recipe.toml @@ -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", ] diff --git a/recipes/wip/net/download/yt-dlp/recipe.toml b/recipes/wip/net/download/yt-dlp/recipe.toml index fcf7cba36..9e5b7ac42 100644 --- a/recipes/wip/net/download/yt-dlp/recipe.toml +++ b/recipes/wip/net/download/yt-dlp/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/email/neverest/recipe.toml b/recipes/wip/net/email/neverest/recipe.toml index 7562958c8..6286c6151 100644 --- a/recipes/wip/net/email/neverest/recipe.toml +++ b/recipes/wip/net/email/neverest/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/pimalaya/neverest" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/ftp/filezilla-client/recipe.toml b/recipes/wip/net/ftp/filezilla-client/recipe.toml index 34454405c..5543aabee 100644 --- a/recipes/wip/net/ftp/filezilla-client/recipe.toml +++ b/recipes/wip/net/ftp/filezilla-client/recipe.toml @@ -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] diff --git a/recipes/wip/net/ftp/filezilla-server/recipe.toml b/recipes/wip/net/ftp/filezilla-server/recipe.toml index f2f7920be..a4c13097e 100644 --- a/recipes/wip/net/ftp/filezilla-server/recipe.toml +++ b/recipes/wip/net/ftp/filezilla-server/recipe.toml @@ -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] diff --git a/recipes/wip/net/ftp/unftp/recipe.toml b/recipes/wip/net/ftp/unftp/recipe.toml index b7c4fcf2b..5fd51394c 100644 --- a/recipes/wip/net/ftp/unftp/recipe.toml +++ b/recipes/wip/net/ftp/unftp/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/bolcom/unFTP" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/gemini/lagrange/recipe.toml b/recipes/wip/net/gemini/lagrange/recipe.toml index db5f9d199..f20d12200 100644 --- a/recipes/wip/net/gemini/lagrange/recipe.toml +++ b/recipes/wip/net/gemini/lagrange/recipe.toml @@ -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", diff --git a/recipes/wip/net/http/apache-httpd/recipe.toml b/recipes/wip/net/http/apache-httpd/recipe.toml index f75c1f022..49ede8b7f 100644 --- a/recipes/wip/net/http/apache-httpd/recipe.toml +++ b/recipes/wip/net/http/apache-httpd/recipe.toml @@ -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 ) diff --git a/recipes/wip/net/http/easyp/recipe.toml b/recipes/wip/net/http/easyp/recipe.toml index 12dfb7669..02d41cc2d 100644 --- a/recipes/wip/net/http/easyp/recipe.toml +++ b/recipes/wip/net/http/easyp/recipe.toml @@ -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" diff --git a/recipes/wip/net/http/ferron/recipe.toml b/recipes/wip/net/http/ferron/recipe.toml index 143aae515..a0595f529 100644 --- a/recipes/wip/net/http/ferron/recipe.toml +++ b/recipes/wip/net/http/ferron/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/http/http-server-rs/recipe.toml b/recipes/wip/net/http/http-server-rs/recipe.toml index c537e0c56..368c4a33d 100644 --- a/recipes/wip/net/http/http-server-rs/recipe.toml +++ b/recipes/wip/net/http/http-server-rs/recipe.toml @@ -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 diff --git a/recipes/wip/net/http/miniserve/recipe.toml b/recipes/wip/net/http/miniserve/recipe.toml index f5d958043..403578c4b 100644 --- a/recipes/wip/net/http/miniserve/recipe.toml +++ b/recipes/wip/net/http/miniserve/recipe.toml @@ -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" - diff --git a/recipes/wip/net/http/quark/recipe.toml b/recipes/wip/net/http/quark/recipe.toml index cbc312aaa..cfd936f6b 100644 --- a/recipes/wip/net/http/quark/recipe.toml +++ b/recipes/wip/net/http/quark/recipe.toml @@ -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" diff --git a/recipes/wip/net/http/sozu/recipe.toml b/recipes/wip/net/http/sozu/recipe.toml index bad5b1033..a7f0b5870 100644 --- a/recipes/wip/net/http/sozu/recipe.toml +++ b/recipes/wip/net/http/sozu/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/http/sws/recipe.toml b/recipes/wip/net/http/sws/recipe.toml index 4530f9e4f..044bb691b 100644 --- a/recipes/wip/net/http/sws/recipe.toml +++ b/recipes/wip/net/http/sws/recipe.toml @@ -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" diff --git a/recipes/wip/net/monitor/network-monitor-rs/recipe.toml b/recipes/wip/net/monitor/network-monitor-rs/recipe.toml index fc3527ed2..055f933f6 100644 --- a/recipes/wip/net/monitor/network-monitor-rs/recipe.toml +++ b/recipes/wip/net/monitor/network-monitor-rs/recipe.toml @@ -1,6 +1,7 @@ #TODO not compiled or tested [source] git = "https://github.com/grigio/network-monitor" +shallow_clone = true [build] template = "cargo" dependencies = [ diff --git a/recipes/wip/net/monitor/rustnet/recipe.toml b/recipes/wip/net/monitor/rustnet/recipe.toml index 6ab852ff7..f1050c91b 100644 --- a/recipes/wip/net/monitor/rustnet/recipe.toml +++ b/recipes/wip/net/monitor/rustnet/recipe.toml @@ -1,6 +1,7 @@ #TODO not compiled or tested [source] git = "https://github.com/domcyrus/rustnet" +shallow_clone = true [build] template = "cargo" dependencies = [ diff --git a/recipes/wip/net/monitor/somo/recipe.toml b/recipes/wip/net/monitor/somo/recipe.toml index 51bb05c67..731638705 100644 --- a/recipes/wip/net/monitor/somo/recipe.toml +++ b/recipes/wip/net/monitor/somo/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/theopfr/somo" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/onion-routing/arti/recipe.toml b/recipes/wip/net/onion-routing/arti/recipe.toml index b36e3191e..16f1c8813 100644 --- a/recipes/wip/net/onion-routing/arti/recipe.toml +++ b/recipes/wip/net/onion-routing/arti/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/onion-routing/i2pd/recipe.toml b/recipes/wip/net/onion-routing/i2pd/recipe.toml index 6056125cc..a36851fb5 100644 --- a/recipes/wip/net/onion-routing/i2pd/recipe.toml +++ b/recipes/wip/net/onion-routing/i2pd/recipe.toml @@ -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", ] diff --git a/recipes/wip/net/onion-routing/tor-browser/mozconfig b/recipes/wip/net/onion-routing/tor-browser/mozconfig new file mode 100644 index 000000000..d5e1c48da --- /dev/null +++ b/recipes/wip/net/onion-routing/tor-browser/mozconfig @@ -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" diff --git a/recipes/wip/net/onion-routing/tor-browser/recipe.toml b/recipes/wip/net/onion-routing/tor-browser/recipe.toml index 219acd693..63243963a 100644 --- a/recipes/wip/net/onion-routing/tor-browser/recipe.toml +++ b/recipes/wip/net/onion-routing/tor-browser/recipe.toml @@ -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} +""" diff --git a/recipes/wip/net/onion-routing/tor/recipe.toml b/recipes/wip/net/onion-routing/tor/recipe.toml index fb69580bc..d4cb0e5ab 100644 --- a/recipes/wip/net/onion-routing/tor/recipe.toml +++ b/recipes/wip/net/onion-routing/tor/recipe.toml @@ -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", ] diff --git a/recipes/wip/net/p2p/dumbpipe/recipe.toml b/recipes/wip/net/p2p/dumbpipe/recipe.toml index 4ae3400fc..ab2c57989 100644 --- a/recipes/wip/net/p2p/dumbpipe/recipe.toml +++ b/recipes/wip/net/p2p/dumbpipe/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/n0-computer/dumbpipe" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/p2p/easytier/recipe.toml b/recipes/wip/net/p2p/easytier/recipe.toml index 9f4a94387..1c05b5499 100644 --- a/recipes/wip/net/p2p/easytier/recipe.toml +++ b/recipes/wip/net/p2p/easytier/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/p2p/oku/recipe.toml b/recipes/wip/net/p2p/oku/recipe.toml index 7de458152..fa01d77e8 100644 --- a/recipes/wip/net/p2p/oku/recipe.toml +++ b/recipes/wip/net/p2p/oku/recipe.toml @@ -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 -""" diff --git a/recipes/wip/net/remote/bayesian-ssh/recipe.toml b/recipes/wip/net/remote/bayesian-ssh/recipe.toml index 2b0c18fcf..1c72be8c3 100644 --- a/recipes/wip/net/remote/bayesian-ssh/recipe.toml +++ b/recipes/wip/net/remote/bayesian-ssh/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/abdoufermat5/bayesian-ssh" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/remote/do-ssh/recipe.toml b/recipes/wip/net/remote/do-ssh/recipe.toml index 41632fc5e..4c5484491 100644 --- a/recipes/wip/net/remote/do-ssh/recipe.toml +++ b/recipes/wip/net/remote/do-ssh/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/doEggi/do-ssh" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/remote/ethersync/recipe.toml b/recipes/wip/net/remote/ethersync/recipe.toml index c24a3c049..2c566aa4b 100644 --- a/recipes/wip/net/remote/ethersync/recipe.toml +++ b/recipes/wip/net/remote/ethersync/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/remote/iroh-ssh/recipe.toml b/recipes/wip/net/remote/iroh-ssh/recipe.toml index 3af3dc0f1..ffb715fd9 100644 --- a/recipes/wip/net/remote/iroh-ssh/recipe.toml +++ b/recipes/wip/net/remote/iroh-ssh/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/rustonbsd/iroh-ssh" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/remote/jupii/recipe.toml b/recipes/wip/net/remote/jupii/recipe.toml index c93e3437e..17a342539 100644 --- a/recipes/wip/net/remote/jupii/recipe.toml +++ b/recipes/wip/net/remote/jupii/recipe.toml @@ -3,6 +3,7 @@ [source] git = "https://github.com/mkiol/Jupii" rev = "ed80ca0ea29081a2bff038faf4884e3acabb14b7" +shallow_clone = true [build] template = "cmake" cmakeflags = [ diff --git a/recipes/wip/net/remote/remmina/recipe.toml b/recipes/wip/net/remote/remmina/recipe.toml index 14605bd7d..41e2adeee 100644 --- a/recipes/wip/net/remote/remmina/recipe.toml +++ b/recipes/wip/net/remote/remmina/recipe.toml @@ -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", diff --git a/recipes/wip/net/remote/sanzu/recipe.toml b/recipes/wip/net/remote/sanzu/recipe.toml index 6c7dd71b9..cc8b1df1a 100644 --- a/recipes/wip/net/remote/sanzu/recipe.toml +++ b/recipes/wip/net/remote/sanzu/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/remote/shared/recipe.toml b/recipes/wip/net/remote/shared/recipe.toml index ed93e9f47..79cd1f2c0 100644 --- a/recipes/wip/net/remote/shared/recipe.toml +++ b/recipes/wip/net/remote/shared/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/mateolafalce/shared" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/remote/ssh-portfolio/recipe.toml b/recipes/wip/net/remote/ssh-portfolio/recipe.toml index 5babdd7c3..a5f0f5d10 100644 --- a/recipes/wip/net/remote/ssh-portfolio/recipe.toml +++ b/recipes/wip/net/remote/ssh-portfolio/recipe.toml @@ -2,5 +2,8 @@ # require nerdfonts [source] git = "https://github.com/CompeyDev/ssh-portfolio" +shallow_clone = true [build] template = "cargo" +[package] +dependencies = ["nerd-fonts"] diff --git a/recipes/wip/net/remote/zeco/recipe.toml b/recipes/wip/net/remote/zeco/recipe.toml index 8a4e04275..f1fde6559 100644 --- a/recipes/wip/net/remote/zeco/recipe.toml +++ b/recipes/wip/net/remote/zeco/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/julianbuettner/zeco" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/scan/netpeek/recipe.toml b/recipes/wip/net/scan/netpeek/recipe.toml index fc2334e38..e527bf45b 100644 --- a/recipes/wip/net/scan/netpeek/recipe.toml +++ b/recipes/wip/net/scan/netpeek/recipe.toml @@ -3,5 +3,6 @@ [source] git = "https://github.com/ZingyTomato/NetPeek" rev = "v0.2.4" +shallow_clone = true [build] template = "meson" diff --git a/recipes/wip/net/security/yadb/recipe.toml b/recipes/wip/net/security/yadb/recipe.toml index d8b9c989c..9e47c0a9b 100644 --- a/recipes/wip/net/security/yadb/recipe.toml +++ b/recipes/wip/net/security/yadb/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/izya4ka/yadb" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/sharing/gday/recipe.toml b/recipes/wip/net/sharing/gday/recipe.toml index 8d3a6b20f..7889e2775 100644 --- a/recipes/wip/net/sharing/gday/recipe.toml +++ b/recipes/wip/net/sharing/gday/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/sharing/hakanai/recipe.toml b/recipes/wip/net/sharing/hakanai/recipe.toml index ca4fdbab9..decad5f1c 100644 --- a/recipes/wip/net/sharing/hakanai/recipe.toml +++ b/recipes/wip/net/sharing/hakanai/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/sharing/lan-mouse/recipe.toml b/recipes/wip/net/sharing/lan-mouse/recipe.toml index 10f922d3a..498c844de 100644 --- a/recipes/wip/net/sharing/lan-mouse/recipe.toml +++ b/recipes/wip/net/sharing/lan-mouse/recipe.toml @@ -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 = [ diff --git a/recipes/wip/net/sharing/magic-wormhole-rs/recipe.toml b/recipes/wip/net/sharing/magic-wormhole-rs/recipe.toml index c79ab6288..20dd96316 100644 --- a/recipes/wip/net/sharing/magic-wormhole-rs/recipe.toml +++ b/recipes/wip/net/sharing/magic-wormhole-rs/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/sharing/microbin/recipe.toml b/recipes/wip/net/sharing/microbin/recipe.toml index 94ea7b122..5c383508b 100644 --- a/recipes/wip/net/sharing/microbin/recipe.toml +++ b/recipes/wip/net/sharing/microbin/recipe.toml @@ -1,5 +1,7 @@ #TODO not compiled or tested [source] git = "https://github.com/szabodanika/microbin" +shallow_clone = true [build] +DYNAMIC_INIT template = "cargo" diff --git a/recipes/wip/net/sharing/qft/recipe.toml b/recipes/wip/net/sharing/qft/recipe.toml index 6aeb4bab3..5e4bdde5e 100644 --- a/recipes/wip/net/sharing/qft/recipe.toml +++ b/recipes/wip/net/sharing/qft/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/CramBL/quick-file-transfer" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/sharing/sendme/recipe.toml b/recipes/wip/net/sharing/sendme/recipe.toml index e4162119a..a6e52d2d9 100644 --- a/recipes/wip/net/sharing/sendme/recipe.toml +++ b/recipes/wip/net/sharing/sendme/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/n0-computer/sendme" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/sharing/warp/recipe.toml b/recipes/wip/net/sharing/warp/recipe.toml index 797f8b4df..c3793f468 100644 --- a/recipes/wip/net/sharing/warp/recipe.toml +++ b/recipes/wip/net/sharing/warp/recipe.toml @@ -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", +] diff --git a/recipes/wip/net/social/nostui/recipe.toml b/recipes/wip/net/social/nostui/recipe.toml index f4677875c..aecb15efe 100644 --- a/recipes/wip/net/social/nostui/recipe.toml +++ b/recipes/wip/net/social/nostui/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/akiomik/nostui" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/social/reddix/recipe.toml b/recipes/wip/net/social/reddix/recipe.toml index 59406eee1..2ff1e267e 100644 --- a/recipes/wip/net/social/reddix/recipe.toml +++ b/recipes/wip/net/social/reddix/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/ck-zhang/reddix" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/ssh/dropbear/recipe.toml b/recipes/wip/net/ssh/dropbear/recipe.toml index fdffc6bd0..a1e68ecd2 100644 --- a/recipes/wip/net/ssh/dropbear/recipe.toml +++ b/recipes/wip/net/ssh/dropbear/recipe.toml @@ -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" ] diff --git a/recipes/wip/net/ssh/fastssh/recipe.toml b/recipes/wip/net/ssh/fastssh/recipe.toml index 88b911591..9560db75d 100644 --- a/recipes/wip/net/ssh/fastssh/recipe.toml +++ b/recipes/wip/net/ssh/fastssh/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/Julien-R44/fast-ssh" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/ssh/filessh/recipe.toml b/recipes/wip/net/ssh/filessh/recipe.toml index 0e6ec4b4f..fe594e08a 100644 --- a/recipes/wip/net/ssh/filessh/recipe.toml +++ b/recipes/wip/net/ssh/filessh/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/JayanAXHF/filessh" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/ssh/mosh/recipe.toml b/recipes/wip/net/ssh/mosh/recipe.toml index f5dcad4ff..901a204c9 100644 --- a/recipes/wip/net/ssh/mosh/recipe.toml +++ b/recipes/wip/net/ssh/mosh/recipe.toml @@ -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 -""" diff --git a/recipes/wip/net/ssh/russh/recipe.toml b/recipes/wip/net/ssh/russh/recipe.toml index 828f74717..d8f724678 100644 --- a/recipes/wip/net/ssh/russh/recipe.toml +++ b/recipes/wip/net/ssh/russh/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/ssh/ssh-pilot/recipe.toml b/recipes/wip/net/ssh/ssh-pilot/recipe.toml index 39bb4f0e3..ea9e5f401 100644 --- a/recipes/wip/net/ssh/ssh-pilot/recipe.toml +++ b/recipes/wip/net/ssh/ssh-pilot/recipe.toml @@ -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] diff --git a/recipes/wip/net/ssh/sshs/recipe.toml b/recipes/wip/net/ssh/sshs/recipe.toml index 4fa346343..09dea8c25 100644 --- a/recipes/wip/net/ssh/sshs/recipe.toml +++ b/recipes/wip/net/ssh/sshs/recipe.toml @@ -1,5 +1,6 @@ #TODO compiled but not tested [source] git = "https://github.com/quantumsheep/sshs" +shallow_clone = true [build] template = "cargo" diff --git a/recipes/wip/net/ssh/sshx/recipe.toml b/recipes/wip/net/ssh/sshx/recipe.toml index 4a752c857..2c1327c1b 100644 --- a/recipes/wip/net/ssh/sshx/recipe.toml +++ b/recipes/wip/net/ssh/sshx/recipe.toml @@ -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 """ diff --git a/recipes/wip/net/ssh/termirs/recipe.toml b/recipes/wip/net/ssh/termirs/recipe.toml index 0ebb4402a..6867fc293 100644 --- a/recipes/wip/net/ssh/termirs/recipe.toml +++ b/recipes/wip/net/ssh/termirs/recipe.toml @@ -1,5 +1,6 @@ #TODO not compiled or tested [source] git = "https://github.com/caelansar/termirs" +shallow_clone = true [build] template = "cargo"