From d9047b02ea3818254f04764360b4dd47245ce48d Mon Sep 17 00:00:00 2001 From: Justin Baker Date: Mon, 28 Nov 2016 00:40:38 -0600 Subject: [PATCH] Add OpenSSL 1.0.1u & 1.0.2j --- openssl/openssl-1.0.1u.knapfile | 36 +++++++++++++++++++++++++++++++++ openssl/openssl-1.0.2j.knapfile | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 openssl/openssl-1.0.1u.knapfile create mode 100644 openssl/openssl-1.0.2j.knapfile diff --git a/openssl/openssl-1.0.1u.knapfile b/openssl/openssl-1.0.1u.knapfile new file mode 100644 index 0000000..4a91968 --- /dev/null +++ b/openssl/openssl-1.0.1u.knapfile @@ -0,0 +1,36 @@ +recipe "openssl", "1.0.1u" do + use :autotools + + fetch "https://www.openssl.org/source/openssl-1.0.1u.tar.gz", + :sha256 => "4312b4ca1215b6f2c97007503d80db80d5157f76f8f7d3febbe6b4c56ff26739" + depends_on "zlib" + + before :extract do + # ignore symlink errors from package + if platform.mingw? + options.ignore_extract_errors = true + end + end + + action :configure do + cmd = ["perl"] + if platform.posix? + cmd << "config" + else + cmd << "Configure" + end + + if platform.mingw? + if platform.x64? + cmd << "mingw64" + else + cmd << "mingw" + end + end + + cmd << "zlib-dynamic shared" + cmd << "--prefix=#{install_path}" + + run cmd.join(" ") + end +end diff --git a/openssl/openssl-1.0.2j.knapfile b/openssl/openssl-1.0.2j.knapfile new file mode 100644 index 0000000..7cbe745 --- /dev/null +++ b/openssl/openssl-1.0.2j.knapfile @@ -0,0 +1,36 @@ +recipe "openssl", "1.0.2j" do + use :autotools + + fetch "https://www.openssl.org/source/openssl-1.0.2j.tar.gz", + :sha256 => "e7aff292be21c259c6af26469c7a9b3ba26e9abaaffd325e3dccc9785256c431" + depends_on "zlib" + + before :extract do + # ignore symlink errors from package + if platform.mingw? + options.ignore_extract_errors = true + end + end + + action :configure do + cmd = ["perl"] + if platform.posix? + cmd << "config" + else + cmd << "Configure" + end + + if platform.mingw? + if platform.x64? + cmd << "mingw64" + else + cmd << "mingw" + end + end + + cmd << "zlib-dynamic shared" + cmd << "--prefix=#{install_path}" + + run cmd.join(" ") + end +end