anchor.diff:  PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
   PACKAGECONFIG[modemmanager] = "--with-modem-manager-1=yes,--with-modem-manager-1=no,modemmanager"
   PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp,ppp"
  -# Use full featured dhcp client instead of internal one
  -PACKAGECONFIG[dhclient] = "--with-dhclient=${base_sbindir}/dhclient,,,dhcpcd"
   PACKAGECONFIG[dnsmasq] = "--with-dnsmasq=${bindir}/dnsmasq"
   PACKAGECONFIG[nss] = "--with-crypto=nss,,nss"
   PACKAGECONFIG[resolvconf] = "--with-resolvconf=${base_sbindir}/resolvconf,,,resolvconf"
  
positive.code:     export GIR_EXTRA_LIBS_PATH="${B}/libnm/.libs:${B}/libnm-glib/.libs:${B}/libnm-util/.libs"
  }
  
  PACKAGECONFIG ??= "nss ifupdown dhclient dnsmasq \
      ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
      ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
      ${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit', d)} \
  
negative.code:     --with-tests \
      --with-nmtui=yes \
      --with-udev-dir=${nonarch_base_libdir}/udev \
      --with-dhclient=no \
      --with-dhcpcd=no \
      --with-dhcpcanon=no \
      --with-netconfig=no \
  "
  
  # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template
  