2018-04-05 10:42:43 +02:00
|
|
|
VERSION="2.79"
|
2018-01-22 18:16:33 +01:00
|
|
|
SRCDIR="dnsmasq-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="http://www.thekelleys.org.uk/dnsmasq"
|
2018-04-05 10:42:43 +02:00
|
|
|
SHA256SUM="78ad74f5ca14fd85a8bac93f764cd9d60b27579e90eabd3687ca7b030e67861f"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2018-01-22 18:16:33 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
2018-01-22 18:16:33 +01:00
|
|
|
|
|
|
|
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
|
|
|
local DEVDEPLOY="$3"
|
2018-01-22 18:16:33 +01:00
|
|
|
|
|
|
|
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" DESTDIR="$DEPLOY" install
|
|
|
|
|
2018-02-15 14:24:53 +01:00
|
|
|
strip_files "$DEPLOY/bin/dnsmasq"
|
2018-01-22 18:16:33 +01:00
|
|
|
rm -r "$DEPLOY/share"
|
|
|
|
|
|
|
|
mkdir -p "$DEPLOY/etc"
|
2018-02-20 21:30:34 +01:00
|
|
|
|
|
|
|
cat_file_override "dnsmasq.conf" > "$DEPLOY/etc/dnsmasq.conf"
|
|
|
|
|
|
|
|
if [ ! -s "$DEPLOY/etc/dnsmasq.conf" ]; then
|
|
|
|
cp "$SOURCE/dnsmasq.conf.example" "$DEPLOY/etc/dnsmasq.conf"
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p "$DEPLOY/etc/dnsmasq.d"
|
2018-01-22 18:16:33 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">dnsmasq-[0-9.]*tar.xz<" | \
|
|
|
|
sed 's/>dnsmasq-//g' | sed 's/.tar.xz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|