From babb60e1246b78f761cbc4df8c5b3c51a11860ff Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 22 Jan 2018 17:11:15 +0100 Subject: [PATCH] Add unbound package Signed-off-by: David Oberhollenzer --- pkg/rootfs-alix/depends | 1 + pkg/rootfs-rpi3/depends | 1 + pkg/unbound/build | 36 ++++++++++++++++++++++++++++++++++++ pkg/unbound/depends | 3 +++ 4 files changed, 41 insertions(+) create mode 100644 pkg/unbound/build create mode 100644 pkg/unbound/depends diff --git a/pkg/rootfs-alix/depends b/pkg/rootfs-alix/depends index 06b7b88..5903fe3 100644 --- a/pkg/rootfs-alix/depends +++ b/pkg/rootfs-alix/depends @@ -17,3 +17,4 @@ gawk inetutils ethtool iproute2 +unbound diff --git a/pkg/rootfs-rpi3/depends b/pkg/rootfs-rpi3/depends index bf3d121..de377c0 100644 --- a/pkg/rootfs-rpi3/depends +++ b/pkg/rootfs-rpi3/depends @@ -20,3 +20,4 @@ gawk inetutils ethtool iproute2 +unbound diff --git a/pkg/unbound/build b/pkg/unbound/build new file mode 100644 index 0000000..e1afac1 --- /dev/null +++ b/pkg/unbound/build @@ -0,0 +1,36 @@ +VERSION="1.6.8" +SRCDIR="unbound-${VERSION}" +TARBALL="${SRCDIR}.tar.gz" +URL="https://www.unbound.net/downloads" +SHA256SUM="e3b428e33f56a45417107448418865fe08d58e0e7fea199b855515f60884dd49" + +prepare() { + return +} + +build() { + local SOURCE="$1" + local BUILD="$2" + + $SOURCE/configure --prefix="" --host="$TARGET" --disable-static \ + --sysconfdir=/etc --with-pidfile=/run/unbound.pid \ + --sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \ + --with-ssl="$TCDIR/$TARGET" + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + local DEVDEPLOY="$4" + + make DESTDIR="$DEPLOY" install + + rm ${DEPLOY}/lib/*.la + rm -r "$DEPLOY/share" + + mv "$DEPLOY/include" "$DEVDEPLOY" + cp -r "$DEPLOY/lib" "$DEVDEPLOY" +} diff --git a/pkg/unbound/depends b/pkg/unbound/depends new file mode 100644 index 0000000..3e9c854 --- /dev/null +++ b/pkg/unbound/depends @@ -0,0 +1,3 @@ +libevent +openssl +expat