added duf and nginx and some refactor

This commit is contained in:
wt
2026-02-28 00:55:00 +07:00
parent 5da3185a36
commit 6a0c6c50f3
28 changed files with 146 additions and 146 deletions
+12 -13
View File
@@ -6,29 +6,28 @@
. ./scripts/zlib.sh
dropbear() {
if [ ! -d $build/zlib ]; then
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_2025.89.tar.gz
check $? "Extract dropbear"
cd dropbear-DROPBEAR_2025.89
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
--with-zlib=$build/rootfs/usr/include
# CC=${CROSS_COMPILE}gcc ./configure --prefix=/usr --shared
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"
# [ "$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
}