[oe-commits] Koen Kooi : openldap: make it build with a recent autofoo and ship initscript, also fix copy/ paste error (it's 'openldap', not 'acpid')

GIT User account git at amethyst.openembedded.net
Sun Jan 18 18:09:37 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5b484aec0a3167bc7df53094958fefbba977aac9
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5b484aec0a3167bc7df53094958fefbba977aac9

Author: Koen Kooi <koen at openembedded.org>
Date:   Sun Jan 18 19:08:01 2009 +0100

openldap: make it build with a recent autofoo and ship initscript, also fix copy/paste error (it's 'openldap', not 'acpid')

---

 packages/openldap/openldap_2.3.11.bb |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/packages/openldap/openldap_2.3.11.bb b/packages/openldap/openldap_2.3.11.bb
index 9f8b5ed..fb980cb 100644
--- a/packages/openldap/openldap_2.3.11.bb
+++ b/packages/openldap/openldap_2.3.11.bb
@@ -217,6 +217,11 @@ PACKAGES += "${PN}-overlay-proxycache"
 EXTRA_OECONF += "${OPENLDAP_OPTIONS}"
 DEPENDS      += "${OPENLDAP_DEPENDS}"
 
+do_configure() {
+	gnu-configize
+	oe_runconf
+}
+
 #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
 # the headers (from openldap-old.x) before compiling...
@@ -255,7 +260,7 @@ PACKAGES += "${PN}-slapd ${PN}-slurpd ${PN}-bin"
 
 # Package contents - shift most standard contents to -bin
 FILES_${PN} = "${libdir}/lib*.so.* ${sysconfdir}/openldap/ldap.* ${localstatedir}/openldap-data"
-FILES_${PN}-slapd = "${libexecdir}/slapd ${sbindir} ${localstatedir}/run \
+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"
@@ -270,16 +275,16 @@ do_install_append() {
 	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
+        update-rc.d $D openldap defaults
 }
 
-pkg_prerm () {
+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
 }





More information about the Openembedded-commits mailing list