summaryrefslogtreecommitdiff
path: root/homebrew/stunnel/.beer
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/stunnel/.beer')
-rw-r--r--homebrew/stunnel/.beer38
1 files changed, 38 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