diff options
-rw-r--r-- | patches/dropbear-2015.67/0001-dropbear-disabling-ENABLE_CLI_PUBKEY_AUTH-let-the-bu.patch | 45 | ||||
-rw-r--r-- | patches/dropbear-2015.67/series | 4 | ||||
-rw-r--r-- | rules/dropbear.make | 62 |
3 files changed, 67 insertions, 44 deletions
diff --git a/patches/dropbear-2015.67/0001-dropbear-disabling-ENABLE_CLI_PUBKEY_AUTH-let-the-bu.patch b/patches/dropbear-2015.67/0001-dropbear-disabling-ENABLE_CLI_PUBKEY_AUTH-let-the-bu.patch new file mode 100644 index 000000000..6fc655a95 --- /dev/null +++ b/patches/dropbear-2015.67/0001-dropbear-disabling-ENABLE_CLI_PUBKEY_AUTH-let-the-bu.patch @@ -0,0 +1,45 @@ +From: Juergen Borleis <jbe@pengutronix.de> +Date: Fri, 13 Mar 2015 10:53:46 +0100 +Subject: [PATCH] dropbear: disabling ENABLE_CLI_PUBKEY_AUTH let the build + fail + +Function multihop_passthrough_args() fails due to missing 'privkeys' member +in structure 'cli_runopts'. So lets also disable ENABLE_CLI_MULTIHOP for +this case. +And even cli_getopts() fails due to missing loadidentityfile() function +in this case. + +Signed-off-by: Juergen Borleis <jbe@pengutronix.de> +--- + options.h | 4 +++- + sysoptions.h | 2 +- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/options.h b/options.h +index 6339b0a4738e..1360b5c6758f 100644 +--- a/options.h ++++ b/options.h +@@ -218,7 +218,9 @@ much traffic. */ + + /* A default argument for dbclient -i <privatekey>. + leading "~" is expanded */ +-#define DROPBEAR_DEFAULT_CLI_AUTHKEY "~/.ssh/id_dropbear" ++#ifdef ENABLE_CLI_PUBKEY_AUTH ++# define DROPBEAR_DEFAULT_CLI_AUTHKEY "~/.ssh/id_dropbear" ++#endif + + /* This variable can be used to set a password for client + * authentication on the commandline. Beware of platforms +diff --git a/sysoptions.h b/sysoptions.h +index bec72461d8e4..eeb78cb129a5 100644 +--- a/sysoptions.h ++++ b/sysoptions.h +@@ -202,7 +202,7 @@ + #define USING_LISTENERS + #endif + +-#if defined(ENABLE_CLI_NETCAT) && defined(ENABLE_CLI_PROXYCMD) ++#if defined(ENABLE_CLI_NETCAT) && defined(ENABLE_CLI_PROXYCMD) && defined(ENABLE_CLI_PUBKEY_AUTH) + #define ENABLE_CLI_MULTIHOP + #endif + diff --git a/patches/dropbear-2015.67/series b/patches/dropbear-2015.67/series new file mode 100644 index 000000000..501905e99 --- /dev/null +++ b/patches/dropbear-2015.67/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-dropbear-disabling-ENABLE_CLI_PUBKEY_AUTH-let-the-bu.patch +# 847698d613b5ea08c9504df4ed3f0099 - git-ptx-patches magic diff --git a/rules/dropbear.make b/rules/dropbear.make index ab9da5d29..a659114af 100644 --- a/rules/dropbear.make +++ b/rules/dropbear.make @@ -33,50 +33,24 @@ DROPBEAR_DIR := $(BUILDDIR)/$(DROPBEAR) # # autoconf # -DROPBEAR_AUTOCONF := \ - $(CROSS_AUTOCONF_USR) - -ifdef PTXCONF_DROPBEAR_ZLIB -DROPBEAR_AUTOCONF += --enable-zlib -else -DROPBEAR_AUTOCONF += --disable-zlib -endif - -ifdef PTXCONF_DROPBEAR_DIS_OPENPTY -DROPBEAR_AUTOCONF += --disable-openpty -endif - -ifdef PTXCONF_DROPBEAR_DIS_SYSLOG -DROPBEAR_AUTOCONF += --disable-syslog -endif - -ifdef PTXCONF_DROPBEAR_DIS_LASTLOG -DROPBEAR_AUTOCONF += --disable-lastlog -endif - -ifdef PTXCONF_DROPBEAR_DIS_UTMP -DROPBEAR_AUTOCONF += --disable-utmp -endif - -ifdef PTXCONF_DROPBEAR_DIS_UTMPX -DROPBEAR_AUTOCONF += --disable-utmpx -endif - -ifdef PTXCONF_DROPBEAR_DIS_WTMP -DROPBEAR_AUTOCONF += --disable-wtmp -endif - -ifdef PTXCONF_DROPBEAR_DIS_WTMPX -DROPBEAR_AUTOCONF += --disable-wtmpx -endif - -ifdef PTXCONF_DROPBEAR_DIS_PUTUTLINE -DROPBEAR_AUTOCONF += --disable-pututline -endif - -ifdef PTXCONF_DROPBEAR_DIS_PUTUTXLINE -DROPBEAR_AUTOCONF += --disable-pututxline -endif +DROPBEAR_CONF_TOOL := autoconf +DROPBEAR_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --$(call ptx/endis, PTXCONF_DROPBEAR_ZLIB)-zlib \ + --disable-pam \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_OPENPTY)-openpty \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_SYSLOG)-syslog \ + --enable-shadow \ + --enable-bundled-libtom \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_LASTLOG)-lastlog \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_UTMP)-utmp \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_UTMPX)-utmpx \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_WTMP)-wtmp \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_WTMPX)-wtmpx \ + --disable-loginfunc \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_PUTUTLINE)-pututline \ + --$(call ptx/disen, PTXCONF_DROPBEAR_DIS_PUTUTXLINE)-pututxline $(STATEDIR)/dropbear.prepare: @$(call targetinfo) |