added dnsmasq
This commit is contained in:
1 parent
fc0d5d76a1
commit
f365fbeb8d
3 files changed
+28
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#!/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}"
|
||||
}
|
||||
Reference in new issue
Block a user