]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dropbear: add pam modules dependencies
authorWenzong Fan <wenzong.fan@windriver.com>
Fri, 12 Sep 2014 08:57:34 +0000 (04:57 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Sep 2014 21:12:30 +0000 (22:12 +0100)
If pam distro feature enabled, dropbear will need below pam rpms
to work:

  * libpam-runtime
  * pam-plugin-deny
  * pam-plugin-permit
  * pam-plugin-unix

Just add the runtime dependencies explicitly.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/dropbear/dropbear.inc

index 9fec09e91952e383d4395d6c77c61921b83ab5f5..947a4916790edf4f0fb392d69dd07f821ec13f14 100644 (file)
@@ -27,6 +27,13 @@ PAM_SRC_URI = "file://0005-dropbear-enable-pam.patch \
                file://0006-dropbear-configuration-file.patch \
                file://dropbear"
 
+PAM_PLUGINS = "libpam-runtime \
+       pam-plugin-deny \
+       pam-plugin-permit \
+       pam-plugin-unix \
+       "
+RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
+
 inherit autotools update-rc.d systemd
 
 INITSCRIPT_NAME = "dropbear"