anchor.diff:  LDFLAGS += "-Wl,-z,relro,-z,now"
   
   do_install_append() {
  -    rmdir --ignore-fail-on-non-empty "${D}/${localstatedir}/run"
  +    rmdir --ignore-fail-on-non-empty "${D}/run/samba"
  +    rmdir --ignore-fail-on-non-empty "${D}/run"
   
       if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then
           install -d ${D}${systemd_unitdir}/system
  
positive.code:                       ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/samba3/*.so \
                        ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/tests/* \
                        ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/web_server/* \
                       "
  FILES_${PN}-python-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/* \
                            ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/.debug/* \
                            ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/samba3/.debug/* \
                            ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \
                           "
  
  FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*"
  
negative.code:                    acl aio cups ldap \
  "
  
  RDEPENDS_${PN}-base += "${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'lsb', '', d)}"
  
  PACKAGECONFIG[acl] = "--with-acl-support,---without-acl-support,acl"
  PACKAGECONFIG[aio] = "--with-aio-support,---without-aio-support,libaio"
  