[package/dropbear]: upgrade to 0.53.1
authorImre Kaloz <kaloz@openwrt.org>
Wed, 2 Mar 2011 14:20:51 +0000 (14:20 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Wed, 2 Mar 2011 14:20:51 +0000 (14:20 +0000)
SVN-Revision: 25830

package/dropbear/Makefile
package/dropbear/patches/110-change_user.patch
package/dropbear/patches/120-use_small_code.patch [new file with mode: 0644]
package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch

index bb1230c..9c6a2a2 100644 (file)
@@ -8,14 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dropbear
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dropbear
-PKG_VERSION:=0.52
-PKG_RELEASE:=5
+PKG_VERSION:=0.53.1
+PKG_RELEASE:=1
 
 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_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:=1c69ec674481d7745452f68f2ea5597e
+PKG_MD5SUM:=6b8d901859d9b8a18e2f6bfe0a892a03
 
 PKG_BUILD_PARALLEL:=1
 
 
 PKG_BUILD_PARALLEL:=1
 
@@ -63,7 +63,8 @@ CONFIGURE_ARGS += \
        --disable-loginfunc \
        --disable-pututline \
        --disable-pututxline \
        --disable-loginfunc \
        --disable-pututline \
        --disable-pututxline \
-       --disable-zlib
+       --disable-zlib \
+       --enable-bundled-libtom
 
 TARGET_CFLAGS += -DARGTYPE=3 -ffunction-sections -fdata-sections
 TARGET_LDFLAGS += -Wl,--gc-sections
 
 TARGET_CFLAGS += -DARGTYPE=3 -ffunction-sections -fdata-sections
 TARGET_LDFLAGS += -Wl,--gc-sections
index 964229b..f003c27 100644 (file)
@@ -1,6 +1,6 @@
 --- a/svr-chansession.c
 +++ b/svr-chansession.c
 --- a/svr-chansession.c
 +++ b/svr-chansession.c
-@@ -852,12 +852,12 @@ static void execchild(void *user_data) {
+@@ -881,12 +881,12 @@ static void execchild(void *user_data) {
        /* We can only change uid/gid as root ... */
        if (getuid() == 0) {
  
        /* We can only change uid/gid as root ... */
        if (getuid() == 0) {
  
@@ -9,10 +9,10 @@
                        (initgroups(ses.authstate.pw_name, 
 -                                              ses.authstate.pw_gid) < 0)) {
 +                                              ses.authstate.pw_gid) < 0))) {
                        (initgroups(ses.authstate.pw_name, 
 -                                              ses.authstate.pw_gid) < 0)) {
 +                                              ses.authstate.pw_gid) < 0))) {
-                       dropbear_exit("error changing user group");
+                       dropbear_exit("Error changing user group");
                }
 -              if (setuid(ses.authstate.pw_uid) < 0) {
 +              if ((ses.authstate.pw_uid != 0) && (setuid(ses.authstate.pw_uid) < 0)) {
                }
 -              if (setuid(ses.authstate.pw_uid) < 0) {
 +              if ((ses.authstate.pw_uid != 0) && (setuid(ses.authstate.pw_uid) < 0)) {
-                       dropbear_exit("error changing user");
+                       dropbear_exit("Error changing user");
                }
        } else {
                }
        } else {
diff --git a/package/dropbear/patches/120-use_small_code.patch b/package/dropbear/patches/120-use_small_code.patch
new file mode 100644 (file)
index 0000000..98a760f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/options.h
++++ b/options.h
+@@ -49,7 +49,7 @@
+ several kB in binary size however will make the symmetrical ciphers and hashes
+ slower, perhaps by 50%. Recommended for small systems that aren't doing
+ much traffic. */
+-/*#define DROPBEAR_SMALL_CODE*/
++#define DROPBEAR_SMALL_CODE
+ /* Enable X11 Forwarding - server only */
+ #define ENABLE_X11FWD
index 7c4306c..93647a9 100644 (file)
@@ -1,6 +1,6 @@
 --- a/cli-runopts.c
 +++ b/cli-runopts.c
 --- a/cli-runopts.c
 +++ b/cli-runopts.c
-@@ -271,6 +271,10 @@ void cli_getopts(int argc, char ** argv)
+@@ -287,6 +287,10 @@ void cli_getopts(int argc, char ** argv)
                                        debug_trace = 1;
                                        break;
  #endif
                                        debug_trace = 1;
                                        break;
  #endif
@@ -11,7 +11,7 @@
                                case 'F':
                                case 'e':
                                case 'c':
                                case 'F':
                                case 'e':
                                case 'c':
-@@ -282,7 +286,6 @@ void cli_getopts(int argc, char ** argv)
+@@ -298,7 +302,6 @@ void cli_getopts(int argc, char ** argv)
  #ifndef ENABLE_CLI_LOCALTCPFWD
                                case 'L':
  #endif
  #ifndef ENABLE_CLI_LOCALTCPFWD
                                case 'L':
  #endif