This commit is contained in:
wt
2026-02-26 13:40:18 +07:00
parent ac7cb03d8e
commit 446ae02775
28 changed files with 140 additions and 86 deletions
+7 -7
View File
@@ -10,25 +10,25 @@ dropbear() {
zlib
fi
printf "$GREEN** Building and installing dropbear\n$RESET"
[ -d $build/dropbear ] && return 0
# [ -d $build/dropbear ] && return 0
mkdir $build/dropbear
cd $build/dropbear
tar -xvf $root/downloads/DROPBEAR_2024.86.tar.gz
tar -xvf $root/downloads/DROPBEAR_2025.89.tar.gz
check $? "Extract dropbear"
cd dropbear-DROPBEAR_2024.86
cd dropbear-DROPBEAR_2025.89
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--with-zlib=$build/rootfs/usr
--with-zlib=$build/rootfs/usr/include
# CC=${CROSS_COMPILE}gcc ./configure --prefix=/usr --shared
check $? "Configure dropbear"
make $makeflags
check $? "Build dropbear"
make DESTDIR=$rootfspath install
check $? "Installing to rootfs dropbear"
[ "$SFTP_SERVER_ENABLE" = "n" ] && rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/*
# [ "$SFTP_SERVER_ENABLE" = "n" ] && rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
# ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/*
mkdir -pv $build/rootfs/etc/dropbear
# check $? "Installing to rootfs zlib"
rm -rvf $rootfspath/usr/share/man
# rm -rvf $rootfspath/usr/share/man
}