aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnutls.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/gnutls.rb b/Library/Formula/gnutls.rb
index c9064bb4a..54bf01d75 100644
--- a/Library/Formula/gnutls.rb
+++ b/Library/Formula/gnutls.rb
@@ -52,7 +52,14 @@ class Gnutls < Formula
end
def post_install
- Formula["openssl"].post_install
+ keychains = %w[
+ /Library/Keychains/System.keychain
+ /System/Library/Keychains/SystemRootCertificates.keychain
+ ]
+
+ openssldir = etc/"openssl"
+ openssldir.mkpath
+ (openssldir/"cert.pem").atomic_write `security find-certificate -a -p #{keychains.join(" ")}`
end
test do