anchor.diff:  	${sbindir}/named-checkconf \
   	${sbindir}/named-checkzone \
   	${sbindir}/named-compilezone \
  -	${sbindir}/rndc \
  -	${sbindir}/rndc-confgen \
  -    "
  +	${sbindir}/rndc* \
  +"
   
   FILES_dnsutils = " \
   	${bindir}/dig \
   	${bindir}/nslookup \
   	${bindir}/nsupdate \
  -    "
  -
  -FILES_libbind-dev = " \
  -	${bindir}/isc-config.sh \
  -	${includedir}/bind-export/dns/* \
  -	${includedir}/bind-export/dst/* \
  -	${includedir}/bind-export/irs/* \
  -	${includedir}/bind-export/isc/* \
  -	${includedir}/bind-export/isccfg \
  -	${includedir}/bind9/*.h \
  -	${includedir}/dns/* \
  -	${includedir}/dst/* \
  -	${includedir}/isc/* \
  -	${includedir}/isccc/* \
  -	${includedir}/isccfg/* \
  -	${includedir}/lwres/* \
  -	${libdir}/libbind9.so \
  -	${libdir}/libdns.so \
  -	${libdir}/libisc.so \
  -	${libdir}/libisccc.so \
  -	${libdir}/libisccfg.so \
  -	${libdir}/liblwres.so \
  -    "
  -
  -FILES_libbind-export-dev = " \
  -	${libdir}/libdns-export.so \
  -	${libdir}/libirs-export.so \
  -	${libdir}/libisc-export.so \
  -	${libdir}/libisccfg-export.so \
  -    "
  -
  -FILES_libbind9-90 = " \
  -	${libdir}/libbind9.so.90 \
  -	${libdir}/libbind9.so.90.0.9 \
  -    "
  -
  -FILES_libdns-export100 = " \
  -	${libdir}/libdns-export.so.100 \
  -	${libdir}/libdns-export.so.100.2.2 \
  -    "
  -
  -FILES_libdns100 = " \
  -	${libdir}/libdns.so.100 \
  -	${libdir}/libdns.so.100.2.2 \
  -    "
  -
  -FILES_libirs-export91 = " \
  -	${libdir}/libirs-export.so.91 \
  -	${libdir}/libirs-export.so.91.0.0 \
  -    "
  -
  -FILES_libisc-export95 = " \
  -	${libdir}/libisc-export.so.95 \
  -	${libdir}/libisc-export.so.95.5.0 \
  -    "
  -
  -FILES_libisc95 = " \
  -	${libdir}/libisc.so.95 \
  -	${libdir}/libisc.so.95.5.0 \
  -    "
  -
  -FILES_libisccc90 = " \
  -	${libdir}/libisccc.so.90 \
  -	${libdir}/libisccc.so.90.0.6 \
  -    "
  -
  -FILES_libisccfg-export90 = " \
  -	${libdir}/libisccfg-export.so.90 \
  -	${libdir}/libisccfg-export.so.90.1.0 \
  -    "
  -
  -FILES_libisccfg90 = " \
  -	${libdir}/libisccfg.so.90 \
  -	${libdir}/libisccfg.so.90.1.0 \
  -    "
  -
  -FILES_liblwres90 = " \
  -	${libdir}/liblwres.so.90 \
  -	${libdir}/liblwres.so.90.0.7 \
  -    "
  +"
  +
  +FILES_lib${PN}-export-dev = "${libdir}/lib*-export${SOLIBSDEV}"
  +FILES_lib${DPN} = "${libdir}/libbind9${SOLIBS}"
  +FILES_libdns-export = "${base_libdir}/libdns-export${SOLIBS}"
  +FILES_libdns = "${libdir}/libdns${SOLIBS}"
  +FILES_libirs-export = "${base_libdir}/libirs-export${SOLIBS}"
  +FILES_libisc-export = "${base_libdir}/libisc-export${SOLIBS}"
  +FILES_libisc = "${libdir}/libisc${SOLIBS}"
  +FILES_libisccc = "${libdir}/libisccc${SOLIBS}"
  +FILES_libisccfg-export = "${base_libdir}/libisccfg-export${SOLIBS}"
  +FILES_libisccfg = "${libdir}/libisccfg${SOLIBS}"
  +FILES_liblwres = "${libdir}/liblwres${SOLIBS}"
   
   FILES_lwresd = " \
   	${sysconfdir}/init.d/lwresd \
   	${systemd_system_unitdir}/lwresd.service \
   	${libdir}/tmpfiles.d/lwresd.conf \
   	${sbindir}/lwresd \
  -    "
  -
  -FILES_${PN} += "${localstatedir} /run" 
  -
  -PKG_${PN} = "${PN}9"
  +"
  +
  +FILES_${PN} += " \
  +	/run \
  +	${libdir}/tmpfiles.d/bind9.conf \
  +	${datadir}/${DPN} \
  +	${localstatedir} \
  +"
  +FILES_${PN}-dev += " \
  +	${bindir}/isc-config.sh \
  +"
  +
  +# Package "bind" and "bind-dev" on Poky are equal to "bind9" and "libbind-dev" on Debian
  +DEBIANNAME_${PN} = "${DPN}"
  +DEBIANNAME_${PN}-dev = "lib${PN}-dev"
  +RPROVIDES_${PN} += "${DPN}"
  +RPROVIDES_${PN}-dev += "lib${PN}-dev"
  +
  +# Package "host" is provided by "bind9-host" arcoding to debian/control
  +RPROVIDES_${DPN}-host += "host"
  +
  +# Dependencies between bind's packages base on debian/control
  +RDEPENDS_${PN} += "libdns libisccfg libisc libisccc ${DPN}utils liblwres lib${DPN}"
  +RDEPENDS_${DPN}-host += "libdns libisccfg libisc liblwres lib${DPN}"
  +RDEPENDS_${PN}-dev += "libdns libisccfg libisc liblwres lib${DPN}"
  +RDEPENDS_lib${DPN} += "libdns libisccfg libisc"
  +RDEPENDS_libdns += "libisc"
  +RDEPENDS_libisccc += "libisc"
  +RDEPENDS_libisccfg += "libdns libisccc libisc"
  +RDEPENDS_dnsutils += "libdns libisccfg libisc liblwres lib${DPN}"
  +RDEPENDS_lwresd += "libdns libisccfg libisccc libisc liblwres lib${DPN}"
  +RDEPENDS_lib${PN}-export-dev += "${DPN}-host libdns-export libisccfg-export libisc-export libirs-export"
  
positive.code: "
  
  EXTRA_OECONF = " \
  	--sysconfdir=/etc/bind \
  	--enable-threads \
  	--enable-largefile \
  	--with-libtool \
  
negative.code: require bind.inc
  
  PR = "${INC_PR}.1"
  DEPENDS += " bind-native"
  
  # correct-path-to-gen-file.patch
  