diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-08-26 21:14:00 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-08-26 21:14:00 +0000 |
commit | 70031b2c7fb634f5b36555860549f3f565d1e373 (patch) | |
tree | eab3ed2b900138832b2b35072e04d69bc877073b /recipes/glibc/glibc-package.bbclass | |
parent | 056a67f6070c5ea561acb65049b551e24f3b7eb6 (diff) |
glibc: nscd: Make it working.
Diffstat (limited to 'recipes/glibc/glibc-package.bbclass')
-rw-r--r-- | recipes/glibc/glibc-package.bbclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/recipes/glibc/glibc-package.bbclass b/recipes/glibc/glibc-package.bbclass index 1ed1b7a515..32ea0e3313 100644 --- a/recipes/glibc/glibc-package.bbclass +++ b/recipes/glibc/glibc-package.bbclass @@ -42,7 +42,7 @@ FILES_libsegfault = "${base_libdir}/libSegFault*" FILES_glibc-extra-nss = "${base_libdir}/libnss*" FILES_sln = "${base_sbindir}/sln" FILES_glibc-dev_append = " ${libdir}/*.o ${bindir}/rpcgen" -FILES_nscd = "${sbindir}/nscd*" +FILES_nscd = "${sbindir}/nscd* ${sysconfdir}/nscd* ${sysconfdir}/init.d/nscd*" FILES_glibc-utils = "${bindir}/* ${sbindir}/*" FILES_glibc-gconv = "${libdir}/gconv/*" FILES_${PN}-dbg += " ${libdir}/gconv/.debug ${libexecdir}/*/.debug" @@ -60,6 +60,11 @@ DESCRIPTION_ldd = "glibc: print shared library dependencies" DESCRIPTION_localedef = "glibc: compile locale definition files" DESCRIPTION_glibc-utils = "glibc: misc utilities like iconf, local, gencat, tzselect, rpcinfo, ..." +INITSCRIPT_NAME = "nscd" +INITSCRIPT_PACKAGES = "nscd" +INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ." +inherit update-rc.d + def get_glibc_fpu_setting(bb, d): if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: return "--without-fp" @@ -84,8 +89,10 @@ do_install() { mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED done rm -f ${D}{sysconfdir}/rpc - install -d ${D}${sysconfdir} + install -d ${D}${sysconfdir}/init.d + install -m 0644 ${S}/nscd/nscd.conf ${D}${sysconfdir}/ install -m 0644 ${WORKDIR}/etc/ld.so.conf ${D}${sysconfdir}/ + install ${S}/nscd/nscd.init ${D}${sysconfdir}/init.d/nscd } TMP_LOCALE="/tmp/locale${libdir}/locale" |