anchor.diff:  # For LXC the docdir only contains example configuration files and should be included in the lxc package
   FILES_${PN} += "${docdir}"
   FILES_${PN}-dbg += "${libexecdir}/lxc/.debug"
  +PACKAGES =+ "${PN}-templates"
  +FILES_${PN}-templates += "${datadir}/lxc/templates"
  +RDEPENDS_${PN}-templates += "bash"
   
   PRIVATE_LIBS_${PN}-ptest = "liblxc.so.1"
   
  
positive.code: PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}"
  EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}"
  
  PACKAGECONFIG ??= ""
  PACKAGECONFIG[doc] = "--enable-doc,--disable-doc,,"
  PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,,"
  PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
  
  inherit autotools pkgconfig ptest
  
  
negative.code: 	echo "d root root 0755 ${localstatedir}/cache/lxc none" \
  	     > ${D}${sysconfdir}/default/volatiles/99_lxc
  
  	for i in `grep -l "#! */bin/bash" ${D}${datadir}/lxc/hooks/*`; do \
  	    sed -e 's|#! */bin/bash|#!/bin/sh|' -i $i; done
  }
  
  EXTRA_OEMAKE += "TEST_DIR=${D}${PTEST_PATH}/src/tests"
  