VERSION="1.7.3" SRCDIR="unbound-${VERSION}" TARBALL="${SRCDIR}.tar.gz" URL="https://www.unbound.net/downloads" SHA256SUM="c11de115d928a6b48b2165e0214402a7a7da313cd479203a7ce7a8b62cba602d" DEPENDS="openssl expat libbsd" prepare() { return } build() { $1/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 DEPLOY="$2" local tag alg type digest make DESTDIR="$DEPLOY" install cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY" cat_file_override "unbound.conf" > "$DEPLOY/etc/unbound/unbound.conf" echo "generating trust anchor root.key" curl --silent -L https://data.iana.org/root-anchors/root-anchors.xml |\ sed ':a;N;$!ba;s/\n//g' |\ grep -o -P -e "" |\ while read line; do tag=$(echo $line | grep -o -e "[0-9]*[0-9]*[0-9]*[A-F0-9]*> "$DEPLOY/etc/unbound/root.key" done } check_update() { curl --silent -L "$URL" | grep -o ">unbound-[0-9.]*tar.gz<" | \ sed 's/>unbound-//g' | sed 's/.tar.gz