aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libressl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/libressl.rb')
-rw-r--r--Library/Formula/libressl.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/libressl.rb b/Library/Formula/libressl.rb
index 3a2c8faa9..94dc90ce4 100644
--- a/Library/Formula/libressl.rb
+++ b/Library/Formula/libressl.rb
@@ -29,6 +29,7 @@ class Libressl < Formula
"--disable-silent-rules",
"--prefix=#{prefix}",
"--with-openssldir=#{etc}/libressl",
+ "--sysconfdir=#{etc}/libressl",
"--with-enginesdir=#{lib}/engines"
system "make"
@@ -39,6 +40,22 @@ class Libressl < Formula
touch "#{etc}/libressl/openssl.cnf"
end
+ def post_install
+ if (etc/"openssl/cert.pem").exist?
+ cp "#{etc}/openssl/cert.pem", "#{etc}/libressl"
+ else
+ touch "#{etc}/libressl/cert.pem"
+ end
+ end
+
+ def caveats; <<-EOS.undent
+ If you have OpenSSL installed, the .pem file has been copied
+ from there. Otherwise, a blank .pem file has been touched.
+ To add additional certificates, place .pem files in
+ #{etc}/libressl
+ EOS
+ end
+
test do
(testpath/"testfile.txt").write("This is a test file")
expected_checksum = "91b7b0b1e27bfbf7bc646946f35fa972c47c2d32"