anchor.diff:  UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+).tar.gz"
   
   EXTRA_OECMAKE = "-DINSTALL_LOGDIR=${localstatedir}/log/monkey/ \
  -                 -DPID_FILE=${localstatedir}/run/monkey.pid \
  +                 -DPID_FILE=/run/monkey.pid \
                    -DINSTALL_SYSCONFDIR=${sysconfdir}/monkey/ \
                    -DWITH_PLUGINS=* \
                    -DWITHOUT_PLUGINS=mbedtls \
  
positive.code: 
  FILES:${PN}-plugins = "${libdir}/monkey-*.so"
  
  FILES:${PN} += "${localstatedir}/www/monkey/ /run"
  
  
  CONFFILES:${PN} = "${sysconfdir}/monkey/monkey.conf \
                     ${sysconfdir}/monkey/sites/default \
  
negative.code: OECMAKE_GENERATOR = "Unix Makefiles"
  
  do_install:append() {
      rmdir ${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/run ${D}${localstatedir}/log
      rmdir --ignore-fail-on-non-empty ${D}${localstatedir}
      install -Dm 0755 ${WORKDIR}/monkey.init ${D}${sysconfdir}/init.d/monkey
      # Create /var/log/monkey in runtime.
      if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
          install -d ${D}${nonarch_libdir}/tmpfiles.d
          echo "d ${localstatedir}/log/${BPN} 0755 ${BPN} ${BPN} -" > ${D}${nonarch_libdir}/tmpfiles.d/${BPN}.conf
      fi
      if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ]; then
          install -d ${D}${sysconfdir}/default/volatiles
          echo "d ${BPN} ${BPN} 0755 ${localstatedir}/log/${BPN} none" > ${D}${sysconfdir}/default/volatiles/99_${BPN}
      fi
      if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
          install -Dm 644 ${WORKDIR}/monkey.service ${D}/${systemd_unitdir}/system/monkey.service
      fi
  