Changed to use /etc/ssl as is

parent 87d5dd3c
...@@ -9,16 +9,15 @@ class Openssl < Package ...@@ -9,16 +9,15 @@ class Openssl < Package
depends_on 'perl' depends_on 'perl'
def self.build def self.build
system "./config","--prefix=/usr/local","shared","zlib-dynamic" system "./config", "--prefix=/usr/local", "--openssldir=/etc/ssl", "shared", "zlib-dynamic"
system "make" system "make"
end end
def self.install def self.install
system "make", "INSTALL_PREFIX=#{CREW_DEST_DIR}", "install" system "make", "INSTALL_PREFIX=#{CREW_DEST_DIR}", "install"
# make sure cert.pem exists # remove all files pretended to install /etc/ssl (use system's /etc/ssl as is)
system "wget", "https://curl.haxx.se/ca/cacert.pem", system "rm", "-rf", "#{CREW_DEST_DIR}/etc"
"-O", "#{CREW_DEST_DIR}/usr/local/ssl/cert.pem"
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment