anchor.diff:  		${D}${libdir}/pkgconfig/*.pc
   	sed -i "s/includedir=.*/includedir=\/usr\/include\/heimdal/" \
   		${D}${libdir}/pkgconfig/*.pc
  -	
  +
  +	cp ${D}${libdir}/pkgconfig/krb5*.pc ${D}${libdir}/${BPN}/pkgconfig
  +	cp ${D}${libdir}/pkgconfig/kadm*.pc ${D}${libdir}/${BPN}/pkgconfig
  +
   	# Install init script
   	install -d ${D}${sysconfdir}/init.d
   	install -m 0644 ${S}/debian/heimdal-kcm.init \
  
positive.code: 	mv ${D}${sbindir}/kfd ${D}${libdir}/${BPN}-servers
  
  	# install heimdal-servers-x package
  	mv ${D}${sbindir}/kxd ${D}${libdir}/${BPN}-servers
  }
  
  PACKAGES =+ "${BPN}-servers-x ${BPN}-servers ${BPN}-multidev-static \
  		${BPN}-clients-x ${BPN}-clients ${BPN}-kdc ${BPN}-kcm"
  
  FILES_${BPN}-clients-x += "\
  
negative.code: 	${libdir}/pkgconfig/heimdal-kadm-client.pc \
  	${libdir}/pkgconfig/heimdal-kadm-server.pc \
  	${libdir}/pkgconfig/heimdal-krb5.pc \
  	${libdir}/pkgconfig/kafs.pc \
  	${libdir}/${BPN}/pkgconfig/*"
  FILES_${BPN}-servers += " \
  	${libdir}/${BPN}-servers/*"
  FILES_${BPN}-servers-x += " \
  	${libdir}/${BPN}-servers/kxd"
  FILES_${PN}-dbg += "${sbindir}/heimdal/.debug \
  	${libdir}/${BPN}-servers/.debug"
  
  BBCLASSEXTEND = "native nativesdk"
  PARALLEL_MAKE = ""
  
  # Install cross script to sysroot by inheriting binconfig
  BINCONFIG_GLOB = "krb5-config.heimdal"
  SYSROOT_PREPROCESS_FUNCS_class-target += " binconfig_sysroot_preprocess heimdal_sysroot_preprocess"
  heimdal_sysroot_preprocess () {
  	sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/krb5-config.heimdal -e "s:libdir=\/usr\/lib\/heimdal:libdir=${STAGING_LIBDIR}\/heimdal:"
  	sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/krb5-config.heimdal -e "s:libdir=\/usr\/lib\/heimdal:libdir=${STAGING_INCDIR}\/heimdal:"
  
  	# Remove these conflicts files with krb5-dev packages in sysroot
  	# Using the library and header in heimdal-multidev for these packages depends on heimdal-dev
  	rm -rf ${SYSROOT_DESTDIR}${libdir}/*.so \
  		${SYSROOT_DESTDIR}${libdir}/pkgconfig/krb5*.pc \
  		${SYSROOT_DESTDIR}${libdir}/pkgconfig/kadm*.pc
  }
  binconfig_sysroot_preprocess () {
  	for config in `find ${D} -name '${BINCONFIG_GLOB}'` `find ${B} -name '${BINCONFIG_GLOB}'`; do
  		configname=`basename $config`
  		install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
  		sed ${@get_binconfig_mangle(d)} $config > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
  		chmod u+x ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname
  	done
  }
  