diff --git a/ports/openssl/build.sh b/ports/openssl/build.sh new file mode 100755 index 00000000..426cebf6 --- /dev/null +++ b/ports/openssl/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash ../install.sh + +NAME='openssl' +VERSION='3.3.1' +DOWNLOAD_URL="https://github.com/openssl/openssl/releases/download/openssl-$VERSION/openssl-$VERSION.tar.gz#777cd596284c883375a2a7a11bf5d2786fc5413255efab20c50d6ffe6d020b7e" +DEPENDENCIES=('zlib') + +configure() { + ./Configure --prefix=/usr --openssldir=/etc/ssl -DOPENSSL_USE_IPV6=0 no-asm no-tests no-threads banan_os-generic zlib +} + +install() { + make install_sw "DESTDIR=$BANAN_SYSROOT" || exit 1 + make install_ssldirs "DESTDIR=$BANAN_SYSROOT" || exit 1 +} diff --git a/ports/openssl/patches/0001-add-banan_os-configuration.patch b/ports/openssl/patches/0001-add-banan_os-configuration.patch new file mode 100644 index 00000000..2631de4e --- /dev/null +++ b/ports/openssl/patches/0001-add-banan_os-configuration.patch @@ -0,0 +1,26 @@ +diff -ruN openssl-3.3.1/Configurations/10-main.conf openssl-3.3.1-banan_os/Configurations/10-main.conf +--- openssl-3.3.1/Configurations/10-main.conf 2024-06-04 15:53:04.000000000 +0300 ++++ openssl-3.3.1-banan_os/Configurations/10-main.conf 2024-08-21 15:45:36.605293938 +0300 +@@ -668,6 +668,22 @@ + shared_extension => ".so", + }, + ++### banan_os ++ "banan_os-generic" => { ++ inherit_from => [ "BASE_unix" ], ++ CC => "gcc", ++ CXX => "g++", ++ CFLAGS => picker(default => "-Wall", ++ debug => "-O0 -g", ++ release => "-O3"), ++ CXXFLAGS => picker(default => "-Wall", ++ debug => "-O0 -g", ++ release => "-O3"), ++ cxxflags => "-std=c++11", ++ lib_cppflags => "-DOPENSSL_USE_NODELETE", ++ bn_ops => "BN_LLONG RC4_CHAR", ++ }, ++ + #### + #### Variety of LINUX:-) + #### diff --git a/ports/openssl/patches/0002-add-banan_os-alias.patch b/ports/openssl/patches/0002-add-banan_os-alias.patch new file mode 100644 index 00000000..3a30eb09 --- /dev/null +++ b/ports/openssl/patches/0002-add-banan_os-alias.patch @@ -0,0 +1,11 @@ +diff -ruN openssl-3.3.1/util/mkdef.pl openssl-3.3.1-banan_os/util/mkdef.pl +--- openssl-3.3.1/util/mkdef.pl 2024-06-04 15:53:04.000000000 +0300 ++++ openssl-3.3.1-banan_os/util/mkdef.pl 2024-08-21 15:47:21.496046916 +0300 +@@ -113,6 +113,7 @@ + platforms => { UNIX => 1 } }, + "solaris-gcc" => 'solaris', # alias + linux => 'solaris', # alias ++ banan_os => 'solaris', # alias + "bsd-gcc" => 'solaris', # alias + aix => { writer => \&writer_aix, + sort => sorter_unix(),