diff options
author | Patrick Meyer <git@the-space.agency> | 2022-04-28 01:50:11 +0000 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-04-28 08:38:24 -0700 |
commit | 03d38e3ab81f9fedcf87fe5f35c30514c7fe36f3 (patch) | |
tree | 781210853cb54a31b120c19cb8f20585f74796de | |
parent | f8c81b2f01be4de6b4904433bfa5d49abf8028d5 (diff) | |
download | serenity-03d38e3ab81f9fedcf87fe5f35c30514c7fe36f3.zip |
Ports: Update dropbear port to 2022.82
-rw-r--r-- | Ports/AvailablePorts.md | 2 | ||||
-rwxr-xr-x | Ports/dropbear/package.sh | 10 | ||||
-rw-r--r-- | Ports/dropbear/patches/default-options.patch | 8 | ||||
-rw-r--r-- | Ports/dropbear/patches/disable-ssp.patch | 64 | ||||
-rw-r--r-- | Ports/dropbear/patches/fix-includes.patch | 6 | ||||
-rw-r--r-- | Ports/dropbear/patches/install-in-bin.patch | 6 | ||||
-rw-r--r-- | Ports/dropbear/patches/netio.patch | 24 |
7 files changed, 64 insertions, 56 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 2589863c67..ff95b43f6c 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -38,7 +38,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`dosbox-staging`](dosbox-staging/) | DOSBox Staging | 0.76.0 | https://dosbox-staging.github.io/ | | [`drascula`](drascula/) | Dráscula: The Vampire Strikes Back | 1.0 | https://www.scummvm.org/games/#games-drascula | | [`dreamweb`](dreamweb/) | DreamWeb | 1.1 | https://www.scummvm.org/games/#games-dreamweb | -| [`dropbear`](dropbear/) | Dropbear SSH | 2019.78 | https://dropbear.nl/mirror/dropbear.html | +| [`dropbear`](dropbear/) | Dropbear SSH | 2022.82 | https://dropbear.nl/mirror/dropbear.html | | [`dungeonrush`](dungeonrush/) | DungeonRush | 1.1-beta | https://github.com/Rapiz1/DungeonRush | | [`ed`](ed/) | GNU ed | 1.18 | https://www.gnu.org/software/ed/ | | [`emu2`](emu2/) | emu2 DOS emulator | 2021.01 | https://github.com/dmsc/emu2 | diff --git a/Ports/dropbear/package.sh b/Ports/dropbear/package.sh index 7728636306..bfef28c5c4 100755 --- a/Ports/dropbear/package.sh +++ b/Ports/dropbear/package.sh @@ -1,12 +1,8 @@ #!/usr/bin/env -S bash ../.port_include.sh port=dropbear -version=2019.78 -files="https://mirror.dropbear.nl/mirror/releases/dropbear-${version}.tar.bz2 dropbear-${version}.tar.bz2 -https://mirror.dropbear.nl/mirror/releases/dropbear-${version}.tar.bz2.asc dropbear-${version}.tar.bz2.asc -https://mirror.dropbear.nl/mirror/releases/dropbear-key-2015.asc dropbear-key-2015.asc" - -auth_type="sig" -auth_opts=("--keyring" "./dropbear-key-2015.asc" "dropbear-${version}.tar.bz2.asc") +version=2022.82 +files="https://mirror.dropbear.nl/mirror/releases/dropbear-${version}.tar.bz2 dropbear-${version}.tar.bz2 3a038d2bbc02bf28bbdd20c012091f741a3ec5cbe460691811d714876aad75d1" +auth_type="sha256" useconfigure=true use_fresh_config_sub=true # don't care about zlib, less deps is better diff --git a/Ports/dropbear/patches/default-options.patch b/Ports/dropbear/patches/default-options.patch index 2ffc868ace..bc5a30f5fe 100644 --- a/Ports/dropbear/patches/default-options.patch +++ b/Ports/dropbear/patches/default-options.patch @@ -1,6 +1,8 @@ ---- a/default_options.h.orig +diff --git a/default_options.h b/default_options.h +index 536f4e7..5073b7c 100644 +--- a/default_options.h +++ b/default_options.h -@@ -59,8 +59,8 @@ +@@ -72,8 +72,8 @@ IMPORTANT: Some options will require "make clean" after changes */ #define DROPBEAR_SVR_REMOTETCPFWD 1 /* Enable Authentication Agent Forwarding */ @@ -11,7 +13,7 @@ /* Note: Both DROPBEAR_CLI_PROXYCMD and DROPBEAR_CLI_NETCAT must be set to * allow multihop dbclient connections */ -@@ -179,7 +179,7 @@ +@@ -210,7 +210,7 @@ group1 in Dropbear server too */ /* Authentication Types - at least one required. RFC Draft requires pubkey auth, and recommends password */ diff --git a/Ports/dropbear/patches/disable-ssp.patch b/Ports/dropbear/patches/disable-ssp.patch index bf7dd0ae39..ebc9c63352 100644 --- a/Ports/dropbear/patches/disable-ssp.patch +++ b/Ports/dropbear/patches/disable-ssp.patch @@ -1,34 +1,10 @@ I patch both configure.ac and configure itself (though only configure is required for the build) Serenity's GCC doesn't support SSP, so this is disabled. ---- a/configure.ac.orig -+++ b/configure.ac -@@ -99,22 +99,7 @@ - [AC_MSG_NOTICE([Not setting $TESTFLAGS]); LDFLAGS="$OLDLDFLAGS" ] - ) - fi # non-static -- # stack protector. -strong is good but only in gcc 4.9 or later -- OLDCFLAGS="$CFLAGS" -- TESTFLAGS="-fstack-protector-strong" -- CFLAGS="$CFLAGS $TESTFLAGS" -- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], -- [AC_MSG_NOTICE([Setting $TESTFLAGS])], -- [ -- CFLAGS="$OLDCFLAGS" -- TESTFLAGS="-fstack-protector --param=ssp-buffer-size=4" -- CFLAGS="$CFLAGS $TESTFLAGS" -- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], -- [AC_MSG_NOTICE([Setting $TESTFLAGS])], -- [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDCFLAGS" ] -- ) -- ] -- ) -+ - # FORTIFY_SOURCE - DB_TRYADDCFLAGS([-D_FORTIFY_SOURCE=2]) - ---- a/configure.orig +diff --git a/configure b/configure +index 8374714..8c9eb9a 100755 +--- a/configure +++ b/configure -@@ -3357,53 +3357,7 @@ +@@ -3381,53 +3381,7 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # non-static @@ -38,11 +14,11 @@ Serenity's GCC doesn't support SSP, so this is disabled. - CFLAGS="$CFLAGS $TESTFLAGS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - +- -int -main () -{ -- + - ; - return 0; -} @@ -82,3 +58,31 @@ Serenity's GCC doesn't support SSP, so this is disabled. # FORTIFY_SOURCE { OLDFLAGS="$CFLAGS" +diff --git a/configure.ac b/configure.ac +index 6a19479..28cd987 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -103,22 +103,7 @@ if test "$hardenbuild" -eq 1; then + [AC_MSG_NOTICE([Not setting $TESTFLAGS]); LDFLAGS="$OLDLDFLAGS" ] + ) + fi # non-static +- # stack protector. -strong is good but only in gcc 4.9 or later +- OLDCFLAGS="$CFLAGS" +- TESTFLAGS="-fstack-protector-strong" +- CFLAGS="$CFLAGS $TESTFLAGS" +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], +- [AC_MSG_NOTICE([Setting $TESTFLAGS])], +- [ +- CFLAGS="$OLDCFLAGS" +- TESTFLAGS="-fstack-protector --param=ssp-buffer-size=4" +- CFLAGS="$CFLAGS $TESTFLAGS" +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], +- [AC_MSG_NOTICE([Setting $TESTFLAGS])], +- [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDCFLAGS" ] +- ) +- ] +- ) ++ + # FORTIFY_SOURCE + DB_TRYADDCFLAGS([-D_FORTIFY_SOURCE=2]) + diff --git a/Ports/dropbear/patches/fix-includes.patch b/Ports/dropbear/patches/fix-includes.patch index f80f9a64df..09e83e68bf 100644 --- a/Ports/dropbear/patches/fix-includes.patch +++ b/Ports/dropbear/patches/fix-includes.patch @@ -1,7 +1,9 @@ Not sure why this is missing, but okay. ---- a/includes.h.orig +diff --git a/includes.h b/includes.h +index 1e00002..2208f94 100644 +--- a/includes.h +++ b/includes.h -@@ -38,6 +38,7 @@ +@@ -37,6 +37,7 @@ #include <sys/un.h> #include <sys/wait.h> #include <sys/resource.h> diff --git a/Ports/dropbear/patches/install-in-bin.patch b/Ports/dropbear/patches/install-in-bin.patch index ebd9524113..1a441e48f4 100644 --- a/Ports/dropbear/patches/install-in-bin.patch +++ b/Ports/dropbear/patches/install-in-bin.patch @@ -1,7 +1,9 @@ Serenity doesn't use /sbin. ---- a/Makefile.in.orig +diff --git a/Makefile.in b/Makefile.in +index e824491..f30f508 100644 +--- a/Makefile.in +++ b/Makefile.in -@@ -87,7 +87,7 @@ +@@ -97,7 +97,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ datarootdir = @datarootdir@ bindir=@bindir@ diff --git a/Ports/dropbear/patches/netio.patch b/Ports/dropbear/patches/netio.patch index e423866554..73d5730f07 100644 --- a/Ports/dropbear/patches/netio.patch +++ b/Ports/dropbear/patches/netio.patch @@ -1,15 +1,17 @@ ---- b/netio.c.orig +diff --git a/netio.c b/netio.c +index 2ed9bb1..e0e9962 100644 +--- a/netio.c +++ b/netio.c -@@ -294,7 +294,7 @@ +@@ -304,7 +304,7 @@ void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigne buffer *writebuf; - #ifndef IOV_MAX -- #if defined(__CYGWIN__) && !defined(UIO_MAXIOV) -+ #if !defined(UIO_MAXIOV) + #ifndef IOV_MAX +- #if defined(__CYGWIN__) && !defined(UIO_MAXIOV) ++ #if !defined(UIO_MAXIOV) #define IOV_MAX 1024 - #else - #define IOV_MAX UIO_MAXIOV -@@ -334,11 +334,7 @@ + #elif defined(__sgi) + #define IOV_MAX 512 +@@ -346,11 +346,7 @@ void packet_queue_consume(struct Queue *queue, ssize_t written) { } void set_sock_nodelay(int sock) { @@ -22,15 +24,15 @@ } #if DROPBEAR_SERVER_TCP_FAST_OPEN -@@ -448,7 +444,6 @@ +@@ -469,7 +465,6 @@ int dropbear_listen(const char* address, const char* port, struct addrinfo hints, *res = NULL, *res0 = NULL; int err; unsigned int nsock; - struct linger linger; int val; int sock; - -@@ -527,9 +522,6 @@ + uint16_t *allocated_lport_p = NULL; +@@ -548,9 +543,6 @@ int dropbear_listen(const char* address, const char* port, val = 1; /* set to reuse, quick timeout */ setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &val, sizeof(val)); |