anchor.diff:  	install -d ${D}${sysconfdir}/tmpfiles.d
   	echo "d ${localstatedir}/log/samba 0755 root root -" \
               > ${D}${sysconfdir}/tmpfiles.d/99-${BPN}.conf
  -    elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
  +    elif ${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'true', 'false', d)}; then
   	install -d ${D}${sysconfdir}/init.d
   	install -m 0755 packaging/LSB/samba.sh ${D}${sysconfdir}/init.d
  +	update-rc.d -r ${D} samba.sh start 20 3 5 .
  +	update-rc.d -r ${D} samba.sh start 20 0 1 6 .
  +    elif ${@bb.utils.contains('PACKAGECONFIG', 'lsb', 'true', 'false', d)}; then
  +	install -d ${D}${sysconfdir}/init.d
  +	install -m 0755 packaging/sysv/samba.init ${D}${sysconfdir}/init.d/samba.sh
   	update-rc.d -r ${D} samba.sh start 20 3 5 .
   	update-rc.d -r ${D} samba.sh start 20 0 1 6 .
       fi
  
positive.code: do_install_append() {
      rmdir --ignore-fail-on-non-empty "${D}/${localstatedir}/run"
  
      if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
          install -d ${D}${systemd_unitdir}/system
          for i in nmb smb winbind; do
              install -m 0644 packaging/systemd/$i.service ${D}${systemd_unitdir}/system
  
negative.code:                           ${libdir}/python${PYTHON_BASEVERSION}/site-packages/samba/dcerpc/.debug/* \
                           "
  
  FILES_${PN}-pidl = "${bindir}/pidl ${PERL_VERNDORLIB}/*"
  