diff options
-rw-r--r-- | packages/dropbear/dropbear-0.51/.mtn2git_empty (renamed from packages/dropbear/dropbear-0.50/.mtn2git_empty) | 0 | ||||
-rw-r--r-- | packages/dropbear/dropbear-0.51/allow-nopw.patch | 40 | ||||
-rw-r--r-- | packages/dropbear/dropbear-0.51/configure.patch (renamed from packages/dropbear/dropbear-0.50/configure.patch) | 0 | ||||
-rw-r--r-- | packages/dropbear/dropbear-0.51/fix-2kb-keys.patch (renamed from packages/dropbear/dropbear-0.50/fix-2kb-keys.patch) | 0 | ||||
-rw-r--r-- | packages/dropbear/dropbear-0.51/urandom-xauth-changes-to-options.h.patch (renamed from packages/dropbear/dropbear-0.50/urandom-xauth-changes-to-options.h.patch) | 0 | ||||
-rw-r--r-- | packages/dropbear/dropbear.inc | 46 | ||||
-rw-r--r-- | packages/dropbear/dropbear_0.51.bb (renamed from packages/dropbear/dropbear_0.50.bb) | 3 |
7 files changed, 65 insertions, 24 deletions
diff --git a/packages/dropbear/dropbear-0.50/.mtn2git_empty b/packages/dropbear/dropbear-0.51/.mtn2git_empty index e69de29bb2..e69de29bb2 100644 --- a/packages/dropbear/dropbear-0.50/.mtn2git_empty +++ b/packages/dropbear/dropbear-0.51/.mtn2git_empty diff --git a/packages/dropbear/dropbear-0.51/allow-nopw.patch b/packages/dropbear/dropbear-0.51/allow-nopw.patch new file mode 100644 index 0000000000..3f3e8b167f --- /dev/null +++ b/packages/dropbear/dropbear-0.51/allow-nopw.patch @@ -0,0 +1,40 @@ +Index: dropbear-0.51/svr-auth.c +=================================================================== +--- dropbear-0.51.orig/svr-auth.c ++++ dropbear-0.51/svr-auth.c +@@ -270,7 +270,7 @@ static int checkusername(unsigned char * + send_msg_userauth_failure(0, 1); + return DROPBEAR_FAILURE; + } +- ++#ifdef DISALLOW_EMPTY_PW + /* check for an empty password */ + if (ses.authstate.pw_passwd[0] == '\0') { + TRACE(("leave checkusername: empty pword")) +@@ -279,7 +279,7 @@ static int checkusername(unsigned char * + send_msg_userauth_failure(0, 1); + return DROPBEAR_FAILURE; + } +- ++#endif + TRACE(("shell is %s", ses.authstate.pw_shell)) + + /* check that the shell is set */ +Index: dropbear-0.51/svr-authpasswd.c +=================================================================== +--- dropbear-0.51.orig/svr-authpasswd.c ++++ dropbear-0.51/svr-authpasswd.c +@@ -64,9 +64,13 @@ void svr_auth_password() { + * since the shadow password may differ to that tested + * in auth.c */ + if (passwdcrypt[0] == '\0') { ++#ifdef DISALLOW_EMPTY_PW + dropbear_log(LOG_WARNING, "user '%s' has blank password, rejected", + ses.authstate.pw_name); + send_msg_userauth_failure(0, 1); ++#else ++ send_msg_userauth_success(); ++#endif + return; + } + diff --git a/packages/dropbear/dropbear-0.50/configure.patch b/packages/dropbear/dropbear-0.51/configure.patch index fa24efc066..fa24efc066 100644 --- a/packages/dropbear/dropbear-0.50/configure.patch +++ b/packages/dropbear/dropbear-0.51/configure.patch diff --git a/packages/dropbear/dropbear-0.50/fix-2kb-keys.patch b/packages/dropbear/dropbear-0.51/fix-2kb-keys.patch index bb7a4d32ac..bb7a4d32ac 100644 --- a/packages/dropbear/dropbear-0.50/fix-2kb-keys.patch +++ b/packages/dropbear/dropbear-0.51/fix-2kb-keys.patch diff --git a/packages/dropbear/dropbear-0.50/urandom-xauth-changes-to-options.h.patch b/packages/dropbear/dropbear-0.51/urandom-xauth-changes-to-options.h.patch index 787b801643..787b801643 100644 --- a/packages/dropbear/dropbear-0.50/urandom-xauth-changes-to-options.h.patch +++ b/packages/dropbear/dropbear-0.51/urandom-xauth-changes-to-options.h.patch diff --git a/packages/dropbear/dropbear.inc b/packages/dropbear/dropbear.inc index ebe0c1ea9c..31edd26cc8 100644 --- a/packages/dropbear/dropbear.inc +++ b/packages/dropbear/dropbear.inc @@ -6,19 +6,21 @@ DEPENDS = "zlib" PROVIDES = "ssh sshd" RPROVIDES = "ssh sshd" -SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.gz \ - file://urandom-xauth-changes-to-options.h.patch;patch=1 \ - file://configure.patch;patch=1 \ - file://fix-2kb-keys.patch;patch=1 \ - file://allow-nopw.patch \ - file://init" +SRC_URI = "\ + http://matt.ucc.asn.au/dropbear/dropbear-${PV}.tar.bz2 \ + file://urandom-xauth-changes-to-options.h.patch;patch=1 \ + file://configure.patch;patch=1 \ + file://fix-2kb-keys.patch;patch=1 \ + file://allow-nopw.patch \ + file://init \ +" inherit autotools update-rc.d INITSCRIPT_NAME = "dropbear" INITSCRIPT_PARAMS = "defaults 10" -CFLAGS_prepend = " -I. " +CFLAGS =+ "-I." LD = "${CC}" SBINCOMMANDS = "dropbear dropbearkey dropbearconvert" @@ -33,13 +35,13 @@ do_configure_prepend() { } do_install() { - install -d ${D}${sysconfdir} \ - ${D}${sysconfdir}/init.d \ - ${D}${sysconfdir}/default \ - ${D}${sysconfdir}/dropbear \ - ${D}${bindir} \ - ${D}${sbindir} \ - ${D}${localstatedir} + install -d ${D}${sysconfdir} + install -d ${D}${sysconfdir}/init.d + install -d ${D}${sysconfdir}/default + install -d ${D}${sysconfdir}/dropbear + install -d ${D}${bindir} + install -d ${D}${sbindir} + install -d ${D}${localstatedir} install -m 0755 dropbearmulti ${D}${sbindir}/ ln -s ${sbindir}/dropbearmulti ${D}${bindir}/dbclient @@ -62,12 +64,12 @@ pkg_postinst () { } pkg_postrm_append () { - if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then - rm ${sysconfdir}/dropbear/dropbear_rsa_host_key - fi - if [ -f "${sysconfdir}/dropbear/dropbear_dss_host_key" ]; then - rm ${sysconfdir}/dropbear/dropbear_dss_host_key - fi - update-alternatives --remove ssh ${bindir}/dropbearmulti - update-alternatives --remove scp ${bindir}/dropbearmulti + if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then + rm ${sysconfdir}/dropbear/dropbear_rsa_host_key + fi + if [ -f "${sysconfdir}/dropbear/dropbear_dss_host_key" ]; then + rm ${sysconfdir}/dropbear/dropbear_dss_host_key + fi + update-alternatives --remove ssh ${bindir}/dropbearmulti + update-alternatives --remove scp ${bindir}/dropbearmulti } diff --git a/packages/dropbear/dropbear_0.50.bb b/packages/dropbear/dropbear_0.51.bb index bd8f31cff6..ab57921eed 100644 --- a/packages/dropbear/dropbear_0.50.bb +++ b/packages/dropbear/dropbear_0.51.bb @@ -1,6 +1,5 @@ require dropbear.inc - -PR = "r1" +PR = "r0" # testing DEFAULT_PREFERENCE = "-1" |