28 lines
782 B
Bash
28 lines
782 B
Bash
#!/bin/bash
|
|
|
|
. ./scripts/colors.sh
|
|
. ./scripts/funcs.sh
|
|
. ./scripts/config.sh
|
|
|
|
dnsmasq() {
|
|
pkgname=dnsmasq
|
|
pkgver=2.90
|
|
srcurl=https://thekelleys.org.uk/${pkgname}/${pkgname}-${pkgver}.tar.xz
|
|
print_info "** Building and installing $pkgname"
|
|
mkdir -p $build/$pkgname
|
|
cd $build/$pkgname
|
|
if [ ! -f $root/downloads/${pkgname}-${pkgver}.tar.xz ]; then
|
|
print_info "** Downloading $srcurl"
|
|
cd $root/downloads
|
|
wget $srcurl
|
|
check $? "download $srcurl"
|
|
cd -
|
|
fi
|
|
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.xz
|
|
cd ${pkgname}-${pkgver}
|
|
make CC=${CROSS_COMPILE}-gcc ${makeflags}
|
|
check $? "Build ${pkgname}"
|
|
cp -v src/$pkgname $rootfspath/usr/bin/$pkgname
|
|
check $? "Install to rootfs ${pkgname}"
|
|
}
|