added lrzsz and updated finit_init download paths

This commit is contained in:
wt
2026-02-01 05:36:20 +07:00
parent f0cad643d4
commit 0379b1dbe0
8 changed files with 64 additions and 3 deletions
+1
View File
@@ -59,4 +59,5 @@ export KO8821AU_ENABLE=n
export FINIT_INIT_ENABLE=y
export LIBSQLITE3_ENABLE=n
export LM_SENSORS_ENABLE=n
export LRZSZ_ENABLE=n
#--------------------------------------
+1
View File
@@ -61,4 +61,5 @@ export KO8821AU_ENABLE=n
export FINIT_INIT_ENABLE=y
export LIBSQLITE3_ENABLE=n
export LM_SENSORS_ENABLE=n
export LRZSZ_ENABLE=n
#--------------------------------------
+1
View File
@@ -49,4 +49,5 @@ export OPENSSL_ENABLE=n
export FINIT_INIT_ENABLE=y
export LIBSQLITE3_ENABLE=n
export LM_SENSORS_ENABLE=n
export LRZSZ_ENABLE=n
#--------------------------------------
+4
View File
@@ -20,6 +20,7 @@
. ./scripts/libsqlite3.sh
. ./scripts/lm_sensors.sh
. ./scripts/wpa_supplicant.sh
. ./scripts/lrzsz.sh
case $1 in
build)
@@ -80,6 +81,9 @@ case $1 in
wpa_supplicant)
build_wpa_supplicant
;;
lrzsz)
lrzsz-build
;;
*)
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
exit 1
+3 -3
View File
@@ -8,11 +8,11 @@ finit_init() {
printf "$GREEN** Building and installing finit\n$RESET"
mkdir -pv $build/finit
cd $build/finit
git clone https://github.com/troglobit/libite
git clone https://gitea.home.com:3000/TolaMironcenko/libite.git
check $? "Download libite"
git clone https://github.com/troglobit/libuev
git clone https://gitea.home.com:3000/TolaMironcenko/libuev.git
check $? "Download libuev"
git clone https://github.com/troglobit/finit
git clone https://gitea.home.com:3000/TolaMironcenko/finit.git
check $? "Download finit"
cd libite
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
lrzsz-build() {
pkgname=lrzsz
pkgver=0.12.20
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
mkdir $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
check $? "Extract ${pkgname}"
cd ${pkgname}-${pkgver}
CC=${CROSS_COMPILE}-gcc AR=${CROSS_COMPILE}-ar ./configure --prefix=/usr --host=${CROSS_COMPILE}-
check $? "Configure ${pkgname}"
make $makeflags
check $? "Build ${pkgname}"
make DESTDIR=$rootfspath install
# rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/{lsx,lrb,lrx,lrz,lsz,lsb}
check $? "Installing to rootfs ${pkgname}"
}
+28
View File
@@ -0,0 +1,28 @@
pkgname=lrzsz
pkgver=0.12.20
pkgrel=1
source="https://gitea.home.com:3000/api/packages/TolaMironcenko/generic/lrzsz/0.12.20/lrzsz-0.12.20.tar.gz"
deps="uClibc-ng-1.0.50-1"
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.gz
cd -
export srcdir=$srcdir/$pkgname-$pkgver
cd $srcdir
CC=${CROSS_COMPILE}-gcc AR=${CROSS_COMPILE}-ar ./configure --prefix=/usr --host=${CROSS_COMPILE}-
cd -
}
build() {
make -C $srcdir -j$(nproc)
}
package() {
make -C $srcdir DESTDIR=$pkgdir install
${CROSS_COMPILE}-strip --strip-unneeded $pkgdir/usr/bin/*
}
+2
View File
@@ -24,6 +24,7 @@
. ./scripts/libsqlite3.sh
. ./scripts/lm_sensors.sh
. ./scripts/wpa_supplicant.sh
. ./scripts/lrzsz.sh
#----------- Building rootfs ----------------------
rootfs() {
@@ -88,6 +89,7 @@ EOF
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
[ "$LIBSQLITE3_ENABLE" = "y"] && libsqlite3
[ "$LM_SENSORS_ENABLE" = "y" ] && lm_sensors
[ "$LRZSZ_ENABLE" = "y" ] && lrzsz-build
if [ ! -z "$DEFAULT_HOSTNAME" ]; then
echo "$DEFAULT_HOSTNAME" > $rootfspath/etc/hostname