added iana-etc
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
Reference in New Issue
Block a user