added iana-etc
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
. ./scripts/uclibc.sh
|
. ./scripts/uclibc.sh
|
||||||
. ./scripts/bash.sh
|
. ./scripts/bash.sh
|
||||||
. ./scripts/mtd-utils.sh
|
. ./scripts/mtd-utils.sh
|
||||||
|
. ./scripts/iana-etc.sh
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
build)
|
build)
|
||||||
@@ -126,6 +127,9 @@ case $1 in
|
|||||||
mtd-utils)
|
mtd-utils)
|
||||||
mtd-utils
|
mtd-utils
|
||||||
;;
|
;;
|
||||||
|
iana-etc)
|
||||||
|
iana-etc
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. ./scripts/colors.sh
|
||||||
|
. ./scripts/funcs.sh
|
||||||
|
. ./scripts/config.sh
|
||||||
|
|
||||||
|
iana-etc() {
|
||||||
|
pkgname=iana-etc
|
||||||
|
pkgver=20260202
|
||||||
|
srcurl=https://github.com/Mic92/iana-etc/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz
|
||||||
|
print_info "** Building and installing ${pkgname}"
|
||||||
|
[ -d $build/${pkgname} ] && return 0
|
||||||
|
mkdir -p $build/${pkgname}
|
||||||
|
cd $build/${pkgname}
|
||||||
|
if [ ! -f $root/downloads/${pkgname}-${pkgver}.tar.gz ]; then
|
||||||
|
print_info "** Downloading $srcurl"
|
||||||
|
cd $root/downloads
|
||||||
|
wget $srcurl
|
||||||
|
check $? "download $srcurl"
|
||||||
|
cd -
|
||||||
|
fi
|
||||||
|
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||||
|
check $? "Extract ${pkgname}"
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
cp -v services protocols ${rootfspath}/etc
|
||||||
|
check $? "Installing to rootfs ${pkgname}"
|
||||||
|
}
|
||||||
+2
-1
@@ -30,6 +30,7 @@
|
|||||||
. ./scripts/nginx.sh
|
. ./scripts/nginx.sh
|
||||||
. ./scripts/duf_bin.sh
|
. ./scripts/duf_bin.sh
|
||||||
. ./scripts/mtd-utils.sh
|
. ./scripts/mtd-utils.sh
|
||||||
|
. ./scripts/iana-etc.sh
|
||||||
|
|
||||||
#----------- Building rootfs ----------------------
|
#----------- Building rootfs ----------------------
|
||||||
rootfs() {
|
rootfs() {
|
||||||
@@ -58,7 +59,7 @@ ID="$distro_id"
|
|||||||
BUILD_ID="$distro_build_id"
|
BUILD_ID="$distro_build_id"
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
iana-etc
|
||||||
busybox_rootfs
|
busybox_rootfs
|
||||||
kernel_headers
|
kernel_headers
|
||||||
uclibc
|
uclibc
|
||||||
|
|||||||
@@ -30,3 +30,4 @@ https://dl.gitea.com/gitea/1.22.4/gitea-1.22.4-linux-arm-5
|
|||||||
# https://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2
|
# https://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2
|
||||||
https://github.com/nginx/nginx/releases/download/release-1.29.5/nginx-1.29.5.tar.gz
|
https://github.com/nginx/nginx/releases/download/release-1.29.5/nginx-1.29.5.tar.gz
|
||||||
ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-2.3.0.tar.bz2
|
ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-2.3.0.tar.bz2
|
||||||
|
https://github.com/Mic92/iana-etc/releases/download/20260202/iana-etc-20260202.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user