20 lines
517 B
Bash
20 lines
517 B
Bash
#!/bin/bash
|
|
|
|
. ./scripts/colors.sh
|
|
. ./scripts/funcs.sh
|
|
. ./scripts/config.sh
|
|
|
|
dnsmasq() {
|
|
pkgname=dnsmasq
|
|
pkgver=2.90
|
|
print_info "** Building and installing $pkgname"
|
|
[ ! -d $build/$pkgname ] && mkdir $build/$pkgname
|
|
cd $build/$pkgname
|
|
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}"
|
|
}
|