anchor.diff:  
   RRECOMMENDS_gvfsd-ftp += "openssh-sftp openssh-ssh"
   
  -PACKAGECONFIG ?= "libgphoto2 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
  +PACKAGECONFIG ?= "libgphoto2 \
  +                  ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
  +                  ${@bb.utils.contains('DISTRO_FEATURES','polkit','udisks2','',d)} \
  +                  ${@bb.utils.contains('DISTRO_FEATURES','polkit','admin','',d)} \
  +                 "
   
  +PACKAGECONFIG[udisks2] = "-Dudisks2=true, -Dudisks2=false, udisks2, udisks2"
  +PACKAGECONFIG[admin] = "-Dadmin=true, -Dadmin=false, libcap polkit"
   PACKAGECONFIG[afc] = "-Dafc=true, -Dafc=false, libimobiledevice libplist"
   PACKAGECONFIG[archive] = "-Darchive=true, -Darchive=false, libarchive"
   PACKAGECONFIG[dnssd] = "-Ddnssd=true, -Ddnssd=false, avahi"
  
positive.code:     ${libdir}/tmpfiles.d \
      ${systemd_user_unitdir} \
  "
  RDEPENDS_${PN} = "udisks2"
  
  FILES_${PN}-dbg += "${libdir}/gio/modules/.debug/*"
  FILES_${PN}-dev += "${libdir}/gio/modules/*.la"
  
negative.code: PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia"
  
  do_install_append() {
      if ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'true', 'false', d)}; then
          # Fix up permissions on polkit rules.d to work with rpm4 constraints
          chmod 700 ${D}/${datadir}/polkit-1/rules.d
          chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
      fi
  
      # After rebuilds (not from scracth) it can happen that the executables in
      # libexec ar missing executable permission flag. Not sure but it came up
  