mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+unbound.net
This commit is contained in:
parent
1bc00240cd
commit
ed8cc19bcb
46
projects/unbound.net/package.yml
Normal file
46
projects/unbound.net/package.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue