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
+4 -11
View File
@@ -10,27 +10,20 @@ uclibc() {
pkgver=${UCLIBC_VERSION}
printf "$UGREEN** Building ${pkgname}\n$RESET"
[ -d $build/${pkgname} ] && return 0
mkdir -p $build/${pkgname} # &>> $fulllogfile
mkdir -p $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz # &>> $fulllogfile
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
check $? "Extract ${pkgname}"
cd ${pkgname}-${pkgver}
cp -rv $UCLIBC_CONFIG_FILE .config
sed -i -e "s/KERNEL_HEADERS=/KERNEL_HEADERS=\"..\/..\/kernel-headers\/linux-$KERNEL_VERSION\/usr\/include\"/g" .config
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure ${pkgname}"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build ${pkgname}"
sed -i 's/constexpr/is_constant/g' extra/scripts/unifdef.c
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- DESTDIR=$rootfspath install # &>> $fulllogfile
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- DESTDIR=$rootfspath install
check $? "Install ${pkgname} to rootfs"
# cd $rootfspath
# find -name \*.a -delete # &>> $fulllogfile
# find -name \*.o -delete
# rm -v $rootfspath/usr/lib/libc.so
# ${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/* $rootfspath/usr/bin/* # &>> $fulllogfile $rootfspath/usr/lib/*
# rm -rv $rootfspath/usr/include
# cd $root
check $? "Build and install ${pkgname}"
}
#-----------------------------------------------------------