aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMat Gadd2012-07-30 15:50:39 +0100
committerAdam Vandenberg2012-08-09 22:45:21 -0700
commit66a246fcba16dd910254b237de5122f31c36c247 (patch)
treeb52bf84f2d90796c62064ca0b1d0190877599549 /Library
parenta5e0b95c972691603fbaeca58af44b2fce0ebabd (diff)
downloadhomebrew-66a246fcba16dd910254b237de5122f31c36c247.tar.bz2
tinyproxy: optional support reverse proxying
Closes #13800. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tinyproxy.rb18
1 files changed, 13 insertions, 5 deletions
diff --git a/Library/Formula/tinyproxy.rb b/Library/Formula/tinyproxy.rb
index b4d3d9b47..2acf4db03 100644
--- a/Library/Formula/tinyproxy.rb
+++ b/Library/Formula/tinyproxy.rb
@@ -1,12 +1,14 @@
require 'formula'
class Tinyproxy < Formula
- url 'https://www.banu.com/pub/tinyproxy/1.8/tinyproxy-1.8.3.tar.bz2'
homepage 'https://www.banu.com/tinyproxy/'
+ url 'https://www.banu.com/pub/tinyproxy/1.8/tinyproxy-1.8.3.tar.bz2'
md5 '292ac51da8ad6ae883d4ebf56908400d'
skip_clean 'var/run'
+ option 'reverse', "Enable reverse proxying"
+
depends_on 'asciidoc' => :build
# Fix linking error, via MacPorts
@@ -18,10 +20,16 @@ class Tinyproxy < Formula
end
def install
- system "./configure", "--prefix=#{prefix}",
- "--disable-debug",
- "--disable-dependency-tracking",
- "--disable-regexcheck"
+ args = %W[
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --disable-regexcheck
+ ]
+
+ args << '--enable-reverse' if build.include? 'reverse'
+
+ system "./configure", *args
# Fix broken XML lint
# See: http://www.freebsd.org/cgi/query-pr.cgi?pr=154624