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"
|
2014-03-04 21:56:06 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=a3df5f651469919a0e6cb42f84fb6ff1"
|
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 \
|
2010-11-30 05:35:42 +00:00
|
|
|
file://cross-build-fix.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 \
|
2010-11-30 05:35:42 +00:00
|
|
|
"
|
|
|
|
|
2014-03-04 21:56:06 +00:00
|
|
|
SRC_URI[md5sum] = "e676c65cad5234617ee22f48e328c24e"
|
|
|
|
SRC_URI[sha256sum] = "d4b64c1dde442145a316679acff2df4008aa117ae52dfa3a6bc69efecc7840d1"
|
2010-12-30 06:37:02 +00:00
|
|
|
|
2010-11-30 05:35:42 +00:00
|
|
|
# --enable-exportlib is necessary for building dhcp
|
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 \
|
|
|
|
--with-openssl=${STAGING_LIBDIR}/.. --with-libxml2=${STAGING_LIBDIR}/.. \
|
|
|
|
--enable-exportlib --with-export-includedir=${includedir} --with-export-libdir=${libdir} \
|
|
|
|
"
|
2014-04-23 09:40:51 +00:00
|
|
|
inherit autotools-brokensep update-rc.d systemd
|
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"
|
|
|
|
|
2010-11-30 05:35:42 +00:00
|
|
|
PARALLEL_MAKE = ""
|
|
|
|
|
2014-03-04 21:56:06 +00:00
|
|
|
RDEPENDS_${PN} = "python-core"
|
|
|
|
|
2014-03-25 11:00:11 +00:00
|
|
|
PACKAGES_prepend = " ${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
|
|
|
|
|
|
|
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}"
|
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"
|
2014-03-04 21:56:06 +00:00
|
|
|
sed -i -e '1s,#!.*python,#! /usr/bin/env python,' ${D}${sbindir}/dnssec-coverage ${D}${sbindir}/dnssec-checkds
|
2014-04-23 09:40:51 +00:00
|
|
|
|
|
|
|
# Install systemd related files
|
|
|
|
install -d ${D}${localstatedir}/cache/bind
|
|
|
|
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
|
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 \
|
|
|
|
"
|
|
|
|
|