anchor.diff:  
   
   PACKAGES =+ " \
  +    libnm \
       ${PN}-adsl \
       ${PN}-bluetooth \
       ${PN}-cloud-setup \
  -    ${PN}-nmcli ${PN}-nmcli-doc \
  -    ${PN}-nmtui ${PN}-nmtui-doc \
  +    ${PN}-nmcli \
  +    ${PN}-nmcli-bash-completion \
  +    ${PN}-nmtui \
       ${PN}-wifi \
       ${PN}-wwan \
  -    ${PN}-ovs ${PN}-ovs-doc \
  +    ${PN}-ovs \
       ${PN}-ppp \
  -"
  -
  -SYSTEMD_PACKAGES = "${PN} ${PN}-cloud-setup"
  +    ${PN}-daemon \
  +"
  +
  +SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-cloud-setup"
  +INITSCRIPT_PACKAGES = "${PN}-daemon"
   
   NETWORKMANAGER_PLUGINDIR = "${libdir}/NetworkManager/${PV}"
  -
  +NETWORKMANAGER_DISPATCHERDIR = "${nonarch_libdir}/NetworkManager/dispatcher.d"
  +
  +
  +SUMMARY:libnm = "Libraries for adding NetworkManager support to applications"
  +FILES:libnm = "\
  +    ${libdir}/libnm.so.* \
  +    ${libdir}/girepository-1.0/NM-1.0.typelib \
  +"
  +
  +SUMMARY:${PN}-adsl = "ADSL device plugin for NetworkManager"
   FILES:${PN}-adsl = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-adsl.so"
  -
  +RDEPENDS:${PN}-adsl += "${PN}-daemon"
  +
  +SUMMARY:${PN}-bluetooth = "Bluetooth device plugin for NetworkManager"
   FILES:${PN}-bluetooth = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-bluetooth.so"
  -
  +RDEPENDS:${PN}-bluetooth += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG', 'bluez5', '${PN}-wwan bluez5', '', d)}"
  +
  +SUMMARY:${PN}-cloud-setup = "Automatically configure NetworkManager in cloud"
   FILES:${PN}-cloud-setup = " \
       ${libexecdir}/nm-cloud-setup \
       ${systemd_system_unitdir}/nm-cloud-setup.service \
  
positive.code:     ${@bb.utils.contains('PACKAGECONFIG','ovs','${PN}-ovs','',d)} \
      ${@bb.utils.contains('PACKAGECONFIG','ppp','${PN}-ppp','',d)} \
  "
  RCONFLICTS:${PN} = "connman"
  
  
  INITSCRIPT_NAME = "network-manager"
  SYSTEMD_SERVICE:${PN} = "\
      NetworkManager.service \
      NetworkManager-dispatcher.service \
  "
  
  ALTERNATIVE_PRIORITY = "100"
  ALTERNATIVE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','resolv-conf','',d)}"
  ALTERNATIVE_TARGET[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv-conf.NetworkManager','',d)}"
  ALTERNATIVE_LINK_NAME[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv.conf','',d)}"
  
  do_install:append() {
      install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/network-manager
  
negative.code:             return 'wpa-supplicant'
      else:
          return ''
  RDEPENDS:${PN}-wifi += "${PN}-daemon ${@get_wifi_deps(d)}"
  
  SUMMARY:${PN}-wwan = "Mobile broadband device plugin for NetworkManager"
  FILES:${PN}-wwan = "\
      ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wwan.so \
      ${NETWORKMANAGER_PLUGINDIR}/libnm-wwan.so \
  "
  RDEPENDS:${PN}-wwan += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG','modemmanager','modemmanager','',d)}"
  
  SUMMARY:${PN}-ovs = "Open vSwitch device plugin for NetworkManager"
  FILES:${PN}-ovs = "\
      ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-ovs.so \
      ${systemd_system_unitdir}/NetworkManager.service.d/NetworkManager-ovs.conf \
  "
  RDEPENDS:${PN}-ovs += "${PN}-daemon"
  
  SUMMARY:${PN}-ppp = "PPP plugin for NetworkManager"
  FILES:${PN}-ppp = "\
      ${NETWORKMANAGER_PLUGINDIR}/libnm-ppp-plugin.so \
      ${libdir}/pppd/*/nm-pppd-plugin.so \
  "
  RDEPENDS:${PN}-ppp += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG','ppp','ppp','',d)}"
  
  FILES:${PN}-dev += " \
      ${libdir}/pppd/*/*.la \
      ${libdir}/NetworkManager/*.la \
      ${NETWORKMANAGER_PLUGINDIR}/*.la \
      ${datadir}/dbus-1/interfaces/*.xml \
  "
  
  SUMMARY:${PN}-daemon += "The NetworkManager daemon"
  FILES:${PN}-daemon += " \
      ${bindir}/nm-online \
      ${datadir}/dbus-1 \
      ${datadir}/polkit-1 \
      ${libdir}/NetworkManager \
      ${libexecdir} \
      ${localstatedir}/lib/NetworkManager \
      ${NETWORKMANAGER_DISPATCHERDIR} \
      ${nonarch_base_libdir}/udev/* \
      ${nonarch_libdir}/firewalld \
      ${nonarch_libdir}/NetworkManager/conf.d \
      ${nonarch_libdir}/NetworkManager/dispatcher.d/pre-down.d \
      ${nonarch_libdir}/NetworkManager/dispatcher.d/pre-up.d \
      ${nonarch_libdir}/NetworkManager/dispatcher.d/no-wait.d \
      ${nonarch_libdir}/NetworkManager/system-connections \
      ${nonarch_libdir}/NetworkManager/VPN \
      ${sbindir}/NetworkManager \
      ${sysconfdir}/init.d/network-manager \
      ${sysconfdir}/NetworkManager \
      ${systemd_system_unitdir} \
  "
  RRECOMMENDS:${PN}-daemon += "\
      iptables \
      ${@bb.utils.filter('PACKAGECONFIG', 'dnsmasq', d)} \
  "
  INITSCRIPT_NAME:${PN}-daemon = "network-manager"
  SYSTEMD_SERVICE:${PN}-daemon = "\
      NetworkManager.service \
      NetworkManager-dispatcher.service \
  "
  RCONFLICTS:${PN}-daemon += "connman"
  ALTERNATIVE_PRIORITY = "100"
  ALTERNATIVE:${PN}-daemon = "${@bb.utils.contains('DISTRO_FEATURES','systemd','resolv-conf','',d)}"
  ALTERNATIVE_TARGET[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv-conf.NetworkManager','',d)}"
  ALTERNATIVE_LINK_NAME[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv.conf','',d)}"
  
  
  # The networkmanager package is an empty meta package which weakly depends on all the compiled features.
  # Install this package to get all plugins and related dependencies installed. Alternatively just install
  # plugins and related dependencies e.g. by installing networkmanager-wifi or networkmanager-wwan
  # packages to the firmware.
  ALLOW_EMPTY:${PN} = "1"
  RRECOMMENDS:${PN} += "\
      ${@bb.utils.contains('PACKAGECONFIG','adsl','${PN}-adsl','',d)} \
      ${@bb.utils.contains('PACKAGECONFIG','bluez5','${PN}-bluetooth','',d)} \
      ${@bb.utils.contains('PACKAGECONFIG','cloud-setup','${PN}-cloud-setup','',d)} \
  