diff options
| author | Armin Kuster <akuster808@gmail.com> | 2018-07-01 15:52:01 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-04 00:02:17 +0100 |
| commit | e9f8826681b02f3fe1417e15f554ba1fa62a2d12 (patch) | |
| tree | a480f82269b0134645a397a7d3bedf0329a7a615 | |
| parent | c026c365eb66dc85e6eee3fa477222c4da3a0ca8 (diff) | |
| download | poky-e9f8826681b02f3fe1417e15f554ba1fa62a2d12.tar.gz | |
bind: update to ESV version 9.11.3
LIC_FILES_CHKSUM changed do to updated year
removed:
dont-test-on-host.patch, no longer implemented
drop use-python3-and-fix-install-lib-path.patch, they added the ability to pass in lib dir loctions
drop bind-confgen-build-unix.o-once.patch, fix included in update
Refresh other patches:
add python3 flag for PACKAGECONFIG to pull in python
add new config option --with-eddsa=no (needs openssl support not released)
Python support is disaled by default now.
Acked-by: Martin Hundebøll <mnhu@prevas.dk>
(From OE-Core rev: c37207d0aca5ad1ec2b45813274931be458ee7ed)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch | 13 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch | 13 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bind/bind/bind-confgen-build-unix.o-once.patch | 48 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bind/bind/bind-ensure-searching-for-json-headers-searches-sysr.patch | 13 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bind/bind/dont-test-on-host.patch | 17 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bind/bind/use-python3-and-fix-install-lib-path.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bind/bind_9.11.3.bb (renamed from meta/recipes-connectivity/bind/bind_9.10.6.bb) | 81 |
7 files changed, 59 insertions, 162 deletions
diff --git a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch b/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch index 1215093716..a8d601dcaa 100644 --- a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch +++ b/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch | |||
| @@ -7,11 +7,11 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | |||
| 7 | lib/dns/gen.c | 2 +- | 7 | lib/dns/gen.c | 2 +- |
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 | 9 | ||
| 10 | diff --git a/lib/dns/gen.c b/lib/dns/gen.c | 10 | Index: bind-9.11.3/lib/dns/gen.c |
| 11 | index 7a7dafb..51a0435 100644 | 11 | =================================================================== |
| 12 | --- a/lib/dns/gen.c | 12 | --- bind-9.11.3.orig/lib/dns/gen.c |
| 13 | +++ b/lib/dns/gen.c | 13 | +++ bind-9.11.3/lib/dns/gen.c |
| 14 | @@ -148,7 +148,7 @@ static const char copyright[] = | 14 | @@ -130,7 +130,7 @@ static const char copyright[] = |
| 15 | #define TYPECLASSBUF (TYPECLASSLEN + 1) | 15 | #define TYPECLASSBUF (TYPECLASSLEN + 1) |
| 16 | #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" | 16 | #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" |
| 17 | #define ATTRIBUTESIZE 256 | 17 | #define ATTRIBUTESIZE 256 |
| @@ -20,6 +20,3 @@ index 7a7dafb..51a0435 100644 | |||
| 20 | 20 | ||
| 21 | static struct cc { | 21 | static struct cc { |
| 22 | struct cc *next; | 22 | struct cc *next; |
| 23 | -- | ||
| 24 | 1.9.1 | ||
| 25 | |||
diff --git a/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch b/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch index 1ed858cd3f..01874a4407 100644 --- a/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch +++ b/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch | |||
| @@ -13,11 +13,11 @@ Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | |||
| 13 | lib/dns/gen.c | 4 ++++ | 13 | lib/dns/gen.c | 4 ++++ |
| 14 | 1 file changed, 4 insertions(+) | 14 | 1 file changed, 4 insertions(+) |
| 15 | 15 | ||
| 16 | diff --git a/lib/dns/gen.c b/lib/dns/gen.c | 16 | Index: bind-9.11.3/lib/dns/gen.c |
| 17 | index 51a0435..3d7214f 100644 | 17 | =================================================================== |
| 18 | --- a/lib/dns/gen.c | 18 | --- bind-9.11.3.orig/lib/dns/gen.c |
| 19 | +++ b/lib/dns/gen.c | 19 | +++ bind-9.11.3/lib/dns/gen.c |
| 20 | @@ -148,7 +148,11 @@ static const char copyright[] = | 20 | @@ -130,7 +130,11 @@ static const char copyright[] = |
| 21 | #define TYPECLASSBUF (TYPECLASSLEN + 1) | 21 | #define TYPECLASSBUF (TYPECLASSLEN + 1) |
| 22 | #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" | 22 | #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" |
| 23 | #define ATTRIBUTESIZE 256 | 23 | #define ATTRIBUTESIZE 256 |
| @@ -29,6 +29,3 @@ index 51a0435..3d7214f 100644 | |||
| 29 | 29 | ||
| 30 | static struct cc { | 30 | static struct cc { |
| 31 | struct cc *next; | 31 | struct cc *next; |
| 32 | -- | ||
| 33 | 1.7.9.5 | ||
| 34 | |||
diff --git a/meta/recipes-connectivity/bind/bind/bind-confgen-build-unix.o-once.patch b/meta/recipes-connectivity/bind/bind/bind-confgen-build-unix.o-once.patch deleted file mode 100644 index 8bc4ea30f8..0000000000 --- a/meta/recipes-connectivity/bind/bind/bind-confgen-build-unix.o-once.patch +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | From 9b40619ff6fddfef2758ba797789f8487f412df3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Mon, 16 Feb 2015 00:50:01 -0800 | ||
| 4 | Subject: [PATCH] confgen: don't build unix.o twice | ||
| 5 | |||
| 6 | Fixed: | ||
| 7 | unix/os.o: file not recognized: File truncated | ||
| 8 | collect2: error: ld returned 1 exit status | ||
| 9 | |||
| 10 | This is because os.o was built twice: | ||
| 11 | * The implicity rule (depends on unix/os.o) | ||
| 12 | * The "make all" in unix subdir (depends on unix/os.o) | ||
| 13 | |||
| 14 | Depend on subdirs which is unix only rather than unix/os.o will fix the | ||
| 15 | problem. | ||
| 16 | |||
| 17 | Upstream-Status: Pending | ||
| 18 | |||
| 19 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 20 | |||
| 21 | Update context(trailing whitespace) for version 9.10.5-P3. | ||
| 22 | |||
| 23 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 24 | --- | ||
| 25 | bin/confgen/Makefile.in | 4 ++-- | ||
| 26 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 27 | |||
| 28 | diff --git a/bin/confgen/Makefile.in b/bin/confgen/Makefile.in | ||
| 29 | index dca272f..02becce 100644 | ||
| 30 | --- a/bin/confgen/Makefile.in | ||
| 31 | +++ b/bin/confgen/Makefile.in | ||
| 32 | @@ -74,11 +74,11 @@ rndc-confgen.@O@: rndc-confgen.c | ||
| 33 | ddns-confgen.@O@: ddns-confgen.c | ||
| 34 | ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c ${srcdir}/ddns-confgen.c | ||
| 35 | |||
| 36 | -rndc-confgen@EXEEXT@: rndc-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS} ${CONFDEPLIBS} | ||
| 37 | +rndc-confgen@EXEEXT@: rndc-confgen.@O@ util.@O@ keygen.@O@ ${CONFDEPLIBS} $(SUBDIRS) | ||
| 38 | export BASEOBJS="rndc-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS}"; \ | ||
| 39 | ${FINALBUILDCMD} | ||
| 40 | |||
| 41 | -ddns-confgen@EXEEXT@: ddns-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS} ${CONFDEPLIBS} | ||
| 42 | +ddns-confgen@EXEEXT@: ddns-confgen.@O@ util.@O@ keygen.@O@ ${CONFDEPLIBS} $(SUBDIRS) | ||
| 43 | export BASEOBJS="ddns-confgen.@O@ util.@O@ keygen.@O@ ${UOBJS}"; \ | ||
| 44 | ${FINALBUILDCMD} | ||
| 45 | |||
| 46 | -- | ||
| 47 | 1.7.9.5 | ||
| 48 | |||
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 index 13df3bb0e9..37e210e6da 100644 --- 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 | |||
| @@ -31,11 +31,11 @@ Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> | |||
| 31 | configure.in | 2 +- | 31 | configure.in | 2 +- |
| 32 | 1 file changed, 1 insertion(+), 1 deletion(-) | 32 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 33 | 33 | ||
| 34 | diff --git a/configure.in b/configure.in | 34 | Index: bind-9.11.3/configure.in |
| 35 | index c9ef3a601343..17a1f613e9ac 100644 | 35 | =================================================================== |
| 36 | --- a/configure.in | 36 | --- bind-9.11.3.orig/configure.in |
| 37 | +++ b/configure.in | 37 | +++ bind-9.11.3/configure.in |
| 38 | @@ -2139,7 +2139,7 @@ case "$use_libjson" in | 38 | @@ -2574,7 +2574,7 @@ case "$use_libjson" in |
| 39 | libjson_libs="" | 39 | libjson_libs="" |
| 40 | ;; | 40 | ;; |
| 41 | auto|yes) | 41 | auto|yes) |
| @@ -44,6 +44,3 @@ index c9ef3a601343..17a1f613e9ac 100644 | |||
| 44 | do | 44 | do |
| 45 | if test -f "${d}/include/json/json.h" | 45 | if test -f "${d}/include/json/json.h" |
| 46 | then | 46 | then |
| 47 | -- | ||
| 48 | 2.4.2 | ||
| 49 | |||
diff --git a/meta/recipes-connectivity/bind/bind/dont-test-on-host.patch b/meta/recipes-connectivity/bind/bind/dont-test-on-host.patch deleted file mode 100644 index b02ecb1061..0000000000 --- a/meta/recipes-connectivity/bind/bind/dont-test-on-host.patch +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 4 | |||
| 5 | Index: bind-9.9.5/bin/Makefile.in | ||
| 6 | =================================================================== | ||
| 7 | --- bind-9.9.5.orig/bin/Makefile.in | ||
| 8 | +++ bind-9.9.5/bin/Makefile.in | ||
| 9 | @@ -19,7 +19,7 @@ srcdir = @srcdir@ | ||
| 10 | VPATH = @srcdir@ | ||
| 11 | top_srcdir = @top_srcdir@ | ||
| 12 | |||
| 13 | -SUBDIRS = named rndc dig delv dnssec tools tests nsupdate \ | ||
| 14 | +SUBDIRS = named rndc dig delv dnssec tools nsupdate \ | ||
| 15 | check confgen @PYTHON_TOOLS@ @PKCS11_TOOLS@ | ||
| 16 | TARGETS = | ||
| 17 | |||
diff --git a/meta/recipes-connectivity/bind/bind/use-python3-and-fix-install-lib-path.patch b/meta/recipes-connectivity/bind/bind/use-python3-and-fix-install-lib-path.patch deleted file mode 100644 index 9829f15881..0000000000 --- a/meta/recipes-connectivity/bind/bind/use-python3-and-fix-install-lib-path.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | Use python3 rather default python which maybe links to python2 for oe. And add | ||
| 2 | option for setup.py to install files to right directory. | ||
| 3 | |||
| 4 | Upstream-Status: Inappropriate [OE specific] | ||
| 5 | |||
| 6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 7 | --- | ||
| 8 | diff --git a/bin/python/Makefile.in b/bin/python/Makefile.in | ||
| 9 | index a43a3c1..2e727f2 100644 | ||
| 10 | --- a/bin/python/Makefile.in | ||
| 11 | +++ b/bin/python/Makefile.in | ||
| 12 | @@ -55,9 +55,9 @@ install:: ${TARGETS} installdirs | ||
| 13 | ${INSTALL_DATA} ${srcdir}/dnssec-coverage.8 ${DESTDIR}${mandir}/man8 | ||
| 14 | if test -n "${PYTHON}" ; then \ | ||
| 15 | if test -n "${DESTDIR}" ; then \ | ||
| 16 | - ${PYTHON} ${srcdir}/setup.py install --root=${DESTDIR} --prefix=${prefix} ; \ | ||
| 17 | + ${PYTHON} ${srcdir}/setup.py install --root=${DESTDIR} --prefix=${prefix} --install-lib=${PYTHON_SITEPACKAGES_DIR} ; \ | ||
| 18 | else \ | ||
| 19 | - ${PYTHON} ${srcdir}/setup.py install --prefix=${prefix} ; \ | ||
| 20 | + ${PYTHON} ${srcdir}/setup.py install --prefix=${prefix} --install-lib=${PYTHON_SITEPACKAGES_DIR} ; \ | ||
| 21 | fi \ | ||
| 22 | fi | ||
| 23 | |||
| 24 | diff --git a/configure.in b/configure.in | ||
| 25 | index 314bb90..867923e 100644 | ||
| 26 | --- a/configure.in | ||
| 27 | +++ b/configure.in | ||
| 28 | @@ -227,7 +227,7 @@ AC_ARG_WITH(python, | ||
| 29 | [ --with-python=PATH specify path to python interpreter], | ||
| 30 | use_python="$withval", use_python="unspec") | ||
| 31 | |||
| 32 | -python="python python3 python3.5 python3.4 python3.3 python3.2 python2 python2.7" | ||
| 33 | +python="python3 python3.5 python3.4 python3.3 python3.2 python2 python2.7" | ||
| 34 | |||
| 35 | testargparse='try: import argparse | ||
| 36 | except: exit(1)' | ||
diff --git a/meta/recipes-connectivity/bind/bind_9.10.6.bb b/meta/recipes-connectivity/bind/bind_9.11.3.bb index 20c8d7b55a..32f5365e44 100644 --- a/meta/recipes-connectivity/bind/bind_9.10.6.bb +++ b/meta/recipes-connectivity/bind/bind_9.11.3.bb | |||
| @@ -3,51 +3,50 @@ HOMEPAGE = "http://www.isc.org/sw/bind/" | |||
| 3 | SECTION = "console/network" | 3 | SECTION = "console/network" |
| 4 | 4 | ||
| 5 | LICENSE = "ISC & BSD" | 5 | LICENSE = "ISC & BSD" |
| 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=dba46507446198119bcde32a4feaab43" | 6 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6ba7c9fe0c888a943c79c93e6de744fb" |
| 7 | 7 | ||
| 8 | DEPENDS = "openssl libcap" | 8 | DEPENDS = "openssl libcap zlib" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | 10 | SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ |
| 11 | file://conf.patch \ | 11 | file://conf.patch \ |
| 12 | file://make-etc-initd-bind-stop-work.patch \ | ||
| 13 | file://dont-test-on-host.patch \ | ||
| 14 | file://generate-rndc-key.sh \ | ||
| 15 | file://named.service \ | 12 | file://named.service \ |
| 16 | file://bind9 \ | 13 | file://bind9 \ |
| 14 | file://generate-rndc-key.sh \ | ||
| 15 | file://make-etc-initd-bind-stop-work.patch \ | ||
| 17 | file://init.d-add-support-for-read-only-rootfs.patch \ | 16 | file://init.d-add-support-for-read-only-rootfs.patch \ |
| 18 | file://bind-confgen-build-unix.o-once.patch \ | ||
| 19 | file://0001-build-use-pkg-config-to-find-libxml2.patch \ | ||
| 20 | file://bind-ensure-searching-for-json-headers-searches-sysr.patch \ | 17 | file://bind-ensure-searching-for-json-headers-searches-sysr.patch \ |
| 21 | file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \ | 18 | file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \ |
| 22 | file://0001-lib-dns-gen.c-fix-too-long-error.patch \ | 19 | file://0001-lib-dns-gen.c-fix-too-long-error.patch \ |
| 23 | file://use-python3-and-fix-install-lib-path.patch \ | 20 | " |
| 24 | " | ||
| 25 | 21 | ||
| 26 | SRC_URI[md5sum] = "84e663284b17aee0df1ce6f248b137d7" | 22 | SRC_URI[md5sum] = "4ed2a3f235595eadbd763b7ecb687ca0" |
| 27 | SRC_URI[sha256sum] = "17bbcd2bd7b1d32f5ba4b30d5dbe8a39bce200079048073d1e0d050fdf47e69d" | 23 | SRC_URI[sha256sum] = "0d9dde14b2ec7f9cdc3b69f19540c7a2e4eee7b6c727965dfae48810965876f5" |
| 28 | 24 | ||
| 29 | UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/" | 25 | UPSTREAM_CHECK_URI = "https://ftp.isc.org/isc/bind9/" |
| 30 | UPSTREAM_CHECK_REGEX = "(?P<pver>9(\.\d+)+(-P\d+)*)/" | 26 | UPSTREAM_CHECK_REGEX = "(?P<pver>9(\.\d+)+(-P\d+)*)/" |
| 31 | 27 | ||
| 28 | inherit autotools update-rc.d systemd useradd pkgconfig | ||
| 29 | |||
| 30 | # PACKAGECONFIGs readline and libedit should NOT be set at same time | ||
| 31 | PACKAGECONFIG ?= "readline" | ||
| 32 | PACKAGECONFIG[httpstats] = "--with-libxml2=${STAGING_DIR_HOST}${prefix},--without-libxml2,libxml2" | ||
| 33 | PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline" | ||
| 34 | PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit" | ||
| 35 | PACKAGECONFIG[urandom] = "--with-randomdev=/dev/urandom,--with-randomdev=/dev/random,," | ||
| 36 | PACKAGECONFIG[python3] = "--with-python=${PYTHON} --with-python-install-dir=${D}/${PYTHON_SITEPACKAGES_DIR} , --without-python, python3-ply-native," | ||
| 32 | 37 | ||
| 33 | ENABLE_IPV6 = "--enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)}" | 38 | ENABLE_IPV6 = "--enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)}" |
| 34 | EXTRA_OECONF = " ${ENABLE_IPV6} --with-libtool --enable-threads \ | 39 | EXTRA_OECONF = " ${ENABLE_IPV6} --with-libtool --enable-threads \ |
| 35 | --disable-devpoll --enable-epoll --with-gost=no \ | 40 | --disable-devpoll --enable-epoll --with-gost=no \ |
| 36 | --with-gssapi=no --with-ecdsa=yes \ | 41 | --with-gssapi=no --with-ecdsa=yes --with-eddsa=no \ |
| 37 | --sysconfdir=${sysconfdir}/bind \ | 42 | --sysconfdir=${sysconfdir}/bind \ |
| 38 | --with-openssl=${STAGING_DIR_HOST}${prefix} \ | 43 | --with-openssl=${STAGING_DIR_HOST}${prefix} \ |
| 39 | " | 44 | " |
| 40 | 45 | ||
| 41 | inherit autotools update-rc.d systemd useradd pkgconfig python3-dir | 46 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native distutils3-base', '', d)} |
| 42 | 47 | ||
| 43 | export PYTHON_SITEPACKAGES_DIR | 48 | # dhcp needs .la so keep them |
| 44 | 49 | REMOVE_LIBTOOL_LA = "0" | |
| 45 | # PACKAGECONFIGs readline and libedit should NOT be set at same time | ||
| 46 | PACKAGECONFIG ?= "readline" | ||
| 47 | PACKAGECONFIG[httpstats] = "--with-libxml2,--without-libxml2,libxml2" | ||
| 48 | PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline" | ||
| 49 | PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit" | ||
| 50 | PACKAGECONFIG[urandom] = "--with-randomdev=/dev/urandom,--with-randomdev=/dev/random,," | ||
| 51 | 50 | ||
| 52 | USERADD_PACKAGES = "${PN}" | 51 | USERADD_PACKAGES = "${PN}" |
| 53 | USERADD_PARAM_${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \ | 52 | USERADD_PARAM_${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \ |
| @@ -58,19 +57,6 @@ INITSCRIPT_PARAMS = "defaults" | |||
| 58 | 57 | ||
| 59 | SYSTEMD_SERVICE_${PN} = "named.service" | 58 | SYSTEMD_SERVICE_${PN} = "named.service" |
| 60 | 59 | ||
| 61 | PARALLEL_MAKE = "" | ||
| 62 | |||
| 63 | RDEPENDS_${PN} = "python3-core" | ||
| 64 | RDEPENDS_${PN}-dev = "" | ||
| 65 | |||
| 66 | PACKAGE_BEFORE_PN += "${PN}-utils" | ||
| 67 | FILES_${PN}-utils = "${bindir}/host ${bindir}/dig" | ||
| 68 | FILES_${PN}-dev += "${bindir}/isc-config.h" | ||
| 69 | FILES_${PN} += "${sbindir}/generate-rndc-key.sh ${PYTHON_SITEPACKAGES_DIR}" | ||
| 70 | |||
| 71 | PACKAGE_BEFORE_PN += "${PN}-libs" | ||
| 72 | FILES_${PN}-libs = "${libdir}/*.so*" | ||
| 73 | |||
| 74 | do_install_prepend() { | 60 | do_install_prepend() { |
| 75 | # clean host path in isc-config.sh before the hardlink created | 61 | # clean host path in isc-config.sh before the hardlink created |
| 76 | # by "make install": | 62 | # by "make install": |
| @@ -79,6 +65,7 @@ do_install_prepend() { | |||
| 79 | } | 65 | } |
| 80 | 66 | ||
| 81 | do_install_append() { | 67 | do_install_append() { |
| 68 | |||
| 82 | rm "${D}${bindir}/nslookup" | 69 | rm "${D}${bindir}/nslookup" |
| 83 | rm "${D}${mandir}/man1/nslookup.1" | 70 | rm "${D}${mandir}/man1/nslookup.1" |
| 84 | rmdir "${D}${localstatedir}/run" | 71 | rmdir "${D}${localstatedir}/run" |
| @@ -88,7 +75,12 @@ do_install_append() { | |||
| 88 | install -d "${D}${sysconfdir}/init.d" | 75 | install -d "${D}${sysconfdir}/init.d" |
| 89 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" | 76 | install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/" |
| 90 | install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind" | 77 | install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind" |
| 91 | sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' ${D}${sbindir}/dnssec-coverage ${D}${sbindir}/dnssec-checkds | 78 | if ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'true', 'false', d)}; then |
| 79 | sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' \ | ||
| 80 | ${D}${sbindir}/dnssec-coverage \ | ||
| 81 | ${D}${sbindir}/dnssec-checkds \ | ||
| 82 | ${D}${sbindir}/dnssec-keymgr | ||
| 83 | fi | ||
| 92 | 84 | ||
| 93 | # Install systemd related files | 85 | # Install systemd related files |
| 94 | install -d ${D}${sbindir} | 86 | install -d ${D}${sbindir} |
| @@ -106,8 +98,6 @@ do_install_append() { | |||
| 106 | install -d ${D}${sysconfdir}/tmpfiles.d | 98 | install -d ${D}${sysconfdir}/tmpfiles.d |
| 107 | echo "d /run/named 0755 bind bind - -" > ${D}${sysconfdir}/tmpfiles.d/bind.conf | 99 | echo "d /run/named 0755 bind bind - -" > ${D}${sysconfdir}/tmpfiles.d/bind.conf |
| 108 | fi | 100 | fi |
| 109 | |||
| 110 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/isc/*.pyc | ||
| 111 | } | 101 | } |
| 112 | 102 | ||
| 113 | CONFFILES_${PN} = " \ | 103 | CONFFILES_${PN} = " \ |
| @@ -121,3 +111,20 @@ CONFFILES_${PN} = " \ | |||
| 121 | ${sysconfdir}/bind/db.root \ | 111 | ${sysconfdir}/bind/db.root \ |
| 122 | " | 112 | " |
| 123 | 113 | ||
| 114 | PACKAGE_BEFORE_PN += "${PN}-utils" | ||
| 115 | FILES_${PN}-utils = "${bindir}/host ${bindir}/dig ${bindir}/mdig" | ||
| 116 | FILES_${PN}-dev += "${bindir}/isc-config.h" | ||
| 117 | FILES_${PN} += "${sbindir}/generate-rndc-key.sh" | ||
| 118 | |||
| 119 | PACKAGE_BEFORE_PN += "${PN}-libs" | ||
| 120 | FILES_${PN}-libs = "${libdir}/*.so*" | ||
| 121 | FILES_${PN}-staticdev += "${libdir}/*.la" | ||
| 122 | |||
| 123 | PACKAGE_BEFORE_PN += "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-bind', '', d)}" | ||
| 124 | FILES_python3-bind = "${sbindir}/dnssec-coverage ${sbindir}/dnssec-checkds \ | ||
| 125 | ${sbindir}/dnssec-keymgr ${PYTHON_SITEPACKAGES_DIR}" | ||
| 126 | |||
| 127 | RDEPENDS_${PN} = "bash" | ||
| 128 | RDEPENDS_${PN}-utils = "bash" | ||
| 129 | RDEPENDS_${PN}-dev = "" | ||
| 130 | RDEPENDS_python3-bind = "python3-core python3-ply" | ||
