summaryrefslogtreecommitdiff
path: root/homebrew/stunnel
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/stunnel')
-rw-r--r--homebrew/stunnel/.beer38
-rw-r--r--homebrew/stunnel/_metadata/description1
-rw-r--r--homebrew/stunnel/_metadata/homepage1
-rw-r--r--homebrew/stunnel/_metadata/name1
-rw-r--r--homebrew/stunnel/_metadata/version1
-rwxr-xr-xhomebrew/stunnel/download.sh1
6 files changed, 43 insertions, 0 deletions
diff --git a/homebrew/stunnel/.beer b/homebrew/stunnel/.beer
new file mode 100644
index 000000000..f61a83865
--- /dev/null
+++ b/homebrew/stunnel/.beer
@@ -0,0 +1,38 @@
+{
+ "name": "Stunnel",
+ "description": "SSL tunneling program",
+ "url": "https://www.stunnel.org/downloads/stunnel-5.53.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.stunnel.org/",
+ "depends": [
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--disable-silent-rules\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--sysconfdir=#{etc}\",",
+ "\"--localstatedir=#{var}\",",
+ "\"--mandir=#{man}\",",
+ "\"--disable-libwrap\",",
+ "\"--disable-systemd\",",
+ "\"--with-ssl=#{Formula[\"openssl\"].opt_prefix}\"",
+ "system \"make\", \"install\"",
+ "cd \"tools\" do",
+ "args = %w[req -new -x509 -days 365 -rand stunnel.rnd -config",
+ "openssl.cnf -out stunnel.pem -keyout stunnel.pem -sha256 -subj",
+ "/C=PL/ST=Mazovia\\ Province/L=Warsaw/O=Stunnel\\ Developers/OU=Provisional\\ CA/CN=localhost/]",
+ "system \"dd\", \"if=/dev/urandom\", \"of=stunnel.rnd\", \"bs=256\", \"count=1\"",
+ "system \"#{Formula[\"openssl\"].opt_bin}/openssl\", *args",
+ "chmod 0600, \"stunnel.pem\"",
+ "(etc/\"stunnel\").install \"stunnel.pem\""
+ ],
+ "version": "5.53",
+ "file": "stunnel.rb"
+} \ No newline at end of file
diff --git a/homebrew/stunnel/_metadata/description b/homebrew/stunnel/_metadata/description
new file mode 100644
index 000000000..a909611cd
--- /dev/null
+++ b/homebrew/stunnel/_metadata/description
@@ -0,0 +1 @@
+SSL tunneling program
diff --git a/homebrew/stunnel/_metadata/homepage b/homebrew/stunnel/_metadata/homepage
new file mode 100644
index 000000000..f7f82e4b6
--- /dev/null
+++ b/homebrew/stunnel/_metadata/homepage
@@ -0,0 +1 @@
+https://www.stunnel.org/
diff --git a/homebrew/stunnel/_metadata/name b/homebrew/stunnel/_metadata/name
new file mode 100644
index 000000000..faf080411
--- /dev/null
+++ b/homebrew/stunnel/_metadata/name
@@ -0,0 +1 @@
+Stunnel
diff --git a/homebrew/stunnel/_metadata/version b/homebrew/stunnel/_metadata/version
new file mode 100644
index 000000000..21b88d1f0
--- /dev/null
+++ b/homebrew/stunnel/_metadata/version
@@ -0,0 +1 @@
+5.53
diff --git a/homebrew/stunnel/download.sh b/homebrew/stunnel/download.sh
new file mode 100755
index 000000000..41e99adb2
--- /dev/null
+++ b/homebrew/stunnel/download.sh
@@ -0,0 +1 @@
+wget https://www.stunnel.org/downloads/stunnel-5.53.tar.gz \ No newline at end of file