diff options
| author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2011-07-26 17:06:29 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 12:02:43 +0100 |
| commit | cec1bc74c01b411b5c77d7b3af4b95cde5f48d2e (patch) | |
| tree | 436429233d9b9fd7b448ffc097d203edacfa5110 /meta | |
| parent | f491a7ea0c570e481728d57cf7848b09c93f4373 (diff) | |
| download | poky-cec1bc74c01b411b5c77d7b3af4b95cde5f48d2e.tar.gz | |
dropbear: Support pam
I make a patch and some changes in dropbear.inc for supporting pam.
- Enable pam in configure
- Modify file option.h to open pam supporting
(From OE-Core rev: e8f19e8616fb1b0c2d977fb63eaa64f504fb774b)
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/dropbear/dropbear.inc | 8 | ||||
| -rw-r--r-- | meta/recipes-core/dropbear/dropbear/dropbear-enable-pam.patch | 22 |
2 files changed, 29 insertions, 1 deletions
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc index 526a5a045d..5af9ebd4d0 100644 --- a/meta/recipes-core/dropbear/dropbear.inc +++ b/meta/recipes-core/dropbear/dropbear.inc | |||
| @@ -9,13 +9,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3a5b0c2f0d0c49dfde9558ae2036683c" | |||
| 9 | 9 | ||
| 10 | DEPENDS = "zlib" | 10 | DEPENDS = "zlib" |
| 11 | RPROVIDES = "ssh sshd" | 11 | RPROVIDES = "ssh sshd" |
| 12 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
| 12 | 13 | ||
| 13 | SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.gz \ | 14 | SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.gz \ |
| 14 | file://urandom-xauth-changes-to-options.h.patch \ | 15 | file://urandom-xauth-changes-to-options.h.patch \ |
| 15 | file://configure.patch \ | 16 | file://configure.patch \ |
| 16 | file://fix-2kb-keys.patch \ | 17 | file://fix-2kb-keys.patch \ |
| 17 | file://allow-nopw.patch;apply=no \ | 18 | file://allow-nopw.patch;apply=no \ |
| 18 | file://init" | 19 | file://init \ |
| 20 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} " | ||
| 21 | |||
| 22 | PAM_SRC_URI = "file://dropbear-enable-pam.patch" | ||
| 19 | 23 | ||
| 20 | inherit autotools update-rc.d | 24 | inherit autotools update-rc.d |
| 21 | 25 | ||
| @@ -28,6 +32,8 @@ LD = "${CC}" | |||
| 28 | SBINCOMMANDS = "dropbear dropbearkey dropbearconvert" | 32 | SBINCOMMANDS = "dropbear dropbearkey dropbearconvert" |
| 29 | BINCOMMANDS = "dbclient ssh scp" | 33 | BINCOMMANDS = "dbclient ssh scp" |
| 30 | EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"' | 34 | EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"' |
| 35 | EXTRA_OECONF += "\ | ||
| 36 | ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" | ||
| 31 | 37 | ||
| 32 | DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)}" | 38 | DISTRO_TYPE ?= "${@base_contains("IMAGE_FEATURES", "debug-tweaks", "debug", "",d)}" |
| 33 | 39 | ||
diff --git a/meta/recipes-core/dropbear/dropbear/dropbear-enable-pam.patch b/meta/recipes-core/dropbear/dropbear/dropbear-enable-pam.patch new file mode 100644 index 0000000000..004d773dc3 --- /dev/null +++ b/meta/recipes-core/dropbear/dropbear/dropbear-enable-pam.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | dropbear: We need modify file option.h besides enabling pam in \ | ||
| 2 | configure if we want dropbear to support pam. | ||
| 3 | |||
| 4 | Upstream-Status: Pending | ||
| 5 | |||
| 6 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> | ||
| 7 | |||
| 8 | --- a/options.h 2011-07-12 13:27:39.008819183 +0800 | ||
| 9 | +++ b/options.h.new 2011-07-12 13:37:37.780819308 +0800 | ||
| 10 | @@ -149,9 +149,9 @@ | ||
| 11 | * but there's an interface via a PAM module - don't bother using it otherwise. | ||
| 12 | * You can't enable both PASSWORD and PAM. */ | ||
| 13 | |||
| 14 | -#define ENABLE_SVR_PASSWORD_AUTH | ||
| 15 | +//#define ENABLE_SVR_PASSWORD_AUTH | ||
| 16 | /* PAM requires ./configure --enable-pam */ | ||
| 17 | -/*#define ENABLE_SVR_PAM_AUTH*/ | ||
| 18 | +#define ENABLE_SVR_PAM_AUTH | ||
| 19 | #define ENABLE_SVR_PUBKEY_AUTH | ||
| 20 | |||
| 21 | /* Wether to ake public key options in authorized_keys file into account */ | ||
| 22 | |||
