Skip to content

Commit

Permalink
Add OpenSSL 1.0.1u & 1.0.2j
Browse files Browse the repository at this point in the history
  • Loading branch information
Azolo committed Nov 28, 2016
1 parent bb43610 commit d9047b0
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions openssl/openssl-1.0.1u.knapfile
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions openssl/openssl-1.0.2j.knapfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d9047b0

Please sign in to comment.