summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-08-25 16:09:13 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-08-25 16:09:13 +0200
commit47fff4698e2109c563a241892f3f907faa014268 (patch)
treee42cb28e9383f9e1c258ce09b682a4c04a086f3e
parent18612e5ffb4710338a804127a9e2cc77d855c503 (diff)
downloadmidipix_build-47fff4698e2109c563a241892f3f907faa014268.tar.bz2
midipix_build-47fff4698e2109c563a241892f3f907faa014268.tar.xz
vars/build.vars: updates sed to v4.4, adds dropbear v2017.75 (via Redfoxmoon.)
patches/{dropbear-2017.75.local,dropbear/dropbear-shell-detection-hack}.patch: added (via Redfoxmoon.)
-rw-r--r--patches/dropbear-2017.75.local.patch83
-rw-r--r--patches/dropbear/dropbear-shell-detection-hack.patch11
-rw-r--r--vars/build.vars12
3 files changed, 102 insertions, 4 deletions
diff --git a/patches/dropbear-2017.75.local.patch b/patches/dropbear-2017.75.local.patch
new file mode 100644
index 00000000..8f8f7b1b
--- /dev/null
+++ b/patches/dropbear-2017.75.local.patch
@@ -0,0 +1,83 @@
+diff -ru dropbear-2017.75.orig/configure dropbear-2017.75/configure
+--- dropbear-2017.75.orig/configure 2017-05-18 16:47:03.000000000 +0200
++++ dropbear-2017.75/configure 2017-08-23 17:34:07.708548199 +0200
+@@ -6793,20 +6793,22 @@
+
+ fi
+
+-
+-# Solaris needs ptmx
+-if test -z "$no_ptmx_check" ; then
+- if test x"$cross_compiling" = x"no" ; then
+- if test -e /dev/ptmx ; then
+-
++#Why no config.cache checking?!
+ $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
+
+- fi
+- else
+- { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
+-$as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
+- fi
+-fi
++# Solaris needs ptmx
++#if test -z "$no_ptmx_check" ; then
++# if test x"$cross_compiling" = x"no" ; then
++# if test -e /dev/ptmx ; then
++#
++#$as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
++#
++# fi
++# else
++# { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
++#$as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
++# fi
++#fi
+
+ if test -z "$no_ptc_check" ; then
+ if test x"$cross_compiling" = x"no" ; then
+diff -ru dropbear-2017.75.orig/includes.h dropbear-2017.75/includes.h
+--- dropbear-2017.75.orig/includes.h 2017-05-18 16:47:02.000000000 +0200
++++ dropbear-2017.75/includes.h 2017-08-23 17:23:59.379752797 +0200
+@@ -156,7 +156,7 @@
+ typedef u_int32_t uint32_t;
+ #endif /* HAVE_UINT32_T */
+
+-#ifdef SO_PRIORITY
++#if defined(SO_PRIORITY) && !defined(__midipix__)
+ #include <linux/types.h>
+ #include <linux/pkt_sched.h>
+ #endif
+diff -ru dropbear-2017.75.orig/netio.c dropbear-2017.75/netio.c
+--- dropbear-2017.75.orig/netio.c 2017-05-18 16:47:02.000000000 +0200
++++ dropbear-2017.75/netio.c 2017-08-23 17:25:34.759249812 +0200
+@@ -333,7 +333,7 @@
+ }
+ #endif
+
+-#ifdef SO_PRIORITY
++#if defined(SO_PRIORITY) && !defined(__midipix__)
+ if (prio == DROPBEAR_PRIO_LOWDELAY) {
+ so_prio_val = TC_PRIO_INTERACTIVE;
+ } else if (prio == DROPBEAR_PRIO_BULK) {
+diff -ru dropbear-2017.75.orig/options.h dropbear-2017.75/options.h
+--- dropbear-2017.75.orig/options.h 2017-05-18 16:47:02.000000000 +0200
++++ dropbear-2017.75/options.h 2017-08-23 17:27:15.962716376 +0200
+@@ -52,7 +52,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*/ /* NO! */
+
+ /* Enable X11 Forwarding - server only */
+ #define ENABLE_X11FWD
+@@ -347,7 +347,7 @@
+ #define DEFAULT_IDLE_TIMEOUT 0
+
+ /* The default path. This will often get replaced by the shell */
+-#define DEFAULT_PATH "/usr/bin:/bin"
++#define DEFAULT_PATH "/bin"
+
+ /* Some other defines (that mostly should be left alone) are defined
+ * in sysoptions.h */
diff --git a/patches/dropbear/dropbear-shell-detection-hack.patch b/patches/dropbear/dropbear-shell-detection-hack.patch
new file mode 100644
index 00000000..fe520c4d
--- /dev/null
+++ b/patches/dropbear/dropbear-shell-detection-hack.patch
@@ -0,0 +1,11 @@
+diff -ru dropbear-2017.75.orig/svr-auth.c dropbear-2017.75/svr-auth.c
+--- dropbear-2017.75.orig/svr-auth.c 2017-05-18 16:47:02.000000000 +0200
++++ dropbear-2017.75/svr-auth.c 2017-08-23 17:38:21.843211002 +0200
+@@ -300,6 +300,7 @@
+ }
+ /* no matching shell */
+ endusershell();
++ return DROPBEAR_SUCCESS;
+ TRACE(("no matching shell"))
+ dropbear_log(LOG_WARNING, "User '%s' has invalid shell, rejected",
+ ses.authstate.pw_name);
diff --git a/vars/build.vars b/vars/build.vars
index 4fbf2979..9d10537c 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -520,7 +520,7 @@ LEAF_PACKAGES_LDFLAGS_CONFIGURE="--sysroot=${PREFIX_NATIVE}";
LEAF_PACKAGES_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}";
LEAF_PACKAGES_PACKAGES="
apk_tools bash bc bdwgc bind bison chicken clang_host coreutils cparser cron dash datamash diffutils
-dos2unix ed figlet file findutils gawk git gnupg grep hexcurse htop inetutils infounzip infozip irssi
+dos2unix dropbear ed figlet file findutils gawk git gnupg grep hexcurse htop inetutils infounzip infozip irssi
john ldns less lighttpd lynx make man_db mc mksh mtr nano netcat nginx openlitespeed openssh p7zip
pacman patch perl procps_ng python3 qpdf rsync rxvt_unicode sed smallbasic socat tar tcsh the_silver_searcher
tmux util_linux vim weechat wget which whois xeyes xwd zsh";
@@ -597,6 +597,10 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}";
: ${PKG_DOS2UNIX_BUILD_DIR:=dos2unix-${PKG_DOS2UNIX_VERSION}};
: ${PKG_DOS2UNIX_CFLAGS_BUILD_EXTRA:=${PACKAGES_CFLAGS_CONFIGURE}};
: ${PKG_DOS2UNIX_INSTALL_FILES:="dos2unix=bin/ dos2unix=bin/ @dos2unix=bin/mac2unix @unix2dos=bin/unix2mac"};
+: ${PKG_DROPBEAR_VERSION:=2017.75};
+: ${PKG_DROPBEAR_URL:=https://matt.ucc.asn.au/dropbear/releases/dropbear-${PKG_DROPBEAR_VERSION}.tar.bz2};
+: ${PKG_DROPBEAR_SHA256SUM:=6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c};
+: ${PKG_DROPBEAR_CONFIGURE_ARGS_EXTRA:=--disable-loginfunc --disable-openpty};
: ${PKG_ED_SHA256SUM:=c3521a607b3dfd5d2a087d53a72cdf71970763059c369cb0b330881b8491cd50};
: ${PKG_ED_VERSION:=1.14.2};
: ${PKG_ED_URL:=https://fossies.org/linux/privat/ed-${PKG_ED_VERSION}.tar.gz};
@@ -811,9 +815,9 @@ fi;
: ${PKG_RXVT_UNICODE_VERSION:=9.22};
: ${PKG_RXVT_UNICODE_URL:=http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-${PKG_RXVT_UNICODE_VERSION}.tar.bz2};
: ${PKG_RXVT_UNICODE_CONFIGURE_ARGS_EXTRA:=--disable-perl --disable-lastlog --disable-utmp --disable-wtmp};
-: ${PKG_SED_SHA256SUM:=f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7};
-: ${PKG_SED_VERSION:=4.2.2};
-: ${PKG_SED_URL:=https://ftp.gnu.org/gnu/sed/sed-${PKG_SED_VERSION}.tar.bz2};
+: ${PKG_SED_SHA256SUM:=cbd6ebc5aaf080ed60d0162d7f6aeae58211a1ee9ba9bb25623daa6cd942683b};
+: ${PKG_SED_VERSION:=4.4};
+: ${PKG_SED_URL:=https://ftp.gnu.org/gnu/sed/sed-${PKG_SED_VERSION}.tar.xz};
: ${PKG_SMALLBASIC_SUBDIR:=SmallBASIC};
: ${PKG_SMALLBASIC_URLS_GIT:="SmallBASIC=https://github.com/smallbasic/SmallBASIC@master"};
: ${PKG_SMALLBASIC_BUILD_DIR:=${PKG_SMALLBASIC_SUBDIR}};