From: Florian Fainelli Date: Sat, 11 Aug 2007 21:53:15 +0000 (+0000) Subject: Upgrade dropbear to 0.50 (#2201) X-Git-Tag: reboot~28365 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e96a64d75e39102148c153e2ac65008888cbf28e;p=oweals%2Fopenwrt.git Upgrade dropbear to 0.50 (#2201) SVN-Revision: 8400 --- diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile index 60625947af..c4816f116d 100644 --- a/package/dropbear/Makefile +++ b/package/dropbear/Makefile @@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dropbear -PKG_VERSION:=0.49 -PKG_RELEASE:=2 +PKG_VERSION:=0.50 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://matt.ucc.asn.au/dropbear/releases/ \ - http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/ -PKG_MD5SUM:=7b20c85f1ee34f018a1b948eae003df9 + http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/ +PKG_MD5SUM:=5c0f7405b915799c3d952d3a93a5df69 include $(INCLUDE_DIR)/package.mk @@ -75,8 +75,7 @@ endef define Package/dropbear/install $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti \ - $(1)/usr/sbin/dropbear + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear $(INSTALL_DIR) $(1)/usr/bin ln -sf ../sbin/dropbear $(1)/usr/bin/scp ln -sf ../sbin/dropbear $(1)/usr/bin/ssh @@ -93,8 +92,7 @@ endef define Package/dropbearconvert/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert \ - $(1)/usr/bin/dropbearconvert + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert $(1)/usr/bin/dropbearconvert endef $(eval $(call BuildPackage,dropbear)) diff --git a/package/dropbear/patches/100-pubkey_path.patch b/package/dropbear/patches/100-pubkey_path.patch index 3f76e3a743..9c7fc19c43 100644 --- a/package/dropbear/patches/100-pubkey_path.patch +++ b/package/dropbear/patches/100-pubkey_path.patch @@ -1,7 +1,7 @@ -Index: dropbear-0.49/svr-authpubkey.c +Index: dropbear-0.50/svr-authpubkey.c =================================================================== ---- dropbear-0.49.orig/svr-authpubkey.c 2007-06-04 13:21:39.475975408 +0200 -+++ dropbear-0.49/svr-authpubkey.c 2007-06-04 13:21:39.542965224 +0200 +--- dropbear-0.50.orig/svr-authpubkey.c 2007-08-10 23:47:48.000000000 +0200 ++++ dropbear-0.50/svr-authpubkey.c 2007-08-10 23:47:48.000000000 +0200 @@ -176,6 +176,8 @@ goto out; } diff --git a/package/dropbear/patches/110-change_user.patch b/package/dropbear/patches/110-change_user.patch index 9a9a6afda1..20bb41c2d2 100644 --- a/package/dropbear/patches/110-change_user.patch +++ b/package/dropbear/patches/110-change_user.patch @@ -1,7 +1,7 @@ -Index: dropbear-0.49/svr-chansession.c +Index: dropbear-0.50/svr-chansession.c =================================================================== ---- dropbear-0.49.orig/svr-chansession.c 2007-06-04 13:21:39.455978448 +0200 -+++ dropbear-0.49/svr-chansession.c 2007-06-04 13:21:39.751933456 +0200 +--- dropbear-0.50.orig/svr-chansession.c 2007-08-10 23:47:48.000000000 +0200 ++++ dropbear-0.50/svr-chansession.c 2007-08-10 23:47:48.000000000 +0200 @@ -908,12 +908,12 @@ /* We can only change uid/gid as root ... */ if (getuid() == 0) { diff --git a/package/dropbear/patches/120-hostkey_prompt.patch b/package/dropbear/patches/120-hostkey_prompt.patch index 3a34771bed..e69de29bb2 100644 --- a/package/dropbear/patches/120-hostkey_prompt.patch +++ b/package/dropbear/patches/120-hostkey_prompt.patch @@ -1,13 +0,0 @@ -Index: dropbear-0.49/cli-kex.c -=================================================================== ---- dropbear-0.49.orig/cli-kex.c 2007-06-04 13:21:39.435981488 +0200 -+++ dropbear-0.49/cli-kex.c 2007-06-04 13:21:39.937905184 +0200 -@@ -126,7 +126,7 @@ - m_free(fp); - return; - } -- fprintf(stderr, "\nHost '%s' is not in the trusted hosts file.\n(fingerprint %s)\nDo you want to continue connecting? (y/n)\n", -+ fprintf(stderr, "\nHost '%s' is not in the trusted hosts file.\n(fingerprint %s)\nDo you want to continue connecting? (y/n)", - cli_opts.remotehost, - fp); - m_free(fp); diff --git a/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch b/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch index b8a7d44e81..26b5b7f237 100644 --- a/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch +++ b/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch @@ -1,8 +1,8 @@ -Index: dropbear-0.49/cli-runopts.c +Index: dropbear-0.50/cli-runopts.c =================================================================== ---- dropbear-0.49.orig/cli-runopts.c 2007-06-04 13:21:39.414984680 +0200 -+++ dropbear-0.49/cli-runopts.c 2007-06-04 13:21:40.122877064 +0200 -@@ -203,6 +203,10 @@ +--- dropbear-0.50.orig/cli-runopts.c 2007-08-10 23:47:47.000000000 +0200 ++++ dropbear-0.50/cli-runopts.c 2007-08-10 23:47:49.000000000 +0200 +@@ -219,6 +219,10 @@ debug_trace = 1; break; #endif @@ -13,7 +13,7 @@ Index: dropbear-0.49/cli-runopts.c case 'F': case 'e': case 'c': -@@ -214,7 +218,6 @@ +@@ -230,7 +234,6 @@ #ifndef ENABLE_CLI_LOCALTCPFWD case 'L': #endif diff --git a/package/dropbear/patches/140-use_dev_urandom.patch b/package/dropbear/patches/140-use_dev_urandom.patch index 61deff8540..e69de29bb2 100644 --- a/package/dropbear/patches/140-use_dev_urandom.patch +++ b/package/dropbear/patches/140-use_dev_urandom.patch @@ -1,13 +0,0 @@ -Index: dropbear-0.49/options.h -=================================================================== ---- dropbear-0.49.orig/options.h 2007-06-04 13:21:39.394987720 +0200 -+++ dropbear-0.49/options.h 2007-06-04 13:21:40.305849248 +0200 -@@ -159,7 +159,7 @@ - * however significantly reduce the security of your ssh connections - * if the PRNG state becomes guessable - make sure you know what you are - * doing if you change this. */ --#define DROPBEAR_RANDOM_DEV "/dev/random" -+#define DROPBEAR_RANDOM_DEV "/dev/urandom" - - /* prngd must be manually set up to produce output */ - /*#define DROPBEAR_PRNGD_SOCKET "/var/run/dropbear-rng"*/ diff --git a/package/dropbear/patches/150-dbconvert_standalone.patch b/package/dropbear/patches/150-dbconvert_standalone.patch index d8e283e4de..54d74d3ac5 100644 --- a/package/dropbear/patches/150-dbconvert_standalone.patch +++ b/package/dropbear/patches/150-dbconvert_standalone.patch @@ -1,7 +1,7 @@ -Index: dropbear-0.49/options.h +Index: dropbear-0.50/options.h =================================================================== ---- dropbear-0.49.orig/options.h 2007-06-04 13:21:40.305849248 +0200 -+++ dropbear-0.49/options.h 2007-06-04 13:21:40.493820672 +0200 +--- dropbear-0.50.orig/options.h 2007-08-10 23:47:47.000000000 +0200 ++++ dropbear-0.50/options.h 2007-08-10 23:47:49.000000000 +0200 @@ -5,6 +5,11 @@ #ifndef _OPTIONS_H_ #define _OPTIONS_H_ diff --git a/package/dropbear/patches/160-tty_close.patch b/package/dropbear/patches/160-tty_close.patch index 0fd9ef684d..8c06e0f912 100644 --- a/package/dropbear/patches/160-tty_close.patch +++ b/package/dropbear/patches/160-tty_close.patch @@ -1,8 +1,8 @@ -Index: dropbear-0.49/common-channel.c +Index: dropbear-0.50/common-channel.c =================================================================== ---- dropbear-0.49.orig/common-channel.c 2007-06-04 13:21:39.354993800 +0200 -+++ dropbear-0.49/common-channel.c 2007-06-04 13:21:40.676792856 +0200 -@@ -310,10 +310,10 @@ +--- dropbear-0.50.orig/common-channel.c 2007-08-10 23:47:47.000000000 +0200 ++++ dropbear-0.50/common-channel.c 2007-08-10 23:47:50.000000000 +0200 +@@ -311,10 +311,10 @@ send_msg_channel_eof(channel); }