From 53002e90542e1026db79adb5db4ebdcdc42cd662 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 7 Mar 2013 15:04:10 +0000 Subject: [PATCH] samba: fix install for older samba versions * Samba 3.0 doesn't build libnss_*.so * base_sbindir may contain mount.cifs (From meta-openembedded rev: f44c52cbae96c81a20fa91d528eb0bbc5abaec06) Signed-off-by: Andreas Oberritter Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- meta-openembedded/meta-oe/recipes-connectivity/samba/samba.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta-openembedded/meta-oe/recipes-connectivity/samba/samba.inc b/meta-openembedded/meta-oe/recipes-connectivity/samba/samba.inc index 3ee43ad..42ddce5 100644 --- a/meta-openembedded/meta-oe/recipes-connectivity/samba/samba.inc +++ b/meta-openembedded/meta-oe/recipes-connectivity/samba/samba.inc @@ -87,10 +87,12 @@ do_install_append() { install -d ${D}/var/spool/samba # Install other stuff not installed by "make install" - install -m 0644 ${WORKDIR}/${PN}-${PV}/nsswitch/libnss_winbind.so ${D}${libdir}/libnss_winbind.so.2 - install -m 0644 ${WORKDIR}/${PN}-${PV}/nsswitch/libnss_wins.so ${D}${libdir}/libnss_wins.so.2 + if [ -d ${WORKDIR}/${PN}-${PV}/nsswitch ]; then + install -m 0644 ${WORKDIR}/${PN}-${PV}/nsswitch/libnss_winbind.so ${D}${libdir}/libnss_winbind.so.2 + install -m 0644 ${WORKDIR}/${PN}-${PV}/nsswitch/libnss_wins.so ${D}${libdir}/libnss_wins.so.2 + fi - rmdir ${D}${base_sbindir} + rmdir --ignore-fail-on-non-empty ${D}${base_sbindir} sed -i -e '1s,#!.*perl,#!${USRBINPATH}/env perl,' ${D}${bindir}/findsmb } -- 2.7.4