2023-02-06 05:14:58 +03:00
|
|
|
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:
|
|
|
|
libexpat.github.io: '*'
|
2023-08-30 13:16:28 +03:00
|
|
|
github.com/westes/flex: '*'
|
2023-08-30 18:28:21 +03:00
|
|
|
gnu.org/bison: ^3
|
2023-10-02 04:27:27 +03:00
|
|
|
|
2023-02-06 05:14:58 +03:00
|
|
|
script: |
|
|
|
|
./configure $ARGS
|
|
|
|
make -j {{ hw.concurrency }} install
|
|
|
|
|
|
|
|
cd {{prefix}}/bin
|
2023-10-02 17:17:26 +03:00
|
|
|
sed -i.bak -e "s|$PKGX_DIR/|\$PKGX_DIR/|g" unbound-control-setup
|
2023-02-06 05:14:58 +03:00
|
|
|
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:
|
2023-08-30 20:04:04 +03:00
|
|
|
script:
|
|
|
|
- unbound-control-setup -d .
|
|
|
|
# The following tests complain on our build servers due to
|
|
|
|
# darwin-specific configuration requirement
|
|
|
|
- run: exit 0
|
|
|
|
if: darwin
|
|
|
|
- OUT="$(unbound-host tea.xyz)"
|
|
|
|
- grep "$TEST1" <<< "$OUT"
|
|
|
|
- grep "$TEST2" <<< "$OUT"
|
2023-02-06 05:14:58 +03:00
|
|
|
env:
|
2023-10-02 04:27:27 +03:00
|
|
|
TEST1: 'tea.xyz has address'
|
|
|
|
TEST2: 'tea.xyz mail is handled by'
|
2023-02-06 05:14:58 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/unbound
|
|
|
|
- bin/unbound-anchor
|
|
|
|
- bin/unbound-checkconf
|
|
|
|
- bin/unbound-control
|
|
|
|
- bin/unbound-control-setup
|
2023-08-30 13:16:28 +03:00
|
|
|
- bin/unbound-host
|