/* * busybox — the multi-call binary: hundreds of applets in one binary * (ash, wget, ip, sed, grep, ... — the ISO's base userland). * * defconfig enables every applet. CONFIG_TC is force-disabled: the tc * applet references kernel-header constants (TCA_CBQ_*) that modern * kernels removed — a known busybox-vs-new-headers breakage. Everything * else builds clean. * * Install uses CONFIG_PREFIX (busybox's DESTDIR): the busybox binary * plus applet symlinks land in bin/ sbin/ usr/bin/ usr/sbin/. * The test suite needs a separate harness — check is omitted. */ package "busybox" { const version = "1.38.0" const source = "https://busybox.net/downloads/busybox-${version}.tar.bz2" sha256 = "34f9ea6ff8636f2c9241153b9114eefa9e65674a45318ae1ef95bb5f31c53bb2" license = "GPL-2.0-only" provides = ["busybox", "sh"] depends = [ { name = "make" }, ] prepare { curl -L -o busybox-${version}.tar.bz2 ${source} echo "34f9ea6ff8636f2c9241153b9114eefa9e65674a45318ae1ef95bb5f31c53bb2 busybox-${version}.tar.bz2" | sha256sum -c - tar xf busybox-${version}.tar.bz2 --strip-components=1 } build { make defconfig sed -i 's/CONFIG_TC=y/CONFIG_TC=n/' .config make -j${jobs} } install { make install CONFIG_PREFIX=${destdir} } }