anchor.diff:  	fi
   
   	# Install configuration files and links follow Debian
  +	cd ${S}/debian
  +	cp shlibs.default shlibs.override dpkg.cfg dselect.cfg ${D}${sysconfdir}/${DPN}/
  +	cd -
  +
   	install -d ${D}${sysconfdir}/cron.daily
   	install -d ${D}${sysconfdir}/logrotate.d
  -	install -m 0644 ${S}/debian/dpkg.cfg ${D}${sysconfdir}/${DPN}/
  -	install -m 0755 ${S}/debian/dpkg.cron.daily ${D}${sysconfdir}/cron.daily/
  -	install -m 0644 ${S}/debian/dpkg.logrotate ${D}${sysconfdir}/logrotate.d/
  +	install -m 0755 ${S}/debian/dpkg.cron.daily ${D}${sysconfdir}/cron.daily/dpkg
  +	install -m 0644 ${S}/debian/dpkg.logrotate ${D}${sysconfdir}/logrotate.d/dpkg
   
   	install -d ${D}${sbindir}
   	ln -s ../bin/dpkg-divert ${D}${sbindir}/dpkg-divert
   	ln -s ../bin/dpkg-statoverride ${D}${sbindir}/dpkg-statoverride
   }
   
  -PACKAGES += "${PN}-perl"
  +PACKAGES =+ "dselect lib${PN}-perl lib${PN}-dev"
   
   RDEPENDS_${PN} += "update-alternatives start-stop-daemon"
   
  -FILES_${PN}-perl = "${libdir}/perl"
  -
  -DEBIANNAME_${PN}-perl = "lib${PN}-perl"
  +FILES_dselect = " \
  +    ${bindir}/dselect \
  +    ${sysconfdir}/${DPN}/dselect.cfg* \
  +    ${libdir}/${DPN}/methods \
  +    ${libdir}/perl/Dselect \
  +    ${localstatedir}/lib/${DPN}/methods \
  +"
  +FILES_lib${PN}-perl = " \
  +    ${libdir}/perl \
  +    ${libdir}/${DPN}/parsechangelog \
  +"
  +FILES_lib${PN}-dev = " \
  +    ${includedir}/${DPN}/*.h \
  +    ${libdir}/pkgconfig \
  +"
  +FILES_${PN}-dev += " \
  +    ${sysconfdir}/${DPN}/shlibs* \
  +    ${bindir}/dpkg-architecture \
  +    ${bindir}/dpkg-buildflags \
  +    ${bindir}/dpkg-buildpackage \
  +    ${bindir}/dpkg-checkbuilddeps \
  +    ${bindir}/dpkg-distaddfile \
  +    ${bindir}/dpkg-genchanges \
  +    ${bindir}/dpkg-gencontrol \
  +    ${bindir}/dpkg-gensymbols \
  +    ${bindir}/dpkg-mergechangelogs \
  +    ${bindir}/dpkg-name \
  +    ${bindir}/dpkg-parsechangelog \
  +    ${bindir}/dpkg-scanpackages \
  +    ${bindir}/dpkg-scansources \
  +    ${bindir}/dpkg-shlibdeps \
  +    ${bindir}/dpkg-source \
  +    ${bindir}/dpkg-vendor \
  +    ${datadir}/${DPN}/*.mk \
  +"
   
   BBCLASSEXTEND = "native"
  
positive.code: EXTRA_OECONF = " \
  	--disable-update-alternatives \
  	--disable-start-stop-daemon \
  	--disable-dselect \
  	--with-zlib \
  	--with-bz2 \
  	--without-liblzma \
  	--without-selinux \
  "
  
  do_configure () {
  
negative.code: 
  require dpkg.inc
  
  PR = "${INC_PR}.2"
  
  inherit systemd
  
  DEPENDS = "zlib bzip2 perl ncurses xz libselinux"
  DEPENDS_class-native = "bzip2-replacement-native \
                          zlib-native \
                          gettext-native \
                          perl-native \
                          xz-native \
                          libselinux-native \
                          "
  RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} xz"
  RDEPENDS_${PN}_class-native = "xz-native"
  