Skip to contentSkip to conversation

dropbear: Change the path to find configuration file and add a configuration file for dropbear

PATCH Applied Xiaofeng Yan 2 participants 3 messages Aug 31, 2011

lore
Share & tools
lore
#0 lore raw

cover dropbear: Change the path to find configuration file and add a configuration file for dropbear

From: Xiaofeng Yan <[email protected]>

Hi Richard,

I modify my fault. Please review it again. If have any suggestion. I will modify it again.

Thanks
Yan

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/dropbear
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/dropbear

Thanks,
Xiaofeng Yan <[email protected]>
---

Xiaofeng Yan (1):
dropbear: Change the path to find configuration file and add a
configuration file for dropbear

 meta/recipes-core/dropbear/dropbear.inc |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
#1 lore raw

PATCH 1/1 dropbear: Change the path to find configuration file and add a configuration file for dropbear

From: Xiaofeng Yan <[email protected]>

dropbear will check "/etc/pam.d/sshd" which comes from package "openssh" \
When enabling pam supporting. But if we only install dropbear \
package without package "openssh", then "dropbear" will not \
find a configuration file.
The changes are as follow for fixing this bug:

- Change the path to find configuration file (/etc/pam.d/sshd --> /etc/pam.d/dropbear)
- Add a configuration file "/etc/pam.d/dropbear"

---
 meta/recipes-core/dropbear/dropbear.inc |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
meta/recipes-core/dropbear/dropbear.inc +11 -1
index 5af9ebd..1582f2e 100644
@@ -19,7 +19,9 @@ SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.gz \
 	         file://init \
                  ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} "
 
-PAM_SRC_URI = "file://dropbear-enable-pam.patch"
+PAM_SRC_URI = "file://dropbear-enable-pam.patch \
+               file://dropbear-configuration-file.patch \
+               file://dropbear"
 
 inherit autotools update-rc.d
 
@@ -68,6 +70,14 @@ do_install() {
 				  -e 's,/usr/bin,${bindir},g' \
 				  -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear
 	chmod 755 ${D}${sysconfdir}/init.d/dropbear
+	for i in ${DISTRO_FEATURES};
+	do
+		if [ ${i} = "pam" ];  then
+			install -d ${D}${sysconfdir}/pam.d
+			install -m 0644 ${WORKDIR}/dropbear  ${D}${sysconfdir}/pam.d/
+		fi
+	done
+
 }
 
 pkg_postinst_${PN} () {
Signature · 1 line
1.7.0.4
#2 lore raw
Quoted 8 lines · Xiaofeng Yan

From: Xiaofeng Yan <[email protected]>

dropbear will check "/etc/pam.d/sshd" which comes from package "openssh" \
When enabling pam supporting. But if we only install dropbear \
package without package "openssh", then "dropbear" will not \
find a configuration file.
The changes are as follow for fixing this bug:

Quoted 7 lines

- Change the path to find configuration file (/etc/pam.d/sshd --> /etc/pam.d/dropbear)
- Add a configuration file "/etc/pam.d/dropbear"

---
 meta/recipes-core/dropbear/dropbear.inc |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard