mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
Ports: refresh OpenSSL, make it build its command line utils.
This patch refreshes the openssl port and makes it build the utilities in apps/, e.g. the openssl utility. Now you can do this from Serenity: $ openssl s_client -connect example.org:443 ... GET / HTTP/1.1 Host: example.org <HTTP response here> The download URL was bit-rotten and needed a fix.
This commit is contained in:
parent
7fd77e9ffe
commit
bb1ad4b649
Notes:
sideshowbarker
2024-07-19 07:51:40 +09:00
Author: https://github.com/xiaonuofu Commit: https://github.com/SerenityOS/serenity/commit/bb1ad4b649a Pull-request: https://github.com/SerenityOS/serenity/pull/1658 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/deoxxa
@ -1,19 +1,20 @@
|
||||
#!/bin/bash ../.port_include.sh
|
||||
port=openssl
|
||||
version=1.0.2t
|
||||
branch='1.0.2'
|
||||
version="${branch}t"
|
||||
useconfigure=true
|
||||
configscript=Configure
|
||||
files="https://www.openssl.org/source/openssl-${version}.tar.gz openssl-${version}.tar.gz
|
||||
https://www.openssl.org/source/openssl-${version}.tar.gz.asc openssl-${version}.tar.gz.asc"
|
||||
files="https://ftp.openssl.org/source/old/${branch}/openssl-${version}.tar.gz openssl-${version}.tar.gz
|
||||
https://ftp.openssl.org/source/old/${branch}/openssl-${version}.tar.gz.asc openssl-${version}.tar.gz.asc"
|
||||
auth_type="sig"
|
||||
auth_import_key="8657ABB260F056B1E5190839D9C4D26D0E604491"
|
||||
auth_opts="openssl-${version}.tar.gz.asc openssl-${version}.tar.gz"
|
||||
|
||||
depends="zlib"
|
||||
usr_local=$SERENITY_ROOT/Root/usr/local/
|
||||
configopts="--prefix=$usr_local --openssldir=$usr_local/ssl BSD-x86 zlib no-tests no-threads no-asm no-sock"
|
||||
configopts="--prefix=$usr_local -DOPENSSL_SYS_SERENITY=1 --openssldir=$usr_local/ssl BSD-x86 zlib no-tests no-threads no-asm"
|
||||
|
||||
configure() {
|
||||
run rm -rf ./test/ ./apps/
|
||||
run rm -rf ./test/
|
||||
run ./"$configscript" $configopts
|
||||
}
|
||||
|
13
Ports/openssl/patches/ocsp_fd_set.patch
Normal file
13
Ports/openssl/patches/ocsp_fd_set.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/apps/ocsp.c 2020-04-05 16:49:54.499380971 +0100
|
||||
+++ b/apps/ocsp.c 2020-04-05 16:50:13.175380426 +0100
|
||||
@@ -94,6 +94,10 @@
|
||||
# endif
|
||||
# endif
|
||||
|
||||
+# if defined(OPENSSL_SYS_SERENITY)
|
||||
+# include <sys/select.h>
|
||||
+# endif
|
||||
+
|
||||
/* Maximum leeway in validity period: default 5 minutes */
|
||||
# define MAX_VALIDITY_PERIOD (5 * 60)
|
||||
|
13
Ports/openssl/patches/s_apps.patch
Normal file
13
Ports/openssl/patches/s_apps.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/apps/s_apps.h 2020-04-05 13:52:44.967691150 +0100
|
||||
+++ b/apps/s_apps.h 2020-04-05 13:52:50.147690999 +0100
|
||||
@@ -122,6 +122,10 @@
|
||||
# define _kbhit kbhit
|
||||
#endif
|
||||
|
||||
+#if defined(OPENSSL_SYS_SERENITY)
|
||||
+# include <sys/select.h>
|
||||
+#endif
|
||||
+
|
||||
#if defined(OPENSSL_SYS_VMS) && !defined(FD_SET)
|
||||
/*
|
||||
* VAX C does not defined fd_set and friends, but it's actually quite simple
|
Loading…
Reference in New Issue
Block a user