diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2006-06-19 03:15:33 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-06-19 03:15:33 +0000 |
commit | 75433e541e23e4f3be84af955f8cddea4dff826c (patch) | |
tree | 01f3822a7dac05316b1b36fc6f62656a3641be00 /packages/openldap/openldap_2.3.11.bb | |
parent | eaa20353c4019c5decb223dc24048f1cd9ae6893 (diff) |
openldap: Add initscript
Diffstat (limited to 'packages/openldap/openldap_2.3.11.bb')
-rw-r--r-- | packages/openldap/openldap_2.3.11.bb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/packages/openldap/openldap_2.3.11.bb b/packages/openldap/openldap_2.3.11.bb index f15de41116..26d017fb1e 100644 --- a/packages/openldap/openldap_2.3.11.bb +++ b/packages/openldap/openldap_2.3.11.bb @@ -12,12 +12,13 @@ PRIORITY = "optional" LICENSE = "OpenLDAP" SECTION = "libs" -PR = "r1" +PR = "r2" LDAP_VER = "${@'.'.join(bb.data.getVar('PV',d,1).split('.')[0:2])}" SRC_URI = "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/${P}.tgz" SRC_URI += "file://openldap-m4-pthread.patch;patch=1" +SCR-URI += "file://initscript"; # The build tries to run a host executable, this fails. The patch # causes the executable and its data to be installed instead of # the output - ucgendat must be run after the ipkg install! @@ -263,6 +264,23 @@ FILES_${PN}-bin = "${bindir}" FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la ${libdir}/*.a ${libexecdir}/openldap/*.a" do_install_append() { + install -d ${D}${sysconfdir}/init.d + cat ${WORKDIR}/initscript > ${D}${sysconfdir}/init.d/openldap + chmod 755 ${D}${sysconfdir}/init.d/openldap # This is duplicated in /etc/openldap and is for slapd rm -f ${D}${localstatedir}/openldap-data/DB_CONFIG.example } + +pkg_postinst () { + if test -n "${D}"; then + D="-r $D" + fi + update-rc.d $D acpid defaults +} + +pkg_prerm () { + if test -n "${D}"; then + D="-r $D" + fi + update-rc.d $D acpid remove +} |