diff options
Diffstat (limited to 'meta/recipes-connectivity/bind')
-rw-r--r-- | meta/recipes-connectivity/bind/bind-9.16.11/0001-named-lwresd-V-and-start-log-hide-build-options.patch | 35 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.11/0001-avoid-start-failure-with-bind-user.patch) | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch | 35 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.11/bind-ensure-searching-for-json-headers-searches-sysr.patch) | 28 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/bind9 (renamed from meta/recipes-connectivity/bind/bind-9.16.11/bind9) | 0 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/conf.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.11/conf.patch) | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/generate-rndc-key.sh (renamed from meta/recipes-connectivity/bind/bind-9.16.11/generate-rndc-key.sh) | 0 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.11/init.d-add-support-for-read-only-rootfs.patch) | 0 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.11/make-etc-initd-bind-stop-work.patch) | 0 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind/named.service (renamed from meta/recipes-connectivity/bind/bind-9.16.11/named.service) | 0 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.18.26.bb (renamed from meta/recipes-connectivity/bind/bind_9.16.11.bb) | 73 |
11 files changed, 82 insertions, 93 deletions
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/0001-named-lwresd-V-and-start-log-hide-build-options.patch b/meta/recipes-connectivity/bind/bind-9.16.11/0001-named-lwresd-V-and-start-log-hide-build-options.patch deleted file mode 100644 index 5bcc16c9b2..0000000000 --- a/meta/recipes-connectivity/bind/bind-9.16.11/0001-named-lwresd-V-and-start-log-hide-build-options.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From a3af4a405baf5ff582e82aaba392dd9667d94bdc Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Mon, 27 Aug 2018 21:24:20 +0800 | ||
4 | Subject: [PATCH] `named/lwresd -V' and start log hide build options | ||
5 | |||
6 | The build options expose build path directories, so hide them. | ||
7 | [snip] | ||
8 | $ named -V | ||
9 | |built by make with *** (options are hidden) | ||
10 | [snip] | ||
11 | |||
12 | Upstream-Status: Inappropriate [oe-core specific] | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | |||
16 | Refreshed for 9.16.0 | ||
17 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
18 | |||
19 | --- | ||
20 | bin/named/include/named/globals.h | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | Index: bind-9.16.0/bin/named/include/named/globals.h | ||
24 | =================================================================== | ||
25 | --- bind-9.16.0.orig/bin/named/include/named/globals.h | ||
26 | +++ bind-9.16.0/bin/named/include/named/globals.h | ||
27 | @@ -69,7 +69,7 @@ EXTERN const char *named_g_version I | ||
28 | EXTERN const char *named_g_product INIT(PRODUCT); | ||
29 | EXTERN const char *named_g_description INIT(DESCRIPTION); | ||
30 | EXTERN const char *named_g_srcid INIT(SRCID); | ||
31 | -EXTERN const char *named_g_configargs INIT(CONFIGARGS); | ||
32 | +EXTERN const char *named_g_configargs INIT("*** (options are hidden)"); | ||
33 | EXTERN const char *named_g_builder INIT(BUILDER); | ||
34 | EXTERN in_port_t named_g_port INIT(0); | ||
35 | EXTERN isc_dscp_t named_g_dscp INIT(-1); | ||
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/0001-avoid-start-failure-with-bind-user.patch b/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch index 8db96ec049..ec1bc7b567 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/0001-avoid-start-failure-with-bind-user.patch +++ b/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch | |||
@@ -17,7 +17,7 @@ index b2eec60..6e03936 100644 | |||
17 | @@ -57,6 +57,7 @@ case "$1" in | 17 | @@ -57,6 +57,7 @@ case "$1" in |
18 | modprobe capability >/dev/null 2>&1 || true | 18 | modprobe capability >/dev/null 2>&1 || true |
19 | if [ ! -f /etc/bind/rndc.key ]; then | 19 | if [ ! -f /etc/bind/rndc.key ]; then |
20 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | 20 | /usr/sbin/rndc-confgen -a -b 512 |
21 | + chown root:bind /etc/bind/rndc.key >/dev/null 2>&1 || true | 21 | + chown root:bind /etc/bind/rndc.key >/dev/null 2>&1 || true |
22 | chmod 0640 /etc/bind/rndc.key | 22 | chmod 0640 /etc/bind/rndc.key |
23 | fi | 23 | fi |
diff --git a/meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch b/meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch new file mode 100644 index 0000000000..4c10f33f04 --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 4e83392e840fa7b05e778710b8c202d102477a13 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Mon, 27 Aug 2018 21:24:20 +0800 | ||
4 | Subject: [PATCH] `named/lwresd -V' and start log hide build options | ||
5 | |||
6 | The build options expose build path directories, so hide them. | ||
7 | [snip] | ||
8 | $ named -V | ||
9 | |built by make with *** (options are hidden) | ||
10 | [snip] | ||
11 | |||
12 | Upstream-Status: Inappropriate [oe-core specific] | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | |||
16 | Refreshed for 9.16.0 | ||
17 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
18 | |||
19 | --- | ||
20 | configure.ac | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/configure.ac b/configure.ac | ||
24 | index bf20690..c5d330f 100644 | ||
25 | --- a/configure.ac | ||
26 | +++ b/configure.ac | ||
27 | @@ -35,7 +35,7 @@ AC_DEFINE([PACKAGE_VERSION_EXTRA], ["][bind_VERSION_EXTRA]["], [BIND 9 Extra par | ||
28 | AC_DEFINE([PACKAGE_DESCRIPTION], [m4_ifnblank(bind_DESCRIPTION, [" ]bind_DESCRIPTION["], [])], [An extra string to print after PACKAGE_STRING]) | ||
29 | AC_DEFINE([PACKAGE_SRCID], ["][bind_SRCID]["], [A short hash from git]) | ||
30 | |||
31 | -bind_CONFIGARGS="${ac_configure_args:-default}" | ||
32 | +bind_CONFIGARGS="(removed for reproducibility)" | ||
33 | AC_DEFINE_UNQUOTED([PACKAGE_CONFIGARGS], ["$bind_CONFIGARGS"], [Either 'defaults' or used ./configure options]) | ||
34 | |||
35 | AC_DEFINE([PACKAGE_BUILDER], ["make"], [make or Visual Studio]) | ||
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/bind-ensure-searching-for-json-headers-searches-sysr.patch b/meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch index f9cdc7ca4d..38d07cae39 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/bind-ensure-searching-for-json-headers-searches-sysr.patch +++ b/meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From edda20fb5a6e88548f85e39d34d6c074306e15bc Mon Sep 17 00:00:00 2001 | 1 | From 5ae30329f168c1e8d2e0c3831988a4f3e9096e39 Mon Sep 17 00:00:00 2001 |
2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> | 2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> |
3 | Date: Tue, 9 Jun 2015 11:22:00 -0400 | 3 | Date: Tue, 9 Jun 2015 11:22:00 -0400 |
4 | Subject: [PATCH] bind: ensure searching for json headers searches sysroot | 4 | Subject: [PATCH] bind: ensure searching for json headers searches sysroot |
@@ -32,16 +32,16 @@ Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> | |||
32 | configure.ac | 2 +- | 32 | configure.ac | 2 +- |
33 | 1 file changed, 1 insertion(+), 1 deletion(-) | 33 | 1 file changed, 1 insertion(+), 1 deletion(-) |
34 | 34 | ||
35 | Index: bind-9.16.4/configure.ac | 35 | diff --git a/configure.ac b/configure.ac |
36 | =================================================================== | 36 | index 2ab8ddd..92fe983 100644 |
37 | --- bind-9.16.4.orig/configure.ac | 37 | --- a/configure.ac |
38 | +++ bind-9.16.4/configure.ac | 38 | +++ b/configure.ac |
39 | @@ -1232,7 +1232,7 @@ case "$use_lmdb" in | 39 | @@ -761,7 +761,7 @@ AS_CASE([$with_lmdb], |
40 | LMDB_LIBS="" | 40 | [no],[], |
41 | ;; | 41 | [auto|yes], [PKG_CHECK_MODULES([LMDB], [lmdb], |
42 | auto|yes) | 42 | [ac_lib_lmdb_found=yes], |
43 | - for d in /usr /usr/local /opt/local | 43 | - [for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do |
44 | + for d in "${STAGING_INCDIR}" | 44 | + [for ac_lib_lmdb_path in "${STAGING_INCDIR}"; do |
45 | do | 45 | AX_LIB_LMDB([$ac_lib_lmdb_path], |
46 | if test -f "${d}/include/lmdb.h" | 46 | [ac_lib_lmdb_found=yes |
47 | then | 47 | break]) |
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/bind9 b/meta/recipes-connectivity/bind/bind/bind9 index 968679ff7f..968679ff7f 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/bind9 +++ b/meta/recipes-connectivity/bind/bind/bind9 | |||
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/conf.patch b/meta/recipes-connectivity/bind/bind/conf.patch index aad345f9fc..aa3642acec 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/conf.patch +++ b/meta/recipes-connectivity/bind/bind/conf.patch | |||
@@ -276,7 +276,7 @@ diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d | |||
276 | + | 276 | + |
277 | + modprobe capability >/dev/null 2>&1 || true | 277 | + modprobe capability >/dev/null 2>&1 || true |
278 | + if [ ! -f /etc/bind/rndc.key ]; then | 278 | + if [ ! -f /etc/bind/rndc.key ]; then |
279 | + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | 279 | + /usr/sbin/rndc-confgen -a -b 512 |
280 | + chmod 0640 /etc/bind/rndc.key | 280 | + chmod 0640 /etc/bind/rndc.key |
281 | + fi | 281 | + fi |
282 | + if [ -f /var/run/named/named.pid ]; then | 282 | + if [ -f /var/run/named/named.pid ]; then |
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/generate-rndc-key.sh b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh index 633e29c0e6..633e29c0e6 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/generate-rndc-key.sh +++ b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh | |||
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/init.d-add-support-for-read-only-rootfs.patch b/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch index 11db95ede1..11db95ede1 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/init.d-add-support-for-read-only-rootfs.patch +++ b/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch | |||
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/make-etc-initd-bind-stop-work.patch b/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch index 146f3e35db..146f3e35db 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/make-etc-initd-bind-stop-work.patch +++ b/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch | |||
diff --git a/meta/recipes-connectivity/bind/bind-9.16.11/named.service b/meta/recipes-connectivity/bind/bind/named.service index cda56ef015..cda56ef015 100644 --- a/meta/recipes-connectivity/bind/bind-9.16.11/named.service +++ b/meta/recipes-connectivity/bind/bind/named.service | |||
diff --git a/meta/recipes-connectivity/bind/bind_9.16.11.bb b/meta/recipes-connectivity/bind/bind_9.18.26.bb index f48cc74c2e..b99f92537c 100644 --- a/meta/recipes-connectivity/bind/bind_9.16.11.bb +++ b/meta/recipes-connectivity/bind/bind_9.18.26.bb | |||
@@ -4,7 +4,7 @@ DESCRIPTION = "BIND 9 provides a full-featured Domain Name Server system" | |||
4 | SECTION = "console/network" | 4 | SECTION = "console/network" |
5 | 5 | ||
6 | LICENSE = "MPL-2.0" | 6 | LICENSE = "MPL-2.0" |
7 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=ef10b4de6371115dcecdc38ca2af4561" | 7 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=c7a0b6d9a1b692a5da9af9d503671f43" |
8 | 8 | ||
9 | DEPENDS = "openssl libcap zlib libuv" | 9 | DEPENDS = "openssl libcap zlib libuv" |
10 | 10 | ||
@@ -20,79 +20,71 @@ SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.xz \ | |||
20 | file://0001-avoid-start-failure-with-bind-user.patch \ | 20 | file://0001-avoid-start-failure-with-bind-user.patch \ |
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI[sha256sum] = "0111f64dd7d8f515cfa129e181cce96ff82070d1b27f11a21f6856110d0699c1" | 23 | SRC_URI[sha256sum] = "75ffee52731e9604c849b658df29e927f1c4f01d5a71ea3ebcbeb63702cb6651" |
24 | 24 | ||
25 | UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/" | 25 | UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/" |
26 | # stay at 9.16 follow the ESV versions divisible by 4 | 26 | # follow the ESV versions divisible by 2 |
27 | UPSTREAM_CHECK_REGEX = "(?P<pver>9.(16|20|24|28)(\.\d+)+(-P\d+)*)/" | 27 | UPSTREAM_CHECK_REGEX = "(?P<pver>9.(\d*[02468])+(\.\d+)+(-P\d+)*)/" |
28 | |||
29 | # Issue only affects dhcpd with recent bind versions. We don't ship dhcpd anymore | ||
30 | # so the issue doesn't affect us. | ||
31 | CVE_STATUS[CVE-2019-6470] = "not-applicable-config: Issue only affects dhcpd with recent bind versions and we don't ship dhcpd anymore." | ||
28 | 32 | ||
29 | inherit autotools update-rc.d systemd useradd pkgconfig multilib_header update-alternatives | 33 | inherit autotools update-rc.d systemd useradd pkgconfig multilib_header update-alternatives |
30 | 34 | ||
31 | # PACKAGECONFIGs readline and libedit should NOT be set at same time | 35 | # PACKAGECONFIGs readline and libedit should NOT be set at same time |
32 | PACKAGECONFIG ?= "readline" | 36 | PACKAGECONFIG ?= "readline" |
33 | PACKAGECONFIG[httpstats] = "--with-libxml2=${STAGING_DIR_HOST}${prefix},--without-libxml2,libxml2" | 37 | PACKAGECONFIG[httpstats] = "--with-libxml2=${STAGING_DIR_HOST}${prefix},--without-libxml2,libxml2" |
34 | PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline" | 38 | PACKAGECONFIG[readline] = "--with-readline=readline,,readline" |
35 | PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit" | 39 | PACKAGECONFIG[libedit] = "--with-readline=libedit,,libedit" |
36 | PACKAGECONFIG[python3] = "--with-python=yes --with-python-install-dir=${PYTHON_SITEPACKAGES_DIR} , --without-python, python3-ply-native," | 40 | PACKAGECONFIG[dns-over-http] = "--enable-doh,--disable-doh,nghttp2" |
37 | 41 | ||
38 | EXTRA_OECONF = " --with-libtool --disable-devpoll --disable-auto-validation --enable-epoll \ | 42 | EXTRA_OECONF = " --disable-auto-validation \ |
39 | --with-gssapi=no --with-lmdb=no --with-zlib \ | 43 | --with-gssapi=no --with-lmdb=no --with-zlib \ |
40 | --sysconfdir=${sysconfdir}/bind \ | 44 | --sysconfdir=${sysconfdir}/bind \ |
41 | --with-openssl=${STAGING_DIR_HOST}${prefix} \ | 45 | --with-openssl=${STAGING_DIR_HOST}${prefix} \ |
42 | " | 46 | " |
43 | LDFLAGS_append = " -lz" | 47 | LDFLAGS:append = " -lz" |
44 | |||
45 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native distutils3-base', '', d)} | ||
46 | 48 | ||
47 | # dhcp needs .la so keep them | 49 | # dhcp needs .la so keep them |
48 | REMOVE_LIBTOOL_LA = "0" | 50 | REMOVE_LIBTOOL_LA = "0" |
49 | 51 | ||
50 | USERADD_PACKAGES = "${PN}" | 52 | USERADD_PACKAGES = "${PN}" |
51 | USERADD_PARAM_${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \ | 53 | USERADD_PARAM:${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \ |
52 | --user-group bind" | 54 | --user-group bind" |
53 | 55 | ||
54 | INITSCRIPT_NAME = "bind" | 56 | INITSCRIPT_NAME = "bind" |
55 | INITSCRIPT_PARAMS = "defaults" | 57 | INITSCRIPT_PARAMS = "defaults" |
56 | 58 | ||
57 | SYSTEMD_SERVICE_${PN} = "named.service" | 59 | SYSTEMD_SERVICE:${PN} = "named.service" |
58 | 60 | ||
59 | do_install_append() { | 61 | do_install:append() { |
60 | 62 | ||
61 | rmdir "${D}${localstatedir}/run" | ||
62 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | ||
63 | install -d -o bind "${D}${localstatedir}/cache/bind" | 63 | install -d -o bind "${D}${localstatedir}/cache/bind" |
64 | install -d "${D}${sysconfdir}/bind" | 64 | install -d "${D}${sysconfdir}/bind" |
65 | install -d "${D}${sysconfdir}/init.d" | 65 | install -d "${D}${sysconfdir}/init.d" |
66 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" | 66 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" |
67 | install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind" | 67 | install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind" |
68 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then | ||
69 | sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' \ | ||
70 | ${D}${sbindir}/dnssec-coverage \ | ||
71 | ${D}${sbindir}/dnssec-checkds \ | ||
72 | ${D}${sbindir}/dnssec-keymgr | ||
73 | fi | ||
74 | 68 | ||
75 | # Install systemd related files | 69 | # Install systemd related files |
76 | install -d ${D}${sbindir} | 70 | install -d ${D}${sbindir} |
77 | install -m 755 ${WORKDIR}/generate-rndc-key.sh ${D}${sbindir} | 71 | install -m 755 ${UNPACKDIR}/generate-rndc-key.sh ${D}${sbindir} |
78 | install -d ${D}${systemd_unitdir}/system | 72 | install -d ${D}${systemd_system_unitdir} |
79 | install -m 0644 ${WORKDIR}/named.service ${D}${systemd_unitdir}/system | 73 | install -m 0644 ${UNPACKDIR}/named.service ${D}${systemd_system_unitdir} |
80 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 74 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ |
81 | -e 's,@SBINDIR@,${sbindir},g' \ | 75 | -e 's,@SBINDIR@,${sbindir},g' \ |
82 | ${D}${systemd_unitdir}/system/named.service | 76 | ${D}${systemd_system_unitdir}/named.service |
83 | 77 | ||
84 | install -d ${D}${sysconfdir}/default | 78 | install -d ${D}${sysconfdir}/default |
85 | install -m 0644 ${WORKDIR}/bind9 ${D}${sysconfdir}/default | 79 | install -m 0644 ${UNPACKDIR}/bind9 ${D}${sysconfdir}/default |
86 | 80 | ||
87 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 81 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
88 | install -d ${D}${sysconfdir}/tmpfiles.d | 82 | install -d ${D}${sysconfdir}/tmpfiles.d |
89 | echo "d /run/named 0755 bind bind - -" > ${D}${sysconfdir}/tmpfiles.d/bind.conf | 83 | echo "d /run/named 0755 bind bind - -" > ${D}${sysconfdir}/tmpfiles.d/bind.conf |
90 | fi | 84 | fi |
91 | |||
92 | oe_multilib_header isc/platform.h | ||
93 | } | 85 | } |
94 | 86 | ||
95 | CONFFILES_${PN} = " \ | 87 | CONFFILES:${PN} = " \ |
96 | ${sysconfdir}/bind/named.conf \ | 88 | ${sysconfdir}/bind/named.conf \ |
97 | ${sysconfdir}/bind/named.conf.local \ | 89 | ${sysconfdir}/bind/named.conf.local \ |
98 | ${sysconfdir}/bind/named.conf.options \ | 90 | ${sysconfdir}/bind/named.conf.options \ |
@@ -103,22 +95,19 @@ CONFFILES_${PN} = " \ | |||
103 | ${sysconfdir}/bind/db.root \ | 95 | ${sysconfdir}/bind/db.root \ |
104 | " | 96 | " |
105 | 97 | ||
106 | ALTERNATIVE_${PN}-utils = "nslookup" | 98 | ALTERNATIVE:${PN}-utils = "nslookup" |
107 | ALTERNATIVE_LINK_NAME[nslookup] = "${bindir}/nslookup" | 99 | ALTERNATIVE_LINK_NAME[nslookup] = "${bindir}/nslookup" |
108 | ALTERNATIVE_PRIORITY = "100" | 100 | ALTERNATIVE_PRIORITY = "100" |
109 | 101 | ||
110 | PACKAGE_BEFORE_PN += "${PN}-utils" | 102 | PACKAGE_BEFORE_PN += "${PN}-utils" |
111 | FILES_${PN}-utils = "${bindir}/host ${bindir}/dig ${bindir}/mdig ${bindir}/nslookup ${bindir}/nsupdate" | 103 | FILES:${PN}-utils = "${bindir}/host ${bindir}/dig ${bindir}/mdig ${bindir}/nslookup ${bindir}/nsupdate" |
112 | FILES_${PN}-dev += "${bindir}/isc-config.h" | 104 | FILES:${PN}-dev += "${bindir}/isc-config.h" |
113 | FILES_${PN} += "${sbindir}/generate-rndc-key.sh" | 105 | FILES:${PN} += "${sbindir}/generate-rndc-key.sh" |
114 | 106 | ||
115 | PACKAGE_BEFORE_PN += "${PN}-libs" | 107 | PACKAGE_BEFORE_PN += "${PN}-libs" |
116 | FILES_${PN}-libs = "${libdir}/*.so* ${libdir}/named/*.so*" | 108 | # special arrangement below due to |
117 | FILES_${PN}-staticdev += "${libdir}/*.la" | 109 | # https://github.com/isc-projects/bind9/commit/0e25af628cd776f98c04fc4cc59048f5448f6c88 |
118 | 110 | FILES_SOLIBSDEV = "${libdir}/*[!0-9].so ${libdir}/libbind9.so" | |
119 | PACKAGE_BEFORE_PN += "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-bind', '', d)}" | 111 | FILES:${PN}-libs = "${libdir}/named/*.so* ${libdir}/*-${PV}.so" |
120 | FILES_python3-bind = "${sbindir}/dnssec-coverage ${sbindir}/dnssec-checkds \ | ||
121 | ${sbindir}/dnssec-keymgr ${PYTHON_SITEPACKAGES_DIR}" | ||
122 | 112 | ||
123 | RDEPENDS_${PN}-dev = "" | 113 | DEV_PKG_DEPENDENCY = "" |
124 | RDEPENDS_python3-bind = "python3-core python3-ply" | ||