From 675ec01e97d2eb478952be2de98cda47c68ade3a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 20 Mar 2024 11:56:36 +0100 Subject: [PATCH] [flatpak] build custom openssl we need legacy providers or openssl 1.1.1 for compatibility with older windows servers. --- packaging/flatpak/com.freerdp.FreeRDP.json | 8 +++++++- packaging/flatpak/modules/openssl.json | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 packaging/flatpak/modules/openssl.json diff --git a/packaging/flatpak/com.freerdp.FreeRDP.json b/packaging/flatpak/com.freerdp.FreeRDP.json index ea0c5b4c3..40cb87cf1 100644 --- a/packaging/flatpak/com.freerdp.FreeRDP.json +++ b/packaging/flatpak/com.freerdp.FreeRDP.json @@ -9,10 +9,15 @@ }, "command": "freerdp.sh", "cleanup": [ + "*.a", "*.la", "/include", "/lib/cmake", - "/lib/pkgconfig" + "/lib/pkgconfig", + "/sbin", + "/share/doc", + "/share/examples", + "/share/man" ], "finish-args": [ "--device=dri", @@ -42,6 +47,7 @@ } }, "modules": [ + "modules/openssl.json", "modules/libusb.json", "modules/uriparser.json", "modules/cJSON.json", diff --git a/packaging/flatpak/modules/openssl.json b/packaging/flatpak/modules/openssl.json new file mode 100644 index 000000000..cb82474e5 --- /dev/null +++ b/packaging/flatpak/modules/openssl.json @@ -0,0 +1,17 @@ +{ + "name": "openssl", + "buildsystem": "simple", + "build-commands": [ + "./config --prefix=/app --openssldir=/app --libdir=lib shared", + "make -j build_sw", + "make -j install_sw" + ], + "cleanup": [], + "sources": [ + { + "type": "archive", + "url": "https://openssl.org/source/openssl-3.1.5.tar.gz", + "sha256": "6ae015467dabf0469b139ada93319327be24b98251ffaeceda0221848dc09262" + } + ] +}