libressl: postinstall code is mac-only (#72736)

master
Michka Popoff 2021-03-08 23:33:43 +01:00 committed by GitHub
parent 6018b79502
commit 06fbfba01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 16 deletions

View File

@ -46,6 +46,7 @@ class Libressl < Formula
end
def post_install
on_macos do
keychains = %w[
/System/Library/Keychains/SystemRootCertificates.keychain
]
@ -68,6 +69,7 @@ class Libressl < Formula
rm_f %W[#{etc}/libressl/cert.pem #{etc}/libressl/cert.pem.default]
(etc/"libressl/cert.pem").atomic_write(valid_certs.join("\n"))
end
end
def caveats
<<~EOS