summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bind
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bind')
-rw-r--r--meta/recipes-connectivity/bind/bind-9.16.21/0001-named-lwresd-V-and-start-log-hide-build-options.patch35
-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.21/0001-avoid-start-failure-with-bind-user.patch)9
-rw-r--r--meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch34
-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.21/bind-ensure-searching-for-json-headers-searches-sysr.patch)29
-rw-r--r--meta/recipes-connectivity/bind/bind/bind9 (renamed from meta/recipes-connectivity/bind/bind-9.16.21/bind9)0
-rw-r--r--meta/recipes-connectivity/bind/bind/conf.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.21/conf.patch)139
-rw-r--r--meta/recipes-connectivity/bind/bind/generate-rndc-key.sh (renamed from meta/recipes-connectivity/bind/bind-9.16.21/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.21/init.d-add-support-for-read-only-rootfs.patch)12
-rw-r--r--meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch (renamed from meta/recipes-connectivity/bind/bind-9.16.21/make-etc-initd-bind-stop-work.patch)19
-rw-r--r--meta/recipes-connectivity/bind/bind/named.service (renamed from meta/recipes-connectivity/bind/bind-9.16.21/named.service)0
-rw-r--r--meta/recipes-connectivity/bind/bind_9.20.10.bb (renamed from meta/recipes-connectivity/bind/bind_9.16.21.bb)48
11 files changed, 177 insertions, 148 deletions
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/0001-named-lwresd-V-and-start-log-hide-build-options.patch b/meta/recipes-connectivity/bind/bind-9.16.21/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.21/0001-named-lwresd-V-and-start-log-hide-build-options.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From a3af4a405baf5ff582e82aaba392dd9667d94bdc Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 27 Aug 2018 21:24:20 +0800
4Subject: [PATCH] `named/lwresd -V' and start log hide build options
5
6The 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
12Upstream-Status: Inappropriate [oe-core specific]
13
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15
16Refreshed for 9.16.0
17Signed-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
23Index: 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.21/0001-avoid-start-failure-with-bind-user.patch b/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch
index 8db96ec049..78ab6b87fc 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/0001-avoid-start-failure-with-bind-user.patch
+++ b/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch
@@ -1,4 +1,4 @@
1From 31dde3562f287429eea94b77250d184818b49063 Mon Sep 17 00:00:00 2001 1From c70f74164bea8a8c54c03becffb2f21103dd1f31 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 15 Oct 2018 16:55:09 +0800 3Date: Mon, 15 Oct 2018 16:55:09 +0800
4Subject: [PATCH] avoid start failure with bind user 4Subject: [PATCH] avoid start failure with bind user
@@ -11,17 +11,14 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
11 1 file changed, 1 insertion(+) 11 1 file changed, 1 insertion(+)
12 12
13diff --git a/init.d b/init.d 13diff --git a/init.d b/init.d
14index b2eec60..6e03936 100644 14index 95e8909..771d349 100644
15--- a/init.d 15--- a/init.d
16+++ b/init.d 16+++ b/init.d
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
24 if [ -f /var/run/named/named.pid ]; then 24 if [ -f /var/run/named/named.pid ]; then
25--
262.7.4
27
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..53e439721f
--- /dev/null
+++ b/meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch
@@ -0,0 +1,34 @@
1From 0dd67d85705cbcfa9a2759c46f3cdf3d0d6375de Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 27 Aug 2018 21:24:20 +0800
4Subject: [PATCH] `named/lwresd -V' and start log hide build options
5
6The 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
12Upstream-Status: Inappropriate [oe-core specific]
13
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15
16Refreshed for 9.16.0
17Signed-off-by: Armin Kuster <akuster@mvista.com>
18---
19 configure.ac | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/configure.ac b/configure.ac
23index f9cf4a4..0ce3d26 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -35,7 +35,7 @@ AC_DEFINE([PACKAGE_VERSION_EXTRA], ["][bind_VERSION_EXTRA]["], [BIND 9 Extra par
27 AC_DEFINE([PACKAGE_DESCRIPTION], [m4_ifnblank(bind_DESCRIPTION, [" ]bind_DESCRIPTION["], [])], [An extra string to print after PACKAGE_STRING])
28 AC_DEFINE([PACKAGE_SRCID], ["][bind_SRCID]["], [A short hash from git])
29
30-bind_CONFIGARGS="${ac_configure_args:-default}"
31+bind_CONFIGARGS="(removed for reproducibility)"
32 AC_DEFINE_UNQUOTED([PACKAGE_CONFIGARGS], ["$bind_CONFIGARGS"], [Either 'defaults' or used ./configure options])
33
34 AC_DEFINE([PACKAGE_BUILDER], ["make"], [make or Visual Studio])
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/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..38d208fc1c 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/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 @@
1From edda20fb5a6e88548f85e39d34d6c074306e15bc Mon Sep 17 00:00:00 2001 1From 8c9c817933eef20328f10237bbd964580db0a3ad Mon Sep 17 00:00:00 2001
2From: Paul Gortmaker <paul.gortmaker@windriver.com> 2From: Paul Gortmaker <paul.gortmaker@windriver.com>
3Date: Tue, 9 Jun 2015 11:22:00 -0400 3Date: Tue, 9 Jun 2015 11:22:00 -0400
4Subject: [PATCH] bind: ensure searching for json headers searches sysroot 4Subject: [PATCH] bind: ensure searching for json headers searches sysroot
@@ -27,21 +27,20 @@ to make use of the combination some day.
27 27
28Upstream-Status: Inappropriate [OE Specific] 28Upstream-Status: Inappropriate [OE Specific]
29Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> 29Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
30
31--- 30---
32 configure.ac | 2 +- 31 configure.ac | 2 +-
33 1 file changed, 1 insertion(+), 1 deletion(-) 32 1 file changed, 1 insertion(+), 1 deletion(-)
34 33
35Index: bind-9.16.4/configure.ac 34diff --git a/configure.ac b/configure.ac
36=================================================================== 35index 334b551..f9cf4a4 100644
37--- bind-9.16.4.orig/configure.ac 36--- a/configure.ac
38+++ bind-9.16.4/configure.ac 37+++ b/configure.ac
39@@ -1232,7 +1232,7 @@ case "$use_lmdb" in 38@@ -863,7 +863,7 @@ AS_CASE([$with_lmdb],
40 LMDB_LIBS="" 39 [no],[],
41 ;; 40 [auto|yes], [PKG_CHECK_MODULES([LMDB], [lmdb],
42 auto|yes) 41 [ac_lib_lmdb_found=yes],
43- for d in /usr /usr/local /opt/local 42- [for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
44+ for d in "${STAGING_INCDIR}" 43+ [for ac_lib_lmdb_path in "${STAGING_INCDIR}"; do
45 do 44 AX_LIB_LMDB([$ac_lib_lmdb_path],
46 if test -f "${d}/include/lmdb.h" 45 [ac_lib_lmdb_found=yes
47 then 46 break])
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/bind9 b/meta/recipes-connectivity/bind/bind/bind9
index 968679ff7f..968679ff7f 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/bind9
+++ b/meta/recipes-connectivity/bind/bind/bind9
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/conf.patch b/meta/recipes-connectivity/bind/bind/conf.patch
index aad345f9fc..102fe46ffe 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/conf.patch
+++ b/meta/recipes-connectivity/bind/bind/conf.patch
@@ -1,12 +1,43 @@
1From 83a892af19bf1455ce7132350332ed6d7f1e2b94 Mon Sep 17 00:00:00 2001
2From: Qing He <qing.he@intel.com>
3Date: Tue, 30 Nov 2010 13:35:42 +0800
4Subject: [PATCH] bind: add new recipe
5
1Upstream-Status: Inappropriate [configuration] 6Upstream-Status: Inappropriate [configuration]
2 7
3the patch is imported from openembedded project 8the patch is imported from openembedded project
4 9
511/30/2010 - Qing He <qing.he@intel.com> 1011/30/2010 - Qing He <qing.he@intel.com>
11---
12 conf/db.0 | 12 +++++++
13 conf/db.127 | 13 ++++++++
14 conf/db.255 | 12 +++++++
15 conf/db.empty | 14 +++++++++
16 conf/db.local | 13 ++++++++
17 conf/db.root | 45 ++++++++++++++++++++++++++
18 conf/named.conf | 49 +++++++++++++++++++++++++++++
19 conf/named.conf.local | 8 +++++
20 conf/named.conf.options | 24 ++++++++++++++
21 conf/zones.rfc1918 | 20 ++++++++++++
22 init.d | 70 +++++++++++++++++++++++++++++++++++++++++
23 11 files changed, 280 insertions(+)
24 create mode 100644 conf/db.0
25 create mode 100644 conf/db.127
26 create mode 100644 conf/db.255
27 create mode 100644 conf/db.empty
28 create mode 100644 conf/db.local
29 create mode 100644 conf/db.root
30 create mode 100644 conf/named.conf
31 create mode 100644 conf/named.conf.local
32 create mode 100644 conf/named.conf.options
33 create mode 100644 conf/zones.rfc1918
34 create mode 100644 init.d
6 35
7diff -urN bind-9.3.1.orig/conf/db.0 bind-9.3.1/conf/db.0 36diff --git a/conf/db.0 b/conf/db.0
8--- bind-9.3.1.orig/conf/db.0 1970-01-01 01:00:00.000000000 +0100 37new file mode 100644
9+++ bind-9.3.1/conf/db.0 2005-07-10 22:14:00.000000000 +0200 38index 0000000..e3aabdb
39--- /dev/null
40+++ b/conf/db.0
10@@ -0,0 +1,12 @@ 41@@ -0,0 +1,12 @@
11+; 42+;
12+; BIND reverse data file for broadcast zone 43+; BIND reverse data file for broadcast zone
@@ -20,9 +51,11 @@ diff -urN bind-9.3.1.orig/conf/db.0 bind-9.3.1/conf/db.0
20+ 604800 ) ; Negative Cache TTL 51+ 604800 ) ; Negative Cache TTL
21+; 52+;
22+@ IN NS localhost. 53+@ IN NS localhost.
23diff -urN bind-9.3.1.orig/conf/db.127 bind-9.3.1/conf/db.127 54diff --git a/conf/db.127 b/conf/db.127
24--- bind-9.3.1.orig/conf/db.127 1970-01-01 01:00:00.000000000 +0100 55new file mode 100644
25+++ bind-9.3.1/conf/db.127 2005-07-10 22:14:00.000000000 +0200 56index 0000000..cd05bef
57--- /dev/null
58+++ b/conf/db.127
26@@ -0,0 +1,13 @@ 59@@ -0,0 +1,13 @@
27+; 60+;
28+; BIND reverse data file for local loopback interface 61+; BIND reverse data file for local loopback interface
@@ -37,43 +70,49 @@ diff -urN bind-9.3.1.orig/conf/db.127 bind-9.3.1/conf/db.127
37+; 70+;
38+@ IN NS localhost. 71+@ IN NS localhost.
39+1.0.0 IN PTR localhost. 72+1.0.0 IN PTR localhost.
40diff -urN bind-9.3.1.orig/conf/db.empty bind-9.3.1/conf/db.empty 73diff --git a/conf/db.255 b/conf/db.255
41--- bind-9.3.1.orig/conf/db.empty 1970-01-01 01:00:00.000000000 +0100 74new file mode 100644
42+++ bind-9.3.1/conf/db.empty 2005-07-10 22:14:00.000000000 +0200 75index 0000000..16cd819
43@@ -0,0 +1,14 @@ 76--- /dev/null
44+; BIND reverse data file for empty rfc1918 zone 77+++ b/conf/db.255
78@@ -0,0 +1,12 @@
45+; 79+;
46+; DO NOT EDIT THIS FILE - it is used for multiple zones. 80+; BIND reserve data file for broadcast zone
47+; Instead, copy it, edit named.conf, and use that copy.
48+; 81+;
49+$TTL 86400 82+$TTL 604800
50+@ IN SOA localhost. root.localhost. ( 83+@ IN SOA localhost. root.localhost. (
51+ 1 ; Serial 84+ 1 ; Serial
52+ 604800 ; Refresh 85+ 604800 ; Refresh
53+ 86400 ; Retry 86+ 86400 ; Retry
54+ 2419200 ; Expire 87+ 2419200 ; Expire
55+ 86400 ) ; Negative Cache TTL 88+ 604800 ) ; Negative Cache TTL
56+; 89+;
57+@ IN NS localhost. 90+@ IN NS localhost.
58diff -urN bind-9.3.1.orig/conf/db.255 bind-9.3.1/conf/db.255 91diff --git a/conf/db.empty b/conf/db.empty
59--- bind-9.3.1.orig/conf/db.255 1970-01-01 01:00:00.000000000 +0100 92new file mode 100644
60+++ bind-9.3.1/conf/db.255 2005-07-10 22:14:00.000000000 +0200 93index 0000000..8a12858
61@@ -0,0 +1,12 @@ 94--- /dev/null
95+++ b/conf/db.empty
96@@ -0,0 +1,14 @@
97+; BIND reverse data file for empty rfc1918 zone
62+; 98+;
63+; BIND reserve data file for broadcast zone 99+; DO NOT EDIT THIS FILE - it is used for multiple zones.
100+; Instead, copy it, edit named.conf, and use that copy.
64+; 101+;
65+$TTL 604800 102+$TTL 86400
66+@ IN SOA localhost. root.localhost. ( 103+@ IN SOA localhost. root.localhost. (
67+ 1 ; Serial 104+ 1 ; Serial
68+ 604800 ; Refresh 105+ 604800 ; Refresh
69+ 86400 ; Retry 106+ 86400 ; Retry
70+ 2419200 ; Expire 107+ 2419200 ; Expire
71+ 604800 ) ; Negative Cache TTL 108+ 86400 ) ; Negative Cache TTL
72+; 109+;
73+@ IN NS localhost. 110+@ IN NS localhost.
74diff -urN bind-9.3.1.orig/conf/db.local bind-9.3.1/conf/db.local 111diff --git a/conf/db.local b/conf/db.local
75--- bind-9.3.1.orig/conf/db.local 1970-01-01 01:00:00.000000000 +0100 112new file mode 100644
76+++ bind-9.3.1/conf/db.local 2005-07-10 22:14:00.000000000 +0200 113index 0000000..66b4892
114--- /dev/null
115+++ b/conf/db.local
77@@ -0,0 +1,13 @@ 116@@ -0,0 +1,13 @@
78+; 117+;
79+; BIND data file for local loopback interface 118+; BIND data file for local loopback interface
@@ -88,9 +127,11 @@ diff -urN bind-9.3.1.orig/conf/db.local bind-9.3.1/conf/db.local
88+; 127+;
89+@ IN NS localhost. 128+@ IN NS localhost.
90+@ IN A 127.0.0.1 129+@ IN A 127.0.0.1
91diff -urN bind-9.3.1.orig/conf/db.root bind-9.3.1/conf/db.root 130diff --git a/conf/db.root b/conf/db.root
92--- bind-9.3.1.orig/conf/db.root 1970-01-01 01:00:00.000000000 +0100 131new file mode 100644
93+++ bind-9.3.1/conf/db.root 2005-07-10 22:14:00.000000000 +0200 132index 0000000..01c20f0
133--- /dev/null
134+++ b/conf/db.root
94@@ -0,0 +1,45 @@ 135@@ -0,0 +1,45 @@
95+ 136+
96+; <<>> DiG 9.2.3 <<>> ns . @a.root-servers.net. 137+; <<>> DiG 9.2.3 <<>> ns . @a.root-servers.net.
@@ -137,9 +178,11 @@ diff -urN bind-9.3.1.orig/conf/db.root bind-9.3.1/conf/db.root
137+;; WHEN: Sun Feb 1 11:27:14 2004 178+;; WHEN: Sun Feb 1 11:27:14 2004
138+;; MSG SIZE rcvd: 436 179+;; MSG SIZE rcvd: 436
139+ 180+
140diff -urN bind-9.3.1.orig/conf/named.conf bind-9.3.1/conf/named.conf 181diff --git a/conf/named.conf b/conf/named.conf
141--- bind-9.3.1.orig/conf/named.conf 1970-01-01 01:00:00.000000000 +0100 182new file mode 100644
142+++ bind-9.3.1/conf/named.conf 2005-07-10 22:33:46.000000000 +0200 183index 0000000..95829cf
184--- /dev/null
185+++ b/conf/named.conf
143@@ -0,0 +1,49 @@ 186@@ -0,0 +1,49 @@
144+// This is the primary configuration file for the BIND DNS server named. 187+// This is the primary configuration file for the BIND DNS server named.
145+// 188+//
@@ -190,9 +233,11 @@ diff -urN bind-9.3.1.orig/conf/named.conf bind-9.3.1/conf/named.conf
190+// root-delegation-only exclude { "DE"; "MUSEUM"; }; 233+// root-delegation-only exclude { "DE"; "MUSEUM"; };
191+ 234+
192+include "/etc/bind/named.conf.local"; 235+include "/etc/bind/named.conf.local";
193diff -urN bind-9.3.1.orig/conf/named.conf.local bind-9.3.1/conf/named.conf.local 236diff --git a/conf/named.conf.local b/conf/named.conf.local
194--- bind-9.3.1.orig/conf/named.conf.local 1970-01-01 01:00:00.000000000 +0100 237new file mode 100644
195+++ bind-9.3.1/conf/named.conf.local 2005-07-10 22:14:06.000000000 +0200 238index 0000000..7a57b10
239--- /dev/null
240+++ b/conf/named.conf.local
196@@ -0,0 +1,8 @@ 241@@ -0,0 +1,8 @@
197+// 242+//
198+// Do any local configuration here 243+// Do any local configuration here
@@ -202,9 +247,11 @@ diff -urN bind-9.3.1.orig/conf/named.conf.local bind-9.3.1/conf/named.conf.local
202+// organization 247+// organization
203+//include "/etc/bind/zones.rfc1918"; 248+//include "/etc/bind/zones.rfc1918";
204+ 249+
205diff -urN bind-9.3.1.orig/conf/named.conf.options bind-9.3.1/conf/named.conf.options 250diff --git a/conf/named.conf.options b/conf/named.conf.options
206--- bind-9.3.1.orig/conf/named.conf.options 1970-01-01 01:00:00.000000000 +0100 251new file mode 100644
207+++ bind-9.3.1/conf/named.conf.options 2005-07-10 22:14:06.000000000 +0200 252index 0000000..813193d
253--- /dev/null
254+++ b/conf/named.conf.options
208@@ -0,0 +1,24 @@ 255@@ -0,0 +1,24 @@
209+options { 256+options {
210+ directory "/var/cache/bind"; 257+ directory "/var/cache/bind";
@@ -230,9 +277,11 @@ diff -urN bind-9.3.1.orig/conf/named.conf.options bind-9.3.1/conf/named.conf.opt
230+ 277+
231+}; 278+};
232+ 279+
233diff -urN bind-9.3.1.orig/conf/zones.rfc1918 bind-9.3.1/conf/zones.rfc1918 280diff --git a/conf/zones.rfc1918 b/conf/zones.rfc1918
234--- bind-9.3.1.orig/conf/zones.rfc1918 1970-01-01 01:00:00.000000000 +0100 281new file mode 100644
235+++ bind-9.3.1/conf/zones.rfc1918 2005-07-10 22:14:10.000000000 +0200 282index 0000000..03b5546
283--- /dev/null
284+++ b/conf/zones.rfc1918
236@@ -0,0 +1,20 @@ 285@@ -0,0 +1,20 @@
237+zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; 286+zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
238+ 287+
@@ -254,9 +303,11 @@ diff -urN bind-9.3.1.orig/conf/zones.rfc1918 bind-9.3.1/conf/zones.rfc1918
254+zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; 303+zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
255+ 304+
256+zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; 305+zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
257diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d 306diff --git a/init.d b/init.d
258--- bind-9.3.1.orig/init.d 1970-01-01 01:00:00.000000000 +0100 307new file mode 100644
259+++ bind-9.3.1/init.d 2005-07-10 23:09:58.000000000 +0200 308index 0000000..2ef2277
309--- /dev/null
310+++ b/init.d
260@@ -0,0 +1,70 @@ 311@@ -0,0 +1,70 @@
261+#!/bin/sh 312+#!/bin/sh
262+ 313+
@@ -276,7 +327,7 @@ diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d
276+ 327+
277+ modprobe capability >/dev/null 2>&1 || true 328+ modprobe capability >/dev/null 2>&1 || true
278+ if [ ! -f /etc/bind/rndc.key ]; then 329+ if [ ! -f /etc/bind/rndc.key ]; then
279+ /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom 330+ /usr/sbin/rndc-confgen -a -b 512
280+ chmod 0640 /etc/bind/rndc.key 331+ chmod 0640 /etc/bind/rndc.key
281+ fi 332+ fi
282+ if [ -f /var/run/named/named.pid ]; then 333+ if [ -f /var/run/named/named.pid ]; then
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/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.21/generate-rndc-key.sh
+++ b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/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..984d401c70 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/init.d-add-support-for-read-only-rootfs.patch
+++ b/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch
@@ -1,14 +1,17 @@
1Subject: init.d: add support for read-only rootfs 1From 1393cbf6b0084128fdfc9b5afb3bcc307265d094 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Thu, 27 Mar 2014 02:34:41 +0000
4Subject: [PATCH] init.d: add support for read-only rootfs
2 5
3Upstream-Status: Inappropriate [oe specific] 6Upstream-Status: Inappropriate [oe specific]
4 7
5Signed-off-by: Chen Qi <Qi.Chen@windriver.com> 8Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
6--- 9---
7 init.d | 40 ++++++++++++++++++++++++++++++++++++++++ 10 init.d | 40 ++++++++++++++++++++++++++++++++++++++++
8 1 file changed, 40 insertions(+) 11 1 file changed, 40 insertions(+)
9 12
10diff --git a/init.d b/init.d 13diff --git a/init.d b/init.d
11index 0111ed4..24677c8 100644 14index 2ef2277..95e8909 100644
12--- a/init.d 15--- a/init.d
13+++ b/init.d 16+++ b/init.d
14@@ -6,8 +6,48 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin 17@@ -6,8 +6,48 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@ -60,6 +63,3 @@ index 0111ed4..24677c8 100644
60 test -x /usr/sbin/rndc || exit 0 63 test -x /usr/sbin/rndc || exit 0
61 64
62 case "$1" in 65 case "$1" in
63--
641.7.9.5
65
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/make-etc-initd-bind-stop-work.patch b/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch
index 146f3e35db..74f2ef83a0 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/make-etc-initd-bind-stop-work.patch
+++ b/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch
@@ -1,4 +1,7 @@
1bind: make "/etc/init.d/bind stop" work 1From ce06506bb3fe661e03161af3a603bd228590a254 Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com>
3Date: Thu, 15 Nov 2012 02:27:54 +0000
4Subject: [PATCH] bind: make "/etc/init.d/bind stop" work
2 5
3Upstream-Status: Inappropriate [configuration] 6Upstream-Status: Inappropriate [configuration]
4 7
@@ -7,13 +10,13 @@ the named daemon.
7 10
8Signed-off-by: Roy Li <rongqing.li@windriver.com> 11Signed-off-by: Roy Li <rongqing.li@windriver.com>
9--- 12---
10 conf/named.conf | 5 +++++ 13 conf/named.conf | 5 +++++
11 conf/rndc.conf | 5 +++++ 14 conf/rndc.conf | 5 +++++
12 2 files changed, 10 insertions(+), 0 deletions(-) 15 2 files changed, 10 insertions(+)
13 create mode 100644 conf/rndc.conf 16 create mode 100644 conf/rndc.conf
14 17
15diff --git a/conf/named.conf b/conf/named.conf 18diff --git a/conf/named.conf b/conf/named.conf
16index 95829cf..c8899e7 100644 19index 95829cf..021dbca 100644
17--- a/conf/named.conf 20--- a/conf/named.conf
18+++ b/conf/named.conf 21+++ b/conf/named.conf
19@@ -47,3 +47,8 @@ zone "255.in-addr.arpa" { 22@@ -47,3 +47,8 @@ zone "255.in-addr.arpa" {
@@ -27,7 +30,7 @@ index 95829cf..c8899e7 100644
27+}; 30+};
28diff --git a/conf/rndc.conf b/conf/rndc.conf 31diff --git a/conf/rndc.conf b/conf/rndc.conf
29new file mode 100644 32new file mode 100644
30index 0000000..a0b481d 33index 0000000..4b43a3d
31--- /dev/null 34--- /dev/null
32+++ b/conf/rndc.conf 35+++ b/conf/rndc.conf
33@@ -0,0 +1,5 @@ 36@@ -0,0 +1,5 @@
@@ -36,7 +39,3 @@ index 0000000..a0b481d
36+ default-server localhost; 39+ default-server localhost;
37+ default-key rndc-key; 40+ default-key rndc-key;
38+}; 41+};
39
40--
411.7.5.4
42
diff --git a/meta/recipes-connectivity/bind/bind-9.16.21/named.service b/meta/recipes-connectivity/bind/bind/named.service
index cda56ef015..cda56ef015 100644
--- a/meta/recipes-connectivity/bind/bind-9.16.21/named.service
+++ b/meta/recipes-connectivity/bind/bind/named.service
diff --git a/meta/recipes-connectivity/bind/bind_9.16.21.bb b/meta/recipes-connectivity/bind/bind_9.20.10.bb
index 390c84248d..32f0bdf7b5 100644
--- a/meta/recipes-connectivity/bind/bind_9.16.21.bb
+++ b/meta/recipes-connectivity/bind/bind_9.20.10.bb
@@ -4,9 +4,9 @@ DESCRIPTION = "BIND 9 provides a full-featured Domain Name Server system"
4SECTION = "console/network" 4SECTION = "console/network"
5 5
6LICENSE = "MPL-2.0" 6LICENSE = "MPL-2.0"
7LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=ef10b4de6371115dcecdc38ca2af4561" 7LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=c7a0b6d9a1b692a5da9af9d503671f43"
8 8
9DEPENDS = "openssl libcap zlib libuv" 9DEPENDS = "openssl libcap zlib libuv liburcu"
10 10
11SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.xz \ 11SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.xz \
12 file://conf.patch \ 12 file://conf.patch \
@@ -20,33 +20,31 @@ 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
23SRC_URI[sha256sum] = "65da5fd4fb80b7d0d7452876f81fd6d67cdcee54a5e3c1d65610334665dfa815" 23SRC_URI[sha256sum] = "0fb3ba2c337bb488ca68f5df296c435cd255058fb63d0822e91db0235c905716"
24 24
25UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/" 25UPSTREAM_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
27UPSTREAM_CHECK_REGEX = "(?P<pver>9.(16|20|24|28)(\.\d+)+(-P\d+)*)/" 27UPSTREAM_CHECK_REGEX = "(?P<pver>9.(\d*[02468])+(\.\d+)+(-P\d+)*)/"
28 28
29# Issue only affects dhcpd with recent bind versions. We don't ship dhcpd anymore 29# Issue only affects dhcpd with recent bind versions. We don't ship dhcpd anymore
30# so the issue doesn't affect us. 30# so the issue doesn't affect us.
31CVE_CHECK_WHITELIST += "CVE-2019-6470" 31CVE_STATUS[CVE-2019-6470] = "not-applicable-config: Issue only affects dhcpd with recent bind versions and we don't ship dhcpd anymore."
32 32
33inherit autotools update-rc.d systemd useradd pkgconfig multilib_header update-alternatives 33inherit autotools update-rc.d systemd useradd pkgconfig multilib_header update-alternatives
34 34
35# PACKAGECONFIGs readline and libedit should NOT be set at same time 35# PACKAGECONFIGs readline and libedit should NOT be set at same time
36PACKAGECONFIG ?= "readline" 36PACKAGECONFIG ?= "readline"
37PACKAGECONFIG[httpstats] = "--with-libxml2=${STAGING_DIR_HOST}${prefix},--without-libxml2,libxml2" 37PACKAGECONFIG[httpstats] = "--with-libxml2,--without-libxml2,libxml2"
38PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline" 38PACKAGECONFIG[readline] = "--with-readline=readline,,readline"
39PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit" 39PACKAGECONFIG[libedit] = "--with-readline=libedit,,libedit"
40PACKAGECONFIG[python3] = "--with-python=yes --with-python-install-dir=${PYTHON_SITEPACKAGES_DIR} , --without-python, python3-ply-native," 40PACKAGECONFIG[dns-over-http] = "--enable-doh,--disable-doh,nghttp2"
41 41
42EXTRA_OECONF = " --with-libtool --disable-devpoll --disable-auto-validation --enable-epoll \ 42EXTRA_OECONF = " --disable-auto-validation \
43 --with-gssapi=no --with-lmdb=no --with-zlib \ 43 --with-gssapi=no --with-lmdb=no --with-zlib \
44 --sysconfdir=${sysconfdir}/bind \ 44 --sysconfdir=${sysconfdir}/bind \
45 --with-openssl=${STAGING_DIR_HOST}${prefix} \ 45 --with-openssl=${STAGING_DIR_HOST}${prefix} \
46 " 46 "
47LDFLAGS:append = " -lz" 47LDFLAGS += "-lz"
48
49inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native distutils3-base', '', d)}
50 48
51# dhcp needs .la so keep them 49# dhcp needs .la so keep them
52REMOVE_LIBTOOL_LA = "0" 50REMOVE_LIBTOOL_LA = "0"
@@ -67,31 +65,23 @@ do_install:append() {
67 install -d "${D}${sysconfdir}/init.d" 65 install -d "${D}${sysconfdir}/init.d"
68 install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" 66 install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/"
69 install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind" 67 install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind"
70 if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then
71 sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' \
72 ${D}${sbindir}/dnssec-coverage \
73 ${D}${sbindir}/dnssec-checkds \
74 ${D}${sbindir}/dnssec-keymgr
75 fi
76 68
77 # Install systemd related files 69 # Install systemd related files
78 install -d ${D}${sbindir} 70 install -d ${D}${sbindir}
79 install -m 755 ${WORKDIR}/generate-rndc-key.sh ${D}${sbindir} 71 install -m 755 ${UNPACKDIR}/generate-rndc-key.sh ${D}${sbindir}
80 install -d ${D}${systemd_system_unitdir} 72 install -d ${D}${systemd_system_unitdir}
81 install -m 0644 ${WORKDIR}/named.service ${D}${systemd_system_unitdir} 73 install -m 0644 ${UNPACKDIR}/named.service ${D}${systemd_system_unitdir}
82 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ 74 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
83 -e 's,@SBINDIR@,${sbindir},g' \ 75 -e 's,@SBINDIR@,${sbindir},g' \
84 ${D}${systemd_system_unitdir}/named.service 76 ${D}${systemd_system_unitdir}/named.service
85 77
86 install -d ${D}${sysconfdir}/default 78 install -d ${D}${sysconfdir}/default
87 install -m 0644 ${WORKDIR}/bind9 ${D}${sysconfdir}/default 79 install -m 0644 ${UNPACKDIR}/bind9 ${D}${sysconfdir}/default
88 80
89 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 81 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
90 install -d ${D}${sysconfdir}/tmpfiles.d 82 install -d ${D}${sysconfdir}/tmpfiles.d
91 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
92 fi 84 fi
93
94 oe_multilib_header isc/platform.h
95} 85}
96 86
97CONFFILES:${PN} = " \ 87CONFFILES:${PN} = " \
@@ -119,11 +109,5 @@ PACKAGE_BEFORE_PN += "${PN}-libs"
119# https://github.com/isc-projects/bind9/commit/0e25af628cd776f98c04fc4cc59048f5448f6c88 109# https://github.com/isc-projects/bind9/commit/0e25af628cd776f98c04fc4cc59048f5448f6c88
120FILES_SOLIBSDEV = "${libdir}/*[!0-9].so ${libdir}/libbind9.so" 110FILES_SOLIBSDEV = "${libdir}/*[!0-9].so ${libdir}/libbind9.so"
121FILES:${PN}-libs = "${libdir}/named/*.so* ${libdir}/*-${PV}.so" 111FILES:${PN}-libs = "${libdir}/named/*.so* ${libdir}/*-${PV}.so"
122FILES:${PN}-staticdev += "${libdir}/*.la"
123
124PACKAGE_BEFORE_PN += "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-bind', '', d)}"
125FILES:python3-bind = "${sbindir}/dnssec-coverage ${sbindir}/dnssec-checkds \
126 ${sbindir}/dnssec-keymgr ${PYTHON_SITEPACKAGES_DIR}"
127 112
128RDEPENDS:${PN}-dev = "" 113DEV_PKG_DEPENDENCY = ""
129RDEPENDS:python3-bind = "python3-core python3-ply"