anchor.diff:  	rm -f ${D}${localstatedir}/openldap-data/DB_CONFIG.example
   }
   
  -pkg_postinst () {
  +pkg_postinst_${PN}-slapd () {
           if test -n "${D}"; then
                   D="-r $D"
           fi
  -        update-rc.d $D acpid defaults
  -}
  -
  -pkg_prerm () {
  +        update-rc.d $D openldap defaults
  +}
  +
  +pkg_prerm_${PN}-slapd () {
           if test -n "${D}"; then
                   D="-r $D"
           fi
  -        update-rc.d $D acpid remove
  -}
  +        update-rc.d $D openldap remove
  +}
  
positive.code: # The distro/lcoal options must be added in *last*
  EXTRA_OECONF += "${OPENLDAP_OPTIONS}"
  DEPENDS      += "${OPENLDAP_DEPENDS}"
  
  #FIXME: this is a hack, at present an openldap build will pick up the header
  # files from staging rather than the local ones (bad -I order), so remove
  
negative.code: 
  # Package contents - shift most standard contents to -bin
  FILES_${PN} = "${libdir}/lib*.so.* ${sysconfdir}/openldap/ldap.* ${localstatedir}/openldap-data"
  FILES_${PN}-slapd = "${sysconfdir}/init.d ${libexecdir}/slapd ${sbindir} ${localstatedir}/run \
  	${sysconfdir}/openldap/slapd.* ${sysconfdir}/openldap/schema \
  	${sysconfdir}/openldap/DB_CONFIG.example"
  FILES_${PN}-slurpd = "${libexecdir}/slurpd ${localstatedir}/openldap-slurp ${localstatedir}/run"
  