summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/unbound/unbound_1.22.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/unbound/unbound_1.22.0.bb')
-rw-r--r--meta-networking/recipes-support/unbound/unbound_1.22.0.bb71
1 files changed, 71 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/unbound/unbound_1.22.0.bb b/meta-networking/recipes-support/unbound/unbound_1.22.0.bb
new file mode 100644
index 0000000000..c35148b77e
--- /dev/null
+++ b/meta-networking/recipes-support/unbound/unbound_1.22.0.bb
@@ -0,0 +1,71 @@
1SUMMARY = "Unbound is a validating, recursive, and caching DNS resolver"
2DESCRIPTION = "Unbound's design is a set of modular components which incorporate \
3 features including enhanced security (DNSSEC) validation, Internet Protocol \
4 Version 6 (IPv6), and a client resolver library API as an integral part of the \
5 architecture"
6
7HOMEPAGE = "https://www.unbound.net/"
8SECTION = "net"
9LICENSE = "BSD-3-Clause"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06"
11
12SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master \
13 file://run-ptest \
14 file://0001-fix-build-with-gcc-15-Wbuiltin-declaration-mismatch-.patch \
15 "
16
17# 17 commits after 1.22.0 tag:
18# https://github.com/NLnetLabs/unbound/compare/release-1.22.0...7985d17b57d25be262de56c29a43ae4b61c1b896
19# to include fix for occasional build failure:
20# https://github.com/NLnetLabs/unbound/commit/46cfbf313d812a6e50614a691e162b171dc91d7b
21PV .= "+git"
22SRCREV = "7985d17b57d25be262de56c29a43ae4b61c1b896"
23
24inherit autotools pkgconfig systemd update-rc.d ptest
25
26DEPENDS = "openssl libtool-native bison-native expat"
27RDEPENDS:${PN} = "bash openssl-bin daemonize"
28
29
30EXTRA_OECONF = "--with-libexpat=${STAGING_EXECPREFIXDIR} \
31 --disable-rpath --with-ssl=${STAGING_EXECPREFIXDIR} \
32 --enable-largefile"
33
34PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
35PACKAGECONFIG[dnscrypt] = "--enable-dnscrypt, --disable-dnscrypt, libsodium"
36PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
37PACKAGECONFIG[libevent] = "--with-libevent=${STAGING_EXECPREFIXDIR},,libevent"
38
39do_configure:append() {
40 sed -i -e 's#${RECIPE_SYSROOT}##g' ${B}/config.h
41}
42
43do_compile:append() {
44 oe_runmake tests
45}
46
47do_install:append() {
48 install -d ${D}${systemd_unitdir}/system
49 install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system
50
51 install -d ${D}${sysconfdir}/init.d
52 install -m 0755 ${S}/contrib/unbound.init_yocto ${D}${sysconfdir}/init.d/unbound
53}
54
55do_install_ptest() {
56 install -d ${D}${PTEST_PATH}/tests
57 install -d ${D}${PTEST_PATH}/tests/testdata
58
59 install -m 0544 ${B}/unittest ${D}${PTEST_PATH}/tests/
60 install -m 0544 ${B}/testbound ${D}${PTEST_PATH}/tests/
61 install -m 0664 ${S}/testdata/test_signatures* ${D}${PTEST_PATH}/tests/
62 install -m 0664 ${S}/testdata/test_sigs* ${D}${PTEST_PATH}/tests/
63 install -m 0664 ${S}/testdata/test_ds* ${D}${PTEST_PATH}/tests/
64 install -m 0664 ${S}/testdata/test_nsec3_hash* ${D}${PTEST_PATH}/tests/
65 install -m 0644 ${S}/testdata/*.rpl ${D}/${PTEST_PATH}/tests/testdata/
66}
67
68SYSTEMD_SERVICE:${PN} = "${BPN}.service"
69
70INITSCRIPT_NAME = "unbound"
71INITSCRIPT_PARAMS = "defaults"