summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dropbear
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-04 13:09:11 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-05 14:24:43 (GMT)
commit6ab56c54f316154d89f03ec0c6c2cb39d1736cff (patch)
tree952d5bde1c81457378d6d995051cd04674dbf489 /meta/recipes-core/dropbear
parent82233cd647b1ecc256afb0c3378906cf8af46f8e (diff)
downloadpoky-6ab56c54f316154d89f03ec0c6c2cb39d1736cff.tar.gz
classes/recipes: More optimal DISTRO_FEATURES references
Using the contains function results in more optimal sstate checksums resulting in better cache reuse as we as more consistent code. (From OE-Core rev: 9c93526756e7cbbff027c88eb972f877bcb1f057) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dropbear')
-rw-r--r--meta/recipes-core/dropbear/dropbear.inc12
1 files changed, 4 insertions, 8 deletions
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc
index 5d9623d..4262b1d 100644
--- a/meta/recipes-core/dropbear/dropbear.inc
+++ b/meta/recipes-core/dropbear/dropbear.inc
@@ -62,14 +62,10 @@ do_install() {
62 -e 's,/usr/bin,${bindir},g' \ 62 -e 's,/usr/bin,${bindir},g' \
63 -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear 63 -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear
64 chmod 755 ${D}${sysconfdir}/init.d/dropbear 64 chmod 755 ${D}${sysconfdir}/init.d/dropbear
65 for i in ${DISTRO_FEATURES}; 65 if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then
66 do 66 install -d ${D}${sysconfdir}/pam.d
67 if [ ${i} = "pam" ]; then 67 install -m 0644 ${WORKDIR}/dropbear ${D}${sysconfdir}/pam.d/
68 install -d ${D}${sysconfdir}/pam.d 68 fi
69 install -m 0644 ${WORKDIR}/dropbear ${D}${sysconfdir}/pam.d/
70 fi
71 done
72
73} 69}
74 70
75inherit update-alternatives 71inherit update-alternatives