VERSION="1.8.0" SRCDIR="unbound-${VERSION}" TARBALL="${SRCDIR}.tar.gz" URL="https://www.unbound.net/downloads" SHA256SUM="78f79d6d3b643fdcd74a14fc76542250da886c82f82bc55b51e189663d61b83f" DEPENDS="openssl expat libbsd" prepare() { return } build() { run_configure "$1" --with-pidfile=/run/unbound.pid \ --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