#!/bin/bash . ./scripts/colors.sh . ./scripts/funcs.sh . ./scripts/config.sh . ./scripts/zlib.sh dropbear() { printf "$GREEN** Building and installing dropbear\n$RESET" [ -d $build/dropbear ] && return 0 mkdir $build/dropbear cd $build/dropbear tar -xf $root/downloads/DROPBEAR_2025.89.tar.gz check $? "Extract dropbear" cd dropbear-DROPBEAR_2025.89 if [ "${ZLIB_ENABLE}" = "n" ]; then ./configure \ --prefix=/usr \ --host=$CROSS_COMPILE \ --disable-zlib else ./configure \ --prefix=/usr \ --host=$CROSS_COMPILE \ --with-zlib=$build/rootfs/usr/include fi check $? "Configure dropbear" make $makeflags check $? "Build dropbear" make DESTDIR=$rootfspath install check $? "Installing to rootfs dropbear" mkdir -pv $build/rootfs/etc/dropbear }