summaryrefslogtreecommitdiff
path: root/homebrew/opensslat11
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/opensslat11
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/opensslat11')
-rw-r--r--homebrew/opensslat11/.beer26
-rw-r--r--homebrew/opensslat11/.make.sh-auto9
-rw-r--r--homebrew/opensslat11/_metadata/description1
-rw-r--r--homebrew/opensslat11/_metadata/homepage1
-rw-r--r--homebrew/opensslat11/_metadata/name1
-rw-r--r--homebrew/opensslat11/_metadata/version1
-rwxr-xr-xhomebrew/opensslat11/download.sh1
7 files changed, 40 insertions, 0 deletions
diff --git a/homebrew/opensslat11/.beer b/homebrew/opensslat11/.beer
new file mode 100644
index 000000000..2c466474e
--- /dev/null
+++ b/homebrew/opensslat11/.beer
@@ -0,0 +1,26 @@
+{
+ "name": "OpensslAT11",
+ "description": "Cryptography and SSL/TLS Toolkit",
+ "url": "https://www.openssl.org/source/openssl-1.1.1b.tar.gz",
+ "mirror": "https://dl.bintray.com/homebrew/mirror/openssl@1.1--1.1.1b.tar.gz",
+ "homepage": "https://openssl.org/",
+ "depends": [],
+ "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 >/dev/null\", \"w\") do |openssl_io|",
+ "openssl_io.write(cert)",
+ "openssl_io.close_write"
+ ],
+ "version": "1.1.1",
+ "file": "openssl@1.1.rb"
+} \ No newline at end of file
diff --git a/homebrew/opensslat11/.make.sh-auto b/homebrew/opensslat11/.make.sh-auto
new file mode 100644
index 000000000..c22a55950
--- /dev/null
+++ b/homebrew/opensslat11/.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 >/dev/null", "w") do |openssl_io|
+openssl_io.write(cert)
+openssl_io.close_write
diff --git a/homebrew/opensslat11/_metadata/description b/homebrew/opensslat11/_metadata/description
new file mode 100644
index 000000000..14c80724e
--- /dev/null
+++ b/homebrew/opensslat11/_metadata/description
@@ -0,0 +1 @@
+Cryptography and SSL/TLS Toolkit
diff --git a/homebrew/opensslat11/_metadata/homepage b/homebrew/opensslat11/_metadata/homepage
new file mode 100644
index 000000000..b069af10b
--- /dev/null
+++ b/homebrew/opensslat11/_metadata/homepage
@@ -0,0 +1 @@
+https://openssl.org/
diff --git a/homebrew/opensslat11/_metadata/name b/homebrew/opensslat11/_metadata/name
new file mode 100644
index 000000000..209f7c635
--- /dev/null
+++ b/homebrew/opensslat11/_metadata/name
@@ -0,0 +1 @@
+OpensslAT11
diff --git a/homebrew/opensslat11/_metadata/version b/homebrew/opensslat11/_metadata/version
new file mode 100644
index 000000000..524cb5524
--- /dev/null
+++ b/homebrew/opensslat11/_metadata/version
@@ -0,0 +1 @@
+1.1.1
diff --git a/homebrew/opensslat11/download.sh b/homebrew/opensslat11/download.sh
new file mode 100755
index 000000000..38ff3eee5
--- /dev/null
+++ b/homebrew/opensslat11/download.sh
@@ -0,0 +1 @@
+wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz || wget https://dl.bintray.com/homebrew/mirror/openssl@1.1--1.1.1b.tar.gz \ No newline at end of file