50b731f1b7
Derivative of Redox OS (https://www.redox-os.org) adding: - AMD GPU driver (amdgpu) via LinuxKPI compat layer - ext4 filesystem support (ext4d scheme daemon) - ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG) - Custom branding (hostname, os-release, boot identity) Build system is full upstream Redox with RBOS overlay in local/. Patches for kernel, base, and relibc are symlinked from local/patches/ and protected from make clean/distclean. Custom recipes live in local/recipes/ with symlinks into the recipes/ search path. Build: make all CONFIG_NAME=redbear-full Sync: ./local/scripts/sync-upstream.sh
38 lines
1.1 KiB
TOML
38 lines
1.1 KiB
TOML
#TODO lack of resolv.h, expect dns not working
|
|
#TODO lack of utmpx.h, expect no way to track login in sshd
|
|
[source]
|
|
tar = "https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz"
|
|
patches = [
|
|
"redox.patch",
|
|
]
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"openssl3",
|
|
"zlib",
|
|
"zstd",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
COOKBOOK_CONFIGURE_FLAGS+=(
|
|
--disable-strip
|
|
--sysconfdir=/etc/ssh
|
|
)
|
|
export CFLAGS+=" -DSYSTEMD_NOTIFY=1"
|
|
cookbook_configure
|
|
mv "${COOKBOOK_STAGE}"/usr/sbin/sshd "${COOKBOOK_STAGE}"/usr/bin/sshd
|
|
rmdir "${COOKBOOK_STAGE}"/usr/sbin
|
|
|
|
# Extracted from `make host-key-force`
|
|
# TODO: Postscript to generate this
|
|
# ssh-keygen -t dsa -f "${COOKBOOK_STAGE}"/etc/ssh/ssh_host_dsa_key -N ""
|
|
# ssh-keygen -t rsa -f "${COOKBOOK_STAGE}"/etc/ssh/ssh_host_rsa_key -N ""
|
|
# ssh-keygen -t ed25519 -f "${COOKBOOK_STAGE}"/etc/ssh/ssh_host_ed25519_key -N ""
|
|
# ssh-keygen -t ecdsa -f "${COOKBOOK_STAGE}"/etc/ssh/ssh_host_ecdsa_key -N ""
|
|
|
|
CONFIG_FILE="${COOKBOOK_STAGE}"/etc/ssh/sshd_config
|
|
|
|
# ipv6 is not working yet
|
|
sed -i "s/#AddressFamily any/AddressFamily inet/g" "${CONFIG_FILE}"
|
|
"""
|