diff options
| author | akuster <akuster808@gmail.com> | 2020-09-01 08:22:36 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-02 16:00:46 +0100 |
| commit | ed0314e26e7ae4d545b513605b1ff13a7055e937 (patch) | |
| tree | 956da83c3427f98987b6173cb320ce0623092db9 /meta | |
| parent | d8f211edf5320136767da87506009a700abe183d (diff) | |
| download | poky-ed0314e26e7ae4d545b513605b1ff13a7055e937.tar.gz | |
bind: 9.11 remove
(From OE-Core rev: 29949cd7cf3a660fb3bcf251f5127a4cdb2804ec)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
11 files changed, 0 insertions, 747 deletions
diff --git a/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch b/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch deleted file mode 100644 index 8db96ec049..0000000000 --- a/meta/recipes-connectivity/bind/bind/0001-avoid-start-failure-with-bind-user.patch +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | From 31dde3562f287429eea94b77250d184818b49063 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
| 3 | Date: Mon, 15 Oct 2018 16:55:09 +0800 | ||
| 4 | Subject: [PATCH] avoid start failure with bind user | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
| 9 | --- | ||
| 10 | init.d | 1 + | ||
| 11 | 1 file changed, 1 insertion(+) | ||
| 12 | |||
| 13 | diff --git a/init.d b/init.d | ||
| 14 | index b2eec60..6e03936 100644 | ||
| 15 | --- a/init.d | ||
| 16 | +++ b/init.d | ||
| 17 | @@ -57,6 +57,7 @@ case "$1" in | ||
| 18 | modprobe capability >/dev/null 2>&1 || true | ||
| 19 | if [ ! -f /etc/bind/rndc.key ]; then | ||
| 20 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | ||
| 21 | + chown root:bind /etc/bind/rndc.key >/dev/null 2>&1 || true | ||
| 22 | chmod 0640 /etc/bind/rndc.key | ||
| 23 | fi | ||
| 24 | if [ -f /var/run/named/named.pid ]; then | ||
| 25 | -- | ||
| 26 | 2.7.4 | ||
| 27 | |||
diff --git a/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch b/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch deleted file mode 100644 index 9d31b98080..0000000000 --- a/meta/recipes-connectivity/bind/bind/0001-configure.in-remove-useless-L-use_openssl-lib.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 2325a92f1896a2a7f586611686801b41fbc91b50 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Mon, 27 Aug 2018 15:00:51 +0800 | ||
| 4 | Subject: [PATCH] configure.in: remove useless `-L$use_openssl/lib' | ||
| 5 | |||
| 6 | Since `--with-openssl=${STAGING_DIR_HOST}${prefix}' is used in bind recipe, | ||
| 7 | the `-L$use_openssl/lib' has a hardcoded suffix, removing it is harmless | ||
| 8 | and helpful for clean up host build path in isc-config.sh | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 11 | |||
| 12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 13 | |||
| 14 | --- | ||
| 15 | configure.ac | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/configure.ac b/configure.ac | ||
| 19 | index e85a5c6..2bbfc58 100644 | ||
| 20 | --- a/configure.ac | ||
| 21 | +++ b/configure.ac | ||
| 22 | @@ -1631,7 +1631,7 @@ If you don't want OpenSSL, use --without-openssl]) | ||
| 23 | fi | ||
| 24 | ;; | ||
| 25 | *) | ||
| 26 | - DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto" | ||
| 27 | + DST_OPENSSL_LIBS="-lcrypto" | ||
| 28 | ;; | ||
| 29 | esac | ||
| 30 | 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 deleted file mode 100644 index 75908aa638..0000000000 --- a/meta/recipes-connectivity/bind/bind/0001-named-lwresd-V-and-start-log-hide-build-options.patch +++ /dev/null | |||
| @@ -1,34 +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 | bin/named/include/named/globals.h | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h | ||
| 20 | index ba3457e..7741da7 100644 | ||
| 21 | --- a/bin/named/include/named/globals.h | ||
| 22 | +++ b/bin/named/include/named/globals.h | ||
| 23 | @@ -68,7 +68,7 @@ EXTERN const char * ns_g_version INIT(VERSION); | ||
| 24 | EXTERN const char * ns_g_product INIT(PRODUCT); | ||
| 25 | EXTERN const char * ns_g_description INIT(DESCRIPTION); | ||
| 26 | EXTERN const char * ns_g_srcid INIT(SRCID); | ||
| 27 | -EXTERN const char * ns_g_configargs INIT(CONFIGARGS); | ||
| 28 | +EXTERN const char * ns_g_configargs INIT("*** (options are hidden)"); | ||
| 29 | EXTERN const char * ns_g_builder INIT(BUILDER); | ||
| 30 | EXTERN in_port_t ns_g_port INIT(0); | ||
| 31 | EXTERN isc_dscp_t ns_g_dscp INIT(-1); | ||
| 32 | -- | ||
| 33 | 2.7.4 | ||
| 34 | |||
diff --git a/meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch b/meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch deleted file mode 100644 index 84559e5f37..0000000000 --- a/meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From edda20fb5a6e88548f85e39d34d6c074306e15bc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> | ||
| 3 | Date: Tue, 9 Jun 2015 11:22:00 -0400 | ||
| 4 | Subject: [PATCH] bind: ensure searching for json headers searches sysroot | ||
| 5 | |||
| 6 | Bind can fail configure by detecting headers w/o libs[1], or | ||
| 7 | it can fail the host contamination check as per below: | ||
| 8 | |||
| 9 | ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. | ||
| 10 | Rerun configure task after fixing this. The path was 'build/tmp/work/core2-64-poky-linux/bind/9.10.2-r1/build' | ||
| 11 | ERROR: Function failed: do_qa_configure | ||
| 12 | ERROR: Logfile of failure stored in: build/tmp/work/core2-64-poky-linux/bind/9.10.2-r1/temp/log.do_configure.5242 | ||
| 13 | ERROR: Task 5 (meta/recipes-connectivity/bind/bind_9.10.2.bb, do_configure) failed with exit code '1' | ||
| 14 | NOTE: Tasks Summary: Attempted 773 tasks of which 768 didn't need to be rerun and 1 failed. | ||
| 15 | No currently running tasks (773 of 781) | ||
| 16 | |||
| 17 | Summary: 1 task failed: | ||
| 18 | /meta/recipes-connectivity/bind/bind_9.10.2.bb, do_configure | ||
| 19 | |||
| 20 | One way to fix it would be to unconditionally disable json in bind | ||
| 21 | configure[2] but here we fix it by using the path to where we would | ||
| 22 | put the header if we had json in the sysroot, in case someone wants | ||
| 23 | to make use of the combination some day. | ||
| 24 | |||
| 25 | [1] https://trac.macports.org/ticket/45305 | ||
| 26 | [2] https://trac.macports.org/changeset/126406 | ||
| 27 | |||
| 28 | Upstream-Status: Inappropriate [OE Specific] | ||
| 29 | Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> | ||
| 30 | |||
| 31 | --- | ||
| 32 | configure.ac | 2 +- | ||
| 33 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 34 | |||
| 35 | diff --git a/configure.ac b/configure.ac | ||
| 36 | index 17392fd..e85a5c6 100644 | ||
| 37 | --- a/configure.ac | ||
| 38 | +++ b/configure.ac | ||
| 39 | @@ -2449,7 +2449,7 @@ case "$use_libjson" in | ||
| 40 | libjson_libs="" | ||
| 41 | ;; | ||
| 42 | auto|yes) | ||
| 43 | - for d in /usr /usr/local /opt/local | ||
| 44 | + for d in "${STAGING_INCDIR}" | ||
| 45 | do | ||
| 46 | if test -f "${d}/include/json/json.h" | ||
| 47 | then | ||
diff --git a/meta/recipes-connectivity/bind/bind/bind9 b/meta/recipes-connectivity/bind/bind/bind9 deleted file mode 100644 index 968679ff7f..0000000000 --- a/meta/recipes-connectivity/bind/bind/bind9 +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | # startup options for the server | ||
| 2 | OPTIONS="-u bind" | ||
diff --git a/meta/recipes-connectivity/bind/bind/conf.patch b/meta/recipes-connectivity/bind/bind/conf.patch deleted file mode 100644 index aad345f9fc..0000000000 --- a/meta/recipes-connectivity/bind/bind/conf.patch +++ /dev/null | |||
| @@ -1,330 +0,0 @@ | |||
| 1 | Upstream-Status: Inappropriate [configuration] | ||
| 2 | |||
| 3 | the patch is imported from openembedded project | ||
| 4 | |||
| 5 | 11/30/2010 - Qing He <qing.he@intel.com> | ||
| 6 | |||
| 7 | diff -urN bind-9.3.1.orig/conf/db.0 bind-9.3.1/conf/db.0 | ||
| 8 | --- bind-9.3.1.orig/conf/db.0 1970-01-01 01:00:00.000000000 +0100 | ||
| 9 | +++ bind-9.3.1/conf/db.0 2005-07-10 22:14:00.000000000 +0200 | ||
| 10 | @@ -0,0 +1,12 @@ | ||
| 11 | +; | ||
| 12 | +; BIND reverse data file for broadcast zone | ||
| 13 | +; | ||
| 14 | +$TTL 604800 | ||
| 15 | +@ IN SOA localhost. root.localhost. ( | ||
| 16 | + 1 ; Serial | ||
| 17 | + 604800 ; Refresh | ||
| 18 | + 86400 ; Retry | ||
| 19 | + 2419200 ; Expire | ||
| 20 | + 604800 ) ; Negative Cache TTL | ||
| 21 | +; | ||
| 22 | +@ IN NS localhost. | ||
| 23 | diff -urN bind-9.3.1.orig/conf/db.127 bind-9.3.1/conf/db.127 | ||
| 24 | --- bind-9.3.1.orig/conf/db.127 1970-01-01 01:00:00.000000000 +0100 | ||
| 25 | +++ bind-9.3.1/conf/db.127 2005-07-10 22:14:00.000000000 +0200 | ||
| 26 | @@ -0,0 +1,13 @@ | ||
| 27 | +; | ||
| 28 | +; BIND reverse data file for local loopback interface | ||
| 29 | +; | ||
| 30 | +$TTL 604800 | ||
| 31 | +@ IN SOA localhost. root.localhost. ( | ||
| 32 | + 1 ; Serial | ||
| 33 | + 604800 ; Refresh | ||
| 34 | + 86400 ; Retry | ||
| 35 | + 2419200 ; Expire | ||
| 36 | + 604800 ) ; Negative Cache TTL | ||
| 37 | +; | ||
| 38 | +@ IN NS localhost. | ||
| 39 | +1.0.0 IN PTR localhost. | ||
| 40 | diff -urN bind-9.3.1.orig/conf/db.empty bind-9.3.1/conf/db.empty | ||
| 41 | --- bind-9.3.1.orig/conf/db.empty 1970-01-01 01:00:00.000000000 +0100 | ||
| 42 | +++ bind-9.3.1/conf/db.empty 2005-07-10 22:14:00.000000000 +0200 | ||
| 43 | @@ -0,0 +1,14 @@ | ||
| 44 | +; BIND reverse data file for empty rfc1918 zone | ||
| 45 | +; | ||
| 46 | +; DO NOT EDIT THIS FILE - it is used for multiple zones. | ||
| 47 | +; Instead, copy it, edit named.conf, and use that copy. | ||
| 48 | +; | ||
| 49 | +$TTL 86400 | ||
| 50 | +@ IN SOA localhost. root.localhost. ( | ||
| 51 | + 1 ; Serial | ||
| 52 | + 604800 ; Refresh | ||
| 53 | + 86400 ; Retry | ||
| 54 | + 2419200 ; Expire | ||
| 55 | + 86400 ) ; Negative Cache TTL | ||
| 56 | +; | ||
| 57 | +@ IN NS localhost. | ||
| 58 | diff -urN bind-9.3.1.orig/conf/db.255 bind-9.3.1/conf/db.255 | ||
| 59 | --- bind-9.3.1.orig/conf/db.255 1970-01-01 01:00:00.000000000 +0100 | ||
| 60 | +++ bind-9.3.1/conf/db.255 2005-07-10 22:14:00.000000000 +0200 | ||
| 61 | @@ -0,0 +1,12 @@ | ||
| 62 | +; | ||
| 63 | +; BIND reserve data file for broadcast zone | ||
| 64 | +; | ||
| 65 | +$TTL 604800 | ||
| 66 | +@ IN SOA localhost. root.localhost. ( | ||
| 67 | + 1 ; Serial | ||
| 68 | + 604800 ; Refresh | ||
| 69 | + 86400 ; Retry | ||
| 70 | + 2419200 ; Expire | ||
| 71 | + 604800 ) ; Negative Cache TTL | ||
| 72 | +; | ||
| 73 | +@ IN NS localhost. | ||
| 74 | diff -urN bind-9.3.1.orig/conf/db.local bind-9.3.1/conf/db.local | ||
| 75 | --- bind-9.3.1.orig/conf/db.local 1970-01-01 01:00:00.000000000 +0100 | ||
| 76 | +++ bind-9.3.1/conf/db.local 2005-07-10 22:14:00.000000000 +0200 | ||
| 77 | @@ -0,0 +1,13 @@ | ||
| 78 | +; | ||
| 79 | +; BIND data file for local loopback interface | ||
| 80 | +; | ||
| 81 | +$TTL 604800 | ||
| 82 | +@ IN SOA localhost. root.localhost. ( | ||
| 83 | + 1 ; Serial | ||
| 84 | + 604800 ; Refresh | ||
| 85 | + 86400 ; Retry | ||
| 86 | + 2419200 ; Expire | ||
| 87 | + 604800 ) ; Negative Cache TTL | ||
| 88 | +; | ||
| 89 | +@ IN NS localhost. | ||
| 90 | +@ IN A 127.0.0.1 | ||
| 91 | diff -urN bind-9.3.1.orig/conf/db.root bind-9.3.1/conf/db.root | ||
| 92 | --- bind-9.3.1.orig/conf/db.root 1970-01-01 01:00:00.000000000 +0100 | ||
| 93 | +++ bind-9.3.1/conf/db.root 2005-07-10 22:14:00.000000000 +0200 | ||
| 94 | @@ -0,0 +1,45 @@ | ||
| 95 | + | ||
| 96 | +; <<>> DiG 9.2.3 <<>> ns . @a.root-servers.net. | ||
| 97 | +;; global options: printcmd | ||
| 98 | +;; Got answer: | ||
| 99 | +;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18944 | ||
| 100 | +;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13 | ||
| 101 | + | ||
| 102 | +;; QUESTION SECTION: | ||
| 103 | +;. IN NS | ||
| 104 | + | ||
| 105 | +;; ANSWER SECTION: | ||
| 106 | +. 518400 IN NS A.ROOT-SERVERS.NET. | ||
| 107 | +. 518400 IN NS B.ROOT-SERVERS.NET. | ||
| 108 | +. 518400 IN NS C.ROOT-SERVERS.NET. | ||
| 109 | +. 518400 IN NS D.ROOT-SERVERS.NET. | ||
| 110 | +. 518400 IN NS E.ROOT-SERVERS.NET. | ||
| 111 | +. 518400 IN NS F.ROOT-SERVERS.NET. | ||
| 112 | +. 518400 IN NS G.ROOT-SERVERS.NET. | ||
| 113 | +. 518400 IN NS H.ROOT-SERVERS.NET. | ||
| 114 | +. 518400 IN NS I.ROOT-SERVERS.NET. | ||
| 115 | +. 518400 IN NS J.ROOT-SERVERS.NET. | ||
| 116 | +. 518400 IN NS K.ROOT-SERVERS.NET. | ||
| 117 | +. 518400 IN NS L.ROOT-SERVERS.NET. | ||
| 118 | +. 518400 IN NS M.ROOT-SERVERS.NET. | ||
| 119 | + | ||
| 120 | +;; ADDITIONAL SECTION: | ||
| 121 | +A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4 | ||
| 122 | +B.ROOT-SERVERS.NET. 3600000 IN A 192.228.79.201 | ||
| 123 | +C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12 | ||
| 124 | +D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90 | ||
| 125 | +E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10 | ||
| 126 | +F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241 | ||
| 127 | +G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4 | ||
| 128 | +H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53 | ||
| 129 | +I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17 | ||
| 130 | +J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30 | ||
| 131 | +K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129 | ||
| 132 | +L.ROOT-SERVERS.NET. 3600000 IN A 198.32.64.12 | ||
| 133 | +M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33 | ||
| 134 | + | ||
| 135 | +;; Query time: 81 msec | ||
| 136 | +;; SERVER: 198.41.0.4#53(a.root-servers.net.) | ||
| 137 | +;; WHEN: Sun Feb 1 11:27:14 2004 | ||
| 138 | +;; MSG SIZE rcvd: 436 | ||
| 139 | + | ||
| 140 | diff -urN bind-9.3.1.orig/conf/named.conf bind-9.3.1/conf/named.conf | ||
| 141 | --- bind-9.3.1.orig/conf/named.conf 1970-01-01 01:00:00.000000000 +0100 | ||
| 142 | +++ bind-9.3.1/conf/named.conf 2005-07-10 22:33:46.000000000 +0200 | ||
| 143 | @@ -0,0 +1,49 @@ | ||
| 144 | +// This is the primary configuration file for the BIND DNS server named. | ||
| 145 | +// | ||
| 146 | +// If you are just adding zones, please do that in /etc/bind/named.conf.local | ||
| 147 | + | ||
| 148 | +include "/etc/bind/named.conf.options"; | ||
| 149 | + | ||
| 150 | +// prime the server with knowledge of the root servers | ||
| 151 | +zone "." { | ||
| 152 | + type hint; | ||
| 153 | + file "/etc/bind/db.root"; | ||
| 154 | +}; | ||
| 155 | + | ||
| 156 | +// be authoritative for the localhost forward and reverse zones, and for | ||
| 157 | +// broadcast zones as per RFC 1912 | ||
| 158 | + | ||
| 159 | +zone "localhost" { | ||
| 160 | + type master; | ||
| 161 | + file "/etc/bind/db.local"; | ||
| 162 | +}; | ||
| 163 | + | ||
| 164 | +zone "127.in-addr.arpa" { | ||
| 165 | + type master; | ||
| 166 | + file "/etc/bind/db.127"; | ||
| 167 | +}; | ||
| 168 | + | ||
| 169 | +zone "0.in-addr.arpa" { | ||
| 170 | + type master; | ||
| 171 | + file "/etc/bind/db.0"; | ||
| 172 | +}; | ||
| 173 | + | ||
| 174 | +zone "255.in-addr.arpa" { | ||
| 175 | + type master; | ||
| 176 | + file "/etc/bind/db.255"; | ||
| 177 | +}; | ||
| 178 | + | ||
| 179 | +// zone "com" { type delegation-only; }; | ||
| 180 | +// zone "net" { type delegation-only; }; | ||
| 181 | + | ||
| 182 | +// From the release notes: | ||
| 183 | +// Because many of our users are uncomfortable receiving undelegated answers | ||
| 184 | +// from root or top level domains, other than a few for whom that behaviour | ||
| 185 | +// has been trusted and expected for quite some length of time, we have now | ||
| 186 | +// introduced the "root-delegations-only" feature which applies delegation-only | ||
| 187 | +// logic to all top level domains, and to the root domain. An exception list | ||
| 188 | +// should be specified, including "MUSEUM" and "DE", and any other top level | ||
| 189 | +// domains from whom undelegated responses are expected and trusted. | ||
| 190 | +// root-delegation-only exclude { "DE"; "MUSEUM"; }; | ||
| 191 | + | ||
| 192 | +include "/etc/bind/named.conf.local"; | ||
| 193 | diff -urN bind-9.3.1.orig/conf/named.conf.local bind-9.3.1/conf/named.conf.local | ||
| 194 | --- bind-9.3.1.orig/conf/named.conf.local 1970-01-01 01:00:00.000000000 +0100 | ||
| 195 | +++ bind-9.3.1/conf/named.conf.local 2005-07-10 22:14:06.000000000 +0200 | ||
| 196 | @@ -0,0 +1,8 @@ | ||
| 197 | +// | ||
| 198 | +// Do any local configuration here | ||
| 199 | +// | ||
| 200 | + | ||
| 201 | +// Consider adding the 1918 zones here, if they are not used in your | ||
| 202 | +// organization | ||
| 203 | +//include "/etc/bind/zones.rfc1918"; | ||
| 204 | + | ||
| 205 | diff -urN bind-9.3.1.orig/conf/named.conf.options bind-9.3.1/conf/named.conf.options | ||
| 206 | --- bind-9.3.1.orig/conf/named.conf.options 1970-01-01 01:00:00.000000000 +0100 | ||
| 207 | +++ bind-9.3.1/conf/named.conf.options 2005-07-10 22:14:06.000000000 +0200 | ||
| 208 | @@ -0,0 +1,24 @@ | ||
| 209 | +options { | ||
| 210 | + directory "/var/cache/bind"; | ||
| 211 | + | ||
| 212 | + // If there is a firewall between you and nameservers you want | ||
| 213 | + // to talk to, you might need to uncomment the query-source | ||
| 214 | + // directive below. Previous versions of BIND always asked | ||
| 215 | + // questions using port 53, but BIND 8.1 and later use an unprivileged | ||
| 216 | + // port by default. | ||
| 217 | + | ||
| 218 | + // query-source address * port 53; | ||
| 219 | + | ||
| 220 | + // If your ISP provided one or more IP addresses for stable | ||
| 221 | + // nameservers, you probably want to use them as forwarders. | ||
| 222 | + // Uncomment the following block, and insert the addresses replacing | ||
| 223 | + // the all-0's placeholder. | ||
| 224 | + | ||
| 225 | + // forwarders { | ||
| 226 | + // 0.0.0.0; | ||
| 227 | + // }; | ||
| 228 | + | ||
| 229 | + auth-nxdomain no; # conform to RFC1035 | ||
| 230 | + | ||
| 231 | +}; | ||
| 232 | + | ||
| 233 | diff -urN bind-9.3.1.orig/conf/zones.rfc1918 bind-9.3.1/conf/zones.rfc1918 | ||
| 234 | --- bind-9.3.1.orig/conf/zones.rfc1918 1970-01-01 01:00:00.000000000 +0100 | ||
| 235 | +++ bind-9.3.1/conf/zones.rfc1918 2005-07-10 22:14:10.000000000 +0200 | ||
| 236 | @@ -0,0 +1,20 @@ | ||
| 237 | +zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 238 | + | ||
| 239 | +zone "16.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 240 | +zone "17.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 241 | +zone "18.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 242 | +zone "19.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 243 | +zone "20.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 244 | +zone "21.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 245 | +zone "22.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 246 | +zone "23.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 247 | +zone "24.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 248 | +zone "25.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 249 | +zone "26.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 250 | +zone "27.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 251 | +zone "28.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 252 | +zone "29.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 253 | +zone "30.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 254 | +zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 255 | + | ||
| 256 | +zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; | ||
| 257 | diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d | ||
| 258 | --- bind-9.3.1.orig/init.d 1970-01-01 01:00:00.000000000 +0100 | ||
| 259 | +++ bind-9.3.1/init.d 2005-07-10 23:09:58.000000000 +0200 | ||
| 260 | @@ -0,0 +1,70 @@ | ||
| 261 | +#!/bin/sh | ||
| 262 | + | ||
| 263 | +PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 264 | + | ||
| 265 | +# for a chrooted server: "-u bind -t /var/lib/named" | ||
| 266 | +# Don't modify this line, change or create /etc/default/bind9. | ||
| 267 | +OPTIONS="" | ||
| 268 | + | ||
| 269 | +test -f /etc/default/bind9 && . /etc/default/bind9 | ||
| 270 | + | ||
| 271 | +test -x /usr/sbin/rndc || exit 0 | ||
| 272 | + | ||
| 273 | +case "$1" in | ||
| 274 | + start) | ||
| 275 | + echo -n "Starting domain name service: named" | ||
| 276 | + | ||
| 277 | + modprobe capability >/dev/null 2>&1 || true | ||
| 278 | + if [ ! -f /etc/bind/rndc.key ]; then | ||
| 279 | + /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | ||
| 280 | + chmod 0640 /etc/bind/rndc.key | ||
| 281 | + fi | ||
| 282 | + if [ -f /var/run/named/named.pid ]; then | ||
| 283 | + ps `cat /var/run/named/named.pid` > /dev/null && exit 1 | ||
| 284 | + fi | ||
| 285 | + | ||
| 286 | + # dirs under /var/run can go away on reboots. | ||
| 287 | + mkdir -p /var/run/named | ||
| 288 | + mkdir -p /var/cache/bind | ||
| 289 | + chmod 775 /var/run/named | ||
| 290 | + chown root:bind /var/run/named >/dev/null 2>&1 || true | ||
| 291 | + | ||
| 292 | + if [ ! -x /usr/sbin/named ]; then | ||
| 293 | + echo "named binary missing - not starting" | ||
| 294 | + exit 1 | ||
| 295 | + fi | ||
| 296 | + if start-stop-daemon --start --quiet --exec /usr/sbin/named \ | ||
| 297 | + --pidfile /var/run/named/named.pid -- $OPTIONS; then | ||
| 298 | + if [ -x /sbin/resolvconf ] ; then | ||
| 299 | + echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo | ||
| 300 | + fi | ||
| 301 | + fi | ||
| 302 | + echo "." | ||
| 303 | + ;; | ||
| 304 | + | ||
| 305 | + stop) | ||
| 306 | + echo -n "Stopping domain name service: named" | ||
| 307 | + if [ -x /sbin/resolvconf ]; then | ||
| 308 | + /sbin/resolvconf -d lo | ||
| 309 | + fi | ||
| 310 | + /usr/sbin/rndc stop >/dev/null 2>&1 | ||
| 311 | + echo "." | ||
| 312 | + ;; | ||
| 313 | + | ||
| 314 | + reload) | ||
| 315 | + /usr/sbin/rndc reload | ||
| 316 | + ;; | ||
| 317 | + | ||
| 318 | + restart|force-reload) | ||
| 319 | + $0 stop | ||
| 320 | + sleep 2 | ||
| 321 | + $0 start | ||
| 322 | + ;; | ||
| 323 | + | ||
| 324 | + *) | ||
| 325 | + echo "Usage: /etc/init.d/bind {start|stop|reload|restart|force-reload}" >&2 | ||
| 326 | + exit 1 | ||
| 327 | + ;; | ||
| 328 | +esac | ||
| 329 | + | ||
| 330 | +exit 0 | ||
diff --git a/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh b/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh deleted file mode 100644 index ef915c0ae5..0000000000 --- a/meta/recipes-connectivity/bind/bind/generate-rndc-key.sh +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [ ! -s /etc/bind/rndc.key ]; then | ||
| 4 | echo -n "Generating /etc/bind/rndc.key:" | ||
| 5 | /usr/sbin/rndc-confgen -a -b 512 -r /dev/urandom | ||
| 6 | chown root:bind /etc/bind/rndc.key | ||
| 7 | chmod 0640 /etc/bind/rndc.key | ||
| 8 | fi | ||
diff --git a/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch b/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch deleted file mode 100644 index 11db95ede1..0000000000 --- a/meta/recipes-connectivity/bind/bind/init.d-add-support-for-read-only-rootfs.patch +++ /dev/null | |||
| @@ -1,65 +0,0 @@ | |||
| 1 | Subject: init.d: add support for read-only rootfs | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [oe specific] | ||
| 4 | |||
| 5 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
| 6 | --- | ||
| 7 | init.d | 40 ++++++++++++++++++++++++++++++++++++++++ | ||
| 8 | 1 file changed, 40 insertions(+) | ||
| 9 | |||
| 10 | diff --git a/init.d b/init.d | ||
| 11 | index 0111ed4..24677c8 100644 | ||
| 12 | --- a/init.d | ||
| 13 | +++ b/init.d | ||
| 14 | @@ -6,8 +6,48 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
| 15 | # Don't modify this line, change or create /etc/default/bind9. | ||
| 16 | OPTIONS="" | ||
| 17 | |||
| 18 | +test -f /etc/default/rcS && . /etc/default/rcS | ||
| 19 | test -f /etc/default/bind9 && . /etc/default/bind9 | ||
| 20 | |||
| 21 | +# This function is here because it's possible that /var and / are on different partitions. | ||
| 22 | +is_on_read_only_partition () { | ||
| 23 | + DIRECTORY=$1 | ||
| 24 | + dir=`readlink -f $DIRECTORY` | ||
| 25 | + while true; do | ||
| 26 | + if [ ! -d "$dir" ]; then | ||
| 27 | + echo "ERROR: $dir is not a directory" | ||
| 28 | + exit 1 | ||
| 29 | + else | ||
| 30 | + for flag in `awk -v dir=$dir '{ if ($2 == dir) { print "FOUND"; split($4,FLAGS,",") } }; \ | ||
| 31 | + END { for (f in FLAGS) print FLAGS[f] }' < /proc/mounts`; do | ||
| 32 | + [ "$flag" = "FOUND" ] && partition="read-write" | ||
| 33 | + [ "$flag" = "ro" ] && { partition="read-only"; break; } | ||
| 34 | + done | ||
| 35 | + if [ "$dir" = "/" -o -n "$partition" ]; then | ||
| 36 | + break | ||
| 37 | + else | ||
| 38 | + dir=`dirname $dir` | ||
| 39 | + fi | ||
| 40 | + fi | ||
| 41 | + done | ||
| 42 | + [ "$partition" = "read-only" ] && echo "yes" || echo "no" | ||
| 43 | +} | ||
| 44 | + | ||
| 45 | +bind_mount () { | ||
| 46 | + olddir=$1 | ||
| 47 | + newdir=$2 | ||
| 48 | + mkdir -p $olddir | ||
| 49 | + cp -a $newdir/* $olddir | ||
| 50 | + mount --bind $olddir $newdir | ||
| 51 | +} | ||
| 52 | + | ||
| 53 | +# Deal with read-only rootfs | ||
| 54 | +if [ "$ROOTFS_READ_ONLY" = "yes" ]; then | ||
| 55 | + [ "$VERBOSE" != "no" ] && echo "WARN: start bind service in read-only rootfs" | ||
| 56 | + [ `is_on_read_only_partition /etc/bind` = "yes" ] && bind_mount /var/volatile/bind/etc /etc/bind | ||
| 57 | + [ `is_on_read_only_partition /var/named` = "yes" ] && bind_mount /var/volatile/bind/named /var/named | ||
| 58 | +fi | ||
| 59 | + | ||
| 60 | test -x /usr/sbin/rndc || exit 0 | ||
| 61 | |||
| 62 | case "$1" in | ||
| 63 | -- | ||
| 64 | 1.7.9.5 | ||
| 65 | |||
diff --git a/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch b/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch deleted file mode 100644 index 146f3e35db..0000000000 --- a/meta/recipes-connectivity/bind/bind/make-etc-initd-bind-stop-work.patch +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | bind: make "/etc/init.d/bind stop" work | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [configuration] | ||
| 4 | |||
| 5 | Add some configurations, make rndc command be able to controls | ||
| 6 | the named daemon. | ||
| 7 | |||
| 8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
| 9 | --- | ||
| 10 | conf/named.conf | 5 +++++ | ||
| 11 | conf/rndc.conf | 5 +++++ | ||
| 12 | 2 files changed, 10 insertions(+), 0 deletions(-) | ||
| 13 | create mode 100644 conf/rndc.conf | ||
| 14 | |||
| 15 | diff --git a/conf/named.conf b/conf/named.conf | ||
| 16 | index 95829cf..c8899e7 100644 | ||
| 17 | --- a/conf/named.conf | ||
| 18 | +++ b/conf/named.conf | ||
| 19 | @@ -47,3 +47,8 @@ zone "255.in-addr.arpa" { | ||
| 20 | // root-delegation-only exclude { "DE"; "MUSEUM"; }; | ||
| 21 | |||
| 22 | include "/etc/bind/named.conf.local"; | ||
| 23 | +include "/etc/bind/rndc.key" ; | ||
| 24 | +controls { | ||
| 25 | + inet 127.0.0.1 allow { localhost; } | ||
| 26 | + keys { rndc-key; }; | ||
| 27 | +}; | ||
| 28 | diff --git a/conf/rndc.conf b/conf/rndc.conf | ||
| 29 | new file mode 100644 | ||
| 30 | index 0000000..a0b481d | ||
| 31 | --- /dev/null | ||
| 32 | +++ b/conf/rndc.conf | ||
| 33 | @@ -0,0 +1,5 @@ | ||
| 34 | +include "/etc/bind/rndc.key"; | ||
| 35 | +options { | ||
| 36 | + default-server localhost; | ||
| 37 | + default-key rndc-key; | ||
| 38 | +}; | ||
| 39 | |||
| 40 | -- | ||
| 41 | 1.7.5.4 | ||
| 42 | |||
diff --git a/meta/recipes-connectivity/bind/bind/named.service b/meta/recipes-connectivity/bind/bind/named.service deleted file mode 100644 index cda56ef015..0000000000 --- a/meta/recipes-connectivity/bind/bind/named.service +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Berkeley Internet Name Domain (DNS) | ||
| 3 | Wants=nss-lookup.target | ||
| 4 | Before=nss-lookup.target | ||
| 5 | After=network.target | ||
| 6 | |||
| 7 | [Service] | ||
| 8 | Type=forking | ||
| 9 | EnvironmentFile=-/etc/default/bind9 | ||
| 10 | PIDFile=/run/named/named.pid | ||
| 11 | |||
| 12 | ExecStartPre=@SBINDIR@/generate-rndc-key.sh | ||
| 13 | ExecStart=@SBINDIR@/named $OPTIONS | ||
| 14 | |||
| 15 | ExecReload=@BASE_BINDIR@/sh -c '@SBINDIR@/rndc reload > /dev/null 2>&1 || @BASE_BINDIR@/kill -HUP $MAINPID' | ||
| 16 | |||
| 17 | ExecStop=@BASE_BINDIR@/sh -c '@SBINDIR@/rndc stop > /dev/null 2>&1 || @BASE_BINDIR@/kill -TERM $MAINPID' | ||
| 18 | |||
| 19 | PrivateTmp=true | ||
| 20 | |||
| 21 | [Install] | ||
| 22 | WantedBy=multi-user.target | ||
diff --git a/meta/recipes-connectivity/bind/bind_9.11.22.bb b/meta/recipes-connectivity/bind/bind_9.11.22.bb deleted file mode 100644 index 7128bd3870..0000000000 --- a/meta/recipes-connectivity/bind/bind_9.11.22.bb +++ /dev/null | |||
| @@ -1,140 +0,0 @@ | |||
| 1 | SUMMARY = "ISC Internet Domain Name Server" | ||
| 2 | HOMEPAGE = "http://www.isc.org/sw/bind/" | ||
| 3 | SECTION = "console/network" | ||
| 4 | |||
| 5 | LICENSE = "ISC & BSD" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=bf39058a7f64b2a934ce14dc9ec1dd45" | ||
| 7 | |||
| 8 | DEPENDS = "openssl libcap zlib" | ||
| 9 | |||
| 10 | SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | ||
| 11 | file://conf.patch \ | ||
| 12 | file://named.service \ | ||
| 13 | file://bind9 \ | ||
| 14 | file://generate-rndc-key.sh \ | ||
| 15 | file://make-etc-initd-bind-stop-work.patch \ | ||
| 16 | file://init.d-add-support-for-read-only-rootfs.patch \ | ||
| 17 | file://bind-ensure-searching-for-json-headers-searches-sysr.patch \ | ||
| 18 | file://0001-configure.in-remove-useless-L-use_openssl-lib.patch \ | ||
| 19 | file://0001-named-lwresd-V-and-start-log-hide-build-options.patch \ | ||
| 20 | file://0001-avoid-start-failure-with-bind-user.patch \ | ||
| 21 | " | ||
| 22 | |||
| 23 | SRC_URI[sha256sum] = "afc6d8015006f1cabf699ff19f517bb8fd9c1811e5231f26baf51c3550262ac9" | ||
| 24 | |||
| 25 | UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/" | ||
| 26 | # stay at 9.11 until 9.16, from 9.16 follow the ESV versions divisible by 4 | ||
| 27 | UPSTREAM_CHECK_REGEX = "(?P<pver>9.(11|16|20|24|28)(\.\d+)+(-P\d+)*)/" | ||
| 28 | |||
| 29 | # BIND >= 9.11.2 need dhcpd >= 4.4.0, | ||
| 30 | # don't report it here since dhcpd is already recent enough. | ||
| 31 | CVE_CHECK_WHITELIST += "CVE-2019-6470" | ||
| 32 | |||
| 33 | inherit autotools update-rc.d systemd useradd pkgconfig multilib_script multilib_header | ||
| 34 | |||
| 35 | MULTILIB_SCRIPTS = "${PN}:${bindir}/bind9-config ${PN}:${bindir}/isc-config.sh" | ||
| 36 | |||
| 37 | # PACKAGECONFIGs readline and libedit should NOT be set at same time | ||
| 38 | PACKAGECONFIG ?= "readline" | ||
| 39 | PACKAGECONFIG[httpstats] = "--with-libxml2=${STAGING_DIR_HOST}${prefix},--without-libxml2,libxml2" | ||
| 40 | PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline" | ||
| 41 | PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit" | ||
| 42 | PACKAGECONFIG[urandom] = "--with-randomdev=/dev/urandom,--with-randomdev=/dev/random,," | ||
| 43 | PACKAGECONFIG[python3] = "--with-python=yes --with-python-install-dir=${PYTHON_SITEPACKAGES_DIR} , --without-python, python3-ply-native," | ||
| 44 | |||
| 45 | ENABLE_IPV6 = "--enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)}" | ||
| 46 | EXTRA_OECONF = " ${ENABLE_IPV6} --with-libtool --enable-threads \ | ||
| 47 | --disable-devpoll --enable-epoll --with-gost=no \ | ||
| 48 | --with-gssapi=no --with-ecdsa=yes --with-eddsa=no \ | ||
| 49 | --with-lmdb=no \ | ||
| 50 | --sysconfdir=${sysconfdir}/bind \ | ||
| 51 | --with-openssl=${STAGING_DIR_HOST}${prefix} \ | ||
| 52 | " | ||
| 53 | |||
| 54 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native distutils3-base', '', d)} | ||
| 55 | |||
| 56 | # dhcp needs .la so keep them | ||
| 57 | REMOVE_LIBTOOL_LA = "0" | ||
| 58 | |||
| 59 | USERADD_PACKAGES = "${PN}" | ||
| 60 | USERADD_PARAM_${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \ | ||
| 61 | --user-group bind" | ||
| 62 | |||
| 63 | INITSCRIPT_NAME = "bind" | ||
| 64 | INITSCRIPT_PARAMS = "defaults" | ||
| 65 | |||
| 66 | SYSTEMD_SERVICE_${PN} = "named.service" | ||
| 67 | |||
| 68 | do_install_prepend() { | ||
| 69 | # clean host path in isc-config.sh before the hardlink created | ||
| 70 | # by "make install": | ||
| 71 | # bind9-config -> isc-config.sh | ||
| 72 | sed -i -e "s,${STAGING_LIBDIR},${libdir}," ${B}/isc-config.sh | ||
| 73 | } | ||
| 74 | |||
| 75 | do_install_append() { | ||
| 76 | |||
| 77 | rmdir "${D}${localstatedir}/run" | ||
| 78 | rmdir --ignore-fail-on-non-empty "${D}${localstatedir}" | ||
| 79 | install -d -o bind "${D}${localstatedir}/cache/bind" | ||
| 80 | install -d "${D}${sysconfdir}/bind" | ||
| 81 | install -d "${D}${sysconfdir}/init.d" | ||
| 82 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" | ||
| 83 | install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind" | ||
| 84 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then | ||
| 85 | sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' \ | ||
| 86 | ${D}${sbindir}/dnssec-coverage \ | ||
| 87 | ${D}${sbindir}/dnssec-checkds \ | ||
| 88 | ${D}${sbindir}/dnssec-keymgr | ||
| 89 | fi | ||
| 90 | |||
| 91 | # Install systemd related files | ||
| 92 | install -d ${D}${sbindir} | ||
| 93 | install -m 755 ${WORKDIR}/generate-rndc-key.sh ${D}${sbindir} | ||
| 94 | install -d ${D}${systemd_unitdir}/system | ||
| 95 | install -m 0644 ${WORKDIR}/named.service ${D}${systemd_unitdir}/system | ||
| 96 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
| 97 | -e 's,@SBINDIR@,${sbindir},g' \ | ||
| 98 | ${D}${systemd_unitdir}/system/named.service | ||
| 99 | |||
| 100 | install -d ${D}${sysconfdir}/default | ||
| 101 | install -m 0644 ${WORKDIR}/bind9 ${D}${sysconfdir}/default | ||
| 102 | |||
| 103 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 104 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
| 105 | echo "d /run/named 0755 bind bind - -" > ${D}${sysconfdir}/tmpfiles.d/bind.conf | ||
| 106 | fi | ||
| 107 | |||
| 108 | oe_multilib_header isc/platform.h | ||
| 109 | } | ||
| 110 | |||
| 111 | CONFFILES_${PN} = " \ | ||
| 112 | ${sysconfdir}/bind/named.conf \ | ||
| 113 | ${sysconfdir}/bind/named.conf.local \ | ||
| 114 | ${sysconfdir}/bind/named.conf.options \ | ||
| 115 | ${sysconfdir}/bind/db.0 \ | ||
| 116 | ${sysconfdir}/bind/db.127 \ | ||
| 117 | ${sysconfdir}/bind/db.empty \ | ||
| 118 | ${sysconfdir}/bind/db.local \ | ||
| 119 | ${sysconfdir}/bind/db.root \ | ||
| 120 | " | ||
| 121 | |||
| 122 | ALTERNATIVE_${PN}-utils = "nslookup" | ||
| 123 | ALTERNATIVE_LINK_NAME[nslookup] = "${bindir}/nslookup" | ||
| 124 | ALTERNATIVE_PRIORITY = "100" | ||
| 125 | |||
| 126 | PACKAGE_BEFORE_PN += "${PN}-utils" | ||
| 127 | FILES_${PN}-utils = "${bindir}/host ${bindir}/dig ${bindir}/mdig ${bindir}/nslookup ${bindir}/nsupdate" | ||
| 128 | FILES_${PN}-dev += "${bindir}/isc-config.h" | ||
| 129 | FILES_${PN} += "${sbindir}/generate-rndc-key.sh" | ||
| 130 | |||
| 131 | PACKAGE_BEFORE_PN += "${PN}-libs" | ||
| 132 | FILES_${PN}-libs = "${libdir}/*.so*" | ||
| 133 | FILES_${PN}-staticdev += "${libdir}/*.la" | ||
| 134 | |||
| 135 | PACKAGE_BEFORE_PN += "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-bind', '', d)}" | ||
| 136 | FILES_python3-bind = "${sbindir}/dnssec-coverage ${sbindir}/dnssec-checkds \ | ||
| 137 | ${sbindir}/dnssec-keymgr ${PYTHON_SITEPACKAGES_DIR}" | ||
| 138 | |||
| 139 | RDEPENDS_${PN}-dev = "" | ||
| 140 | RDEPENDS_python3-bind = "python3-core python3-ply" | ||
