21 lines
610 B
Bash
21 lines
610 B
Bash
#!/bin/bash
|
|
|
|
. ./scripts/colors.sh
|
|
. ./scripts/funcs.sh
|
|
. ./scripts/config.sh
|
|
|
|
dnsmasq() {
|
|
pkgname=dnsmasq
|
|
pkgver=2.90
|
|
printf "$GREEN** Building and installing $pkgname\n$RESET"
|
|
[ ! -d $build/$pkgname ] && mkdir $build/$pkgname
|
|
cd $build/$pkgname
|
|
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
|
|
cd ${pkgname}-${pkgver}
|
|
make CC=${CROSS_COMPILE}-gcc ${makeflags}
|
|
check $? "Build ${pkgname}"
|
|
${CROSS_COMPILE}-strip src/$pkgname
|
|
check $? "Stripping ${pkgname} binary"
|
|
cp -v src/$pkgname $rootfspath/usr/bin/$pkgname
|
|
check $? "Install to rootfs ${pkgname}"
|
|
} |