From ed8cc19bcb3c81b769d28ef814ebb702514abbfc Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sun, 5 Feb 2023 21:14:58 -0500 Subject: [PATCH] +unbound.net --- projects/unbound.net/package.yml | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 projects/unbound.net/package.yml diff --git a/projects/unbound.net/package.yml b/projects/unbound.net/package.yml new file mode 100644 index 00000000..e5c7b920 --- /dev/null +++ b/projects/unbound.net/package.yml @@ -0,0 +1,46 @@ +distributable: + url: https://github.com/NLnetLabs/unbound/archive/refs/tags/release-{{ version }}.tar.gz + strip-components: 1 + +versions: + github: NLnetLabs/unbound/tags + strip: /^release-/ + +dependencies: + openssl.org: ^1 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + libexpat.github.io: '*' + script: | + ./configure $ARGS + make -j {{ hw.concurrency }} install + + cd {{prefix}}/bin + sed -i.bak -e "s|$TEA_PREFIX/|$(tea --prefix)/|g" unbound-control-setup + rm unbound-control-setup.bak + env: + ARGS: + - --prefix={{ prefix }} + - --sbindir={{ prefix }}/bin + - --with-ssl={{ deps.openssl.org.prefix }} + - --with-libexpat={{ deps.libexpat.github.io.prefix }} + +test: + script: | + OUT="$(unbound-host tea.xyz)" + grep "$TEST1" <<< "$OUT" + grep "$TEST2" <<< "$OUT" + env: + TEST1: "tea.xyz has address" + TEST2: "tea.xyz mail is handled by" + +provides: + - bin/unbound + - bin/unbound-anchor + - bin/unbound-checkconf + - bin/unbound-control + - bin/unbound-control-setup + - bin/unbound-host \ No newline at end of file