anchor.diff:  
   SECTION = "base"
   
  -inherit autotools pkgconfig systemd
  +inherit autotools pkgconfig systemd useradd
   
   SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz"
   SRC_URI[md5sum] = "547fa78704da53aa35912be58d31035f"
  
positive.code: 
  DEPENDS = "groff-native nss libqb"
  
  SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service"
  SYSTEMD_AUTO_ENABLE = "enable"
  
  INITSCRIPT_NAME = "corosync-daemon"
  
  PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
  
  PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_system_unitdir},--disable-systemd --without-systemddir,systemd"
  
  EXTRA_OECONF = "ac_cv_path_BASHPATH=${base_bindir}/bash"
  
negative.code:     install -d ${D}${sysconfdir}/default/volatiles
      echo "d root root 0755 ${localstatedir}/log/cluster none" > ${D}${sysconfdir}/default/volatiles/05_corosync
  
      if ${@bb.utils.contains('PACKAGECONFIG', 'qnetd', 'true', 'false', d)}; then
          chown -R coroqnetd:coroqnetd ${D}${sysconfdir}/${BPN}/qnetd
          echo "d coroqnetd coroqnetd 0770 /var/run/corosync-qnetd none" >> ${D}${sysconfdir}/default/volatiles/05_corosync
      fi
  
      if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
          install -d ${D}${sysconfdir}/tmpfiles.d
          echo "d ${localstatedir}/log/cluster - - - -" > ${D}${sysconfdir}/tmpfiles.d/corosync.conf
  
          if ${@bb.utils.contains('PACKAGECONFIG', 'qnetd', 'true', 'false', d)}; then
              install -m 0644 ${S}/conf/tmpfiles.d/corosync-qnetd.conf ${D}${sysconfdir}/tmpfiles.d
          fi
      fi
  }
  
  RDEPENDS_${PN} += "bash"
  
  FILES_${PN}-dbg += "${libexecdir}/lcrso/.debug"
  FILES_${PN}-doc += "${datadir}/snmp/mibs/COROSYNC-MIB.txt"
  
  USERADD_PACKAGES = "${PN}"
  GROUPADD_PARAM_${PN} = "--system coroqnetd"
  USERADD_PARAM_${PN} = "--system -d / -M -s /bin/nologin -c 'User for corosync-qnetd' -g coroqnetd coroqnetd"
  