Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | SUMMARY = "Unbound is a validating, recursive, and caching DNS resolver" |
| 2 | DESCRIPTION = "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 | |
| 7 | HOMEPAGE = "https://www.unbound.net/" |
| 8 | SECTION = "net" |
| 9 | LICENSE = "BSD-3-Clause" |
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5308494bc0590c0cb036afd781d78f06" |
| 11 | |
| 12 | SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=http;branch=master \ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 13 | file://0001-contrib-add-yocto-compatible-init-script.patch \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 14 | " |
William A. Kennington III | 49e9566 | 2021-09-15 16:19:36 -0700 | [diff] [blame] | 15 | SRCREV = "8e538dcaa8df2d0fab8ff3dcf94ac1f972450b66" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 16 | |
| 17 | inherit autotools pkgconfig systemd update-rc.d |
| 18 | |
| 19 | DEPENDS = "openssl libevent libtool-native bison-native expat" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | RDEPENDS:${PN} = "bash openssl-bin daemonize" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
| 24 | EXTRA_OECONF = "--with-libexpat=${STAGING_EXECPREFIXDIR} \ |
| 25 | --with-ssl=${STAGING_EXECPREFIXDIR} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 26 | libtool=${HOST_SYS}-libtool \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 27 | " |
| 28 | |
| 29 | |
| 30 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'largefile systemd', d)}" |
| 31 | PACKAGECONFIG[dnscrypt] = "--enable-dnscrypt, --disable-dnscrypt, libsodium" |
| 32 | PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,," |
| 33 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" |
| 34 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 35 | do_install:append() { |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 36 | install -d ${D}${systemd_unitdir}/system |
| 37 | install -m 0644 ${B}/contrib/unbound.service ${D}${systemd_unitdir}/system |
| 38 | |
| 39 | install -d ${D}${sysconfdir}/init.d |
| 40 | install -m 0755 ${S}/contrib/unbound.init ${D}${sysconfdir}/init.d/unbound |
| 41 | } |
| 42 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 43 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 44 | |
| 45 | INITSCRIPT_NAME = "unbound" |
| 46 | INITSCRIPT_PARAMS = "defaults" |