summaryrefslogtreecommitdiff
path: root/homebrew/libressl
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/libressl')
-rw-r--r--homebrew/libressl/.beer39
-rw-r--r--homebrew/libressl/.make.sh-auto9
-rw-r--r--homebrew/libressl/_metadata/description1
-rw-r--r--homebrew/libressl/_metadata/homepage1
-rw-r--r--homebrew/libressl/_metadata/name1
-rw-r--r--homebrew/libressl/_metadata/version1
-rwxr-xr-xhomebrew/libressl/download.sh1
7 files changed, 53 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
diff --git a/homebrew/libressl/.make.sh-auto b/homebrew/libressl/.make.sh-auto
new file mode 100644
index 000000000..8b7b0e3b9
--- /dev/null
+++ b/homebrew/libressl/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+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
diff --git a/homebrew/libressl/_metadata/description b/homebrew/libressl/_metadata/description
new file mode 100644
index 000000000..514cf292b
--- /dev/null
+++ b/homebrew/libressl/_metadata/description
@@ -0,0 +1 @@
+Version of the SSL/TLS protocol forked from OpenSSL
diff --git a/homebrew/libressl/_metadata/homepage b/homebrew/libressl/_metadata/homepage
new file mode 100644
index 000000000..ff7744492
--- /dev/null
+++ b/homebrew/libressl/_metadata/homepage
@@ -0,0 +1 @@
+https://www.libressl.org/
diff --git a/homebrew/libressl/_metadata/name b/homebrew/libressl/_metadata/name
new file mode 100644
index 000000000..08cb0989f
--- /dev/null
+++ b/homebrew/libressl/_metadata/name
@@ -0,0 +1 @@
+Libressl
diff --git a/homebrew/libressl/_metadata/version b/homebrew/libressl/_metadata/version
new file mode 100644
index 000000000..dedcc7d43
--- /dev/null
+++ b/homebrew/libressl/_metadata/version
@@ -0,0 +1 @@
+2.9.1
diff --git a/homebrew/libressl/download.sh b/homebrew/libressl/download.sh
new file mode 100755
index 000000000..475f93383
--- /dev/null
+++ b/homebrew/libressl/download.sh
@@ -0,0 +1 @@
+wget https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.9.1.tar.gz || wget https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-2.9.1.tar.gz \ No newline at end of file