2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "ISC Internet Domain Name Server"
|
2010-11-30 05:35:42 +00:00
|
|
|
HOMEPAGE = "http://www.isc.org/sw/bind/"
|
|
|
|
SECTION = "console/network"
|
|
|
|
|
2011-10-05 03:52:23 +00:00
|
|
|
LICENSE = "ISC & BSD"
|
2015-05-04 08:43:39 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=0a95f52a0ab6c5f52dedc9a45e7abb3f"
|
2010-11-30 05:35:42 +00:00
|
|
|
|
2012-02-28 01:27:25 +00:00
|
|
|
DEPENDS = "openssl libcap"
|
2010-11-30 05:35:42 +00:00
|
|
|
|
2011-03-14 22:33:13 +00:00
|
|
|
SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \
|
2011-10-17 15:25:34 +00:00
|
|
|
file://conf.patch \
|
2012-11-15 02:27:54 +00:00
|
|
|
file://make-etc-initd-bind-stop-work.patch \
|
2013-09-24 13:20:08 +00:00
|
|
|
file://mips1-not-support-opcode.diff \
|
2014-03-04 21:56:06 +00:00
|
|
|
file://dont-test-on-host.patch \
|
2014-04-23 09:40:51 +00:00
|
|
|
file://generate-rndc-key.sh \
|
|
|
|
file://named.service \
|
2014-08-19 10:04:42 +00:00
|
|
|
file://bind9 \
|
2014-03-27 02:34:41 +00:00
|
|
|
file://init.d-add-support-for-read-only-rootfs.patch \
|
2015-02-18 03:28:43 +00:00
|
|
|
file://bind-confgen-build-unix.o-once.patch \
|
2015-05-07 14:30:53 +00:00
|
|
|
file://0001-build-use-pkg-config-to-find-libxml2.patch \
|
2015-06-09 16:13:51 +00:00
|
|
|
file://bind-ensure-searching-for-json-headers-searches-sysr.patch \
|
2015-09-09 05:40:03 +00:00
|
|
|
file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \
|
2015-09-17 07:53:07 +00:00
|
|
|
file://0001-lib-dns-gen.c-fix-too-long-error.patch \
|
2016-04-13 06:32:15 +00:00
|
|
|
file://CVE-2016-1285.patch \
|
|
|
|
file://CVE-2016-1286_1.patch \
|
|
|
|
file://CVE-2016-1286_2.patch \
|
2016-04-15 12:03:17 +00:00
|
|
|
file://CVE-2016-2088.patch \
|
2016-10-14 14:11:04 +00:00
|
|
|
file://CVE-2016-2775.patch \
|
|
|
|
file://CVE-2016-2776.patch \
|
2017-04-13 05:48:12 +00:00
|
|
|
file://CVE-2016-8864.patch \
|
2017-04-13 05:48:13 +00:00
|
|
|
file://CVE-2016-6170.patch \
|
2015-05-07 14:30:53 +00:00
|
|
|
"
|
2010-11-30 05:35:42 +00:00
|
|
|
|
2016-01-24 13:13:04 +00:00
|
|
|
SRC_URI[md5sum] = "bcf7e772b616f7259420a3edc5df350a"
|
|
|
|
SRC_URI[sha256sum] = "690810d1fbb72afa629e74638d19cd44e28d2b2e5eb63f55c705ad85d1a4cb83"
|
2010-12-30 06:37:02 +00:00
|
|
|
|
2014-04-24 18:59:20 +00:00
|
|
|
ENABLE_IPV6 = "--enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)}"
|
2013-05-29 15:09:58 +00:00
|
|
|
EXTRA_OECONF = " ${ENABLE_IPV6} --with-randomdev=/dev/random --disable-threads \
|
2011-10-05 03:52:23 +00:00
|
|
|
--disable-devpoll --disable-epoll --with-gost=no \
|
2014-03-04 21:56:06 +00:00
|
|
|
--with-gssapi=no --with-ecdsa=yes \
|
2010-11-30 05:35:42 +00:00
|
|
|
--sysconfdir=${sysconfdir}/bind \
|
2015-01-07 13:51:18 +00:00
|
|
|
--with-openssl=${STAGING_LIBDIR}/.. \
|
2010-11-30 05:35:42 +00:00
|
|
|
"
|
2015-05-12 02:13:53 +00:00
|
|
|
inherit autotools update-rc.d systemd useradd pkgconfig
|
|
|
|
|
2015-12-22 01:04:54 +00:00
|
|
|
# PACKAGECONFIGs readline and libedit should NOT be set at same time
|
|
|
|
PACKAGECONFIG ?= "readline"
|
2015-05-07 14:30:54 +00:00
|
|
|
PACKAGECONFIG[httpstats] = "--with-libxml2,--without-libxml2,libxml2"
|
2015-12-22 01:04:54 +00:00
|
|
|
PACKAGECONFIG[readline] = "--with-readline=-lreadline,,readline"
|
|
|
|
PACKAGECONFIG[libedit] = "--with-readline=-ledit,,libedit"
|
2014-08-19 10:04:42 +00:00
|
|
|
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
2016-03-22 20:36:19 +00:00
|
|
|
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/cache/bind --no-create-home \
|
2014-08-19 10:04:42 +00:00
|
|
|
--user-group bind"
|
2010-11-30 05:35:42 +00:00
|
|
|
|
|
|
|
INITSCRIPT_NAME = "bind"
|
|
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
|
|
|
2014-04-23 09:40:51 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "named.service"
|
|
|
|
|
2015-02-23 16:13:25 +00:00
|
|
|
PARALLEL_MAKE = ""
|
2010-11-30 05:35:42 +00:00
|
|
|
|
2016-06-02 09:25:38 +00:00
|
|
|
RDEPENDS_${PN} = "python3-core"
|
2015-08-27 15:58:52 +00:00
|
|
|
RDEPENDS_${PN}-dev = ""
|
2014-03-04 21:56:06 +00:00
|
|
|
|
2014-11-13 14:08:20 +00:00
|
|
|
PACKAGE_BEFORE_PN += "${PN}-utils"
|
2014-03-25 11:00:12 +00:00
|
|
|
FILES_${PN}-utils = "${bindir}/host ${bindir}/dig"
|
2010-11-30 05:35:42 +00:00
|
|
|
FILES_${PN}-dev += "${bindir}/isc-config.h"
|
2014-04-23 09:40:51 +00:00
|
|
|
FILES_${PN} += "${sbindir}/generate-rndc-key.sh"
|
2010-11-30 05:35:42 +00:00
|
|
|
|
2014-10-21 08:12:51 +00:00
|
|
|
do_install_prepend() {
|
|
|
|
# clean host path in isc-config.sh before the hardlink created
|
|
|
|
# by "make install":
|
|
|
|
# bind9-config -> isc-config.sh
|
2015-05-12 02:13:53 +00:00
|
|
|
sed -i -e "s,${STAGING_LIBDIR},${libdir}," ${B}/isc-config.sh
|
2014-10-21 08:12:51 +00:00
|
|
|
}
|
|
|
|
|
2010-11-30 05:35:42 +00:00
|
|
|
do_install_append() {
|
2011-06-15 14:26:06 +00:00
|
|
|
rm "${D}${bindir}/nslookup"
|
2013-01-22 09:27:39 +00:00
|
|
|
rm "${D}${mandir}/man1/nslookup.1"
|
2013-05-26 03:57:33 +00:00
|
|
|
rmdir "${D}${localstatedir}/run"
|
|
|
|
rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
|
2016-03-22 20:36:19 +00:00
|
|
|
install -d -o bind "${D}${localstatedir}/cache/bind"
|
2011-06-15 14:26:06 +00:00
|
|
|
install -d "${D}${sysconfdir}/bind"
|
|
|
|
install -d "${D}${sysconfdir}/init.d"
|
|
|
|
install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/"
|
|
|
|
install -m 755 "${S}/init.d" "${D}${sysconfdir}/init.d/bind"
|
2017-08-29 21:21:17 +00:00
|
|
|
sed -i -e '1s,#!.*python3,#! /usr/bin/python3,' ${D}${sbindir}/dnssec-coverage ${D}${sbindir}/dnssec-checkds
|
2014-04-23 09:40:51 +00:00
|
|
|
|
|
|
|
# Install systemd related files
|
|
|
|
install -d ${D}${sbindir}
|
|
|
|
install -m 755 ${WORKDIR}/generate-rndc-key.sh ${D}${sbindir}
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
|
|
install -m 0644 ${WORKDIR}/named.service ${D}${systemd_unitdir}/system
|
|
|
|
sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
|
|
|
|
-e 's,@SBINDIR@,${sbindir},g' \
|
|
|
|
${D}${systemd_unitdir}/system/named.service
|
2014-08-19 10:04:42 +00:00
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}/default
|
|
|
|
install -m 0644 ${WORKDIR}/bind9 ${D}${sysconfdir}/default
|
2010-11-30 05:35:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFFILES_${PN} = " \
|
|
|
|
${sysconfdir}/bind/named.conf \
|
|
|
|
${sysconfdir}/bind/named.conf.local \
|
|
|
|
${sysconfdir}/bind/named.conf.options \
|
|
|
|
${sysconfdir}/bind/db.0 \
|
|
|
|
${sysconfdir}/bind/db.127 \
|
|
|
|
${sysconfdir}/bind/db.empty \
|
|
|
|
${sysconfdir}/bind/db.local \
|
|
|
|
${sysconfdir}/bind/db.root \
|
|
|
|
"
|
|
|
|
|