summaryrefslogtreecommitdiff
path: root/homebrew/libressl/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/libressl/.beer')
-rw-r--r--homebrew/libressl/.beer39
1 files changed, 39 insertions, 0 deletions
diff --git a/homebrew/libressl/.beer b/homebrew/libressl/.beer
new file mode 100644
index 000000000..b97d10088
--- /dev/null
+++ b/homebrew/libressl/.beer
@@ -0,0 +1,39 @@
+{
+ "name": "Libressl",
+ "description": "Version of the SSL/TLS protocol forked from OpenSSL",
+ "url": "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.9.1.tar.gz",
+ "mirror": "https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-2.9.1.tar.gz",
+ "homepage": "https://www.libressl.org/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "keychains = %w[",
+ "/System/Library/Keychains/SystemRootCertificates.keychain",
+ "]",
+ "certs_list = `security find-certificate -a -p #{keychains.join(\" \")}`",
+ "certs = certs_list.scan(",
+ "/-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----/m,",
+ ")",
+ "valid_certs = certs.select do |cert|",
+ "IO.popen(\"#{bin}/openssl x509 -inform pem -checkend 0 -noout\", \"w\") do |openssl_io|",
+ "openssl_io.write(cert)",
+ "openssl_io.close_write"
+ ],
+ "version": "2.9.1",
+ "file": "libressl.rb"
+} \ No newline at end of file