summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dropbear/dropbear.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/dropbear/dropbear.inc')
-rw-r--r--meta/recipes-core/dropbear/dropbear.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc
index 5af9ebd4d0..1582f2e703 100644
--- a/meta/recipes-core/dropbear/dropbear.inc
+++ b/meta/recipes-core/dropbear/dropbear.inc
@@ -19,7 +19,9 @@ SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.gz \
19 file://init \ 19 file://init \
20 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} " 20 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} "
21 21
22PAM_SRC_URI = "file://dropbear-enable-pam.patch" 22PAM_SRC_URI = "file://dropbear-enable-pam.patch \
23 file://dropbear-configuration-file.patch \
24 file://dropbear"
23 25
24inherit autotools update-rc.d 26inherit autotools update-rc.d
25 27
@@ -68,6 +70,14 @@ do_install() {
68 -e 's,/usr/bin,${bindir},g' \ 70 -e 's,/usr/bin,${bindir},g' \
69 -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear 71 -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear
70 chmod 755 ${D}${sysconfdir}/init.d/dropbear 72 chmod 755 ${D}${sysconfdir}/init.d/dropbear
73 for i in ${DISTRO_FEATURES};
74 do
75 if [ ${i} = "pam" ]; then
76 install -d ${D}${sysconfdir}/pam.d
77 install -m 0644 ${WORKDIR}/dropbear ${D}${sysconfdir}/pam.d/
78 fi
79 done
80
71} 81}
72 82
73pkg_postinst_${PN} () { 83pkg_postinst_${PN} () {