2010-03-02 12:50:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tinyproxy < Formula
|
2010-03-02 12:50:43 +00:00
|
|
|
homepage 'https://www.banu.com/tinyproxy/'
|
2012-07-30 14:50:39 +00:00
|
|
|
url 'https://www.banu.com/pub/tinyproxy/1.8/tinyproxy-1.8.3.tar.bz2'
|
2011-05-04 11:40:34 +00:00
|
|
|
md5 '292ac51da8ad6ae883d4ebf56908400d'
|
2010-03-02 12:50:43 +00:00
|
|
|
|
|
|
|
skip_clean 'var/run'
|
|
|
|
|
2012-07-30 14:50:39 +00:00
|
|
|
option 'reverse', "Enable reverse proxying"
|
|
|
|
|
2011-08-31 22:42:10 +00:00
|
|
|
depends_on 'asciidoc' => :build
|
2011-05-04 11:40:34 +00:00
|
|
|
|
2011-08-31 22:42:10 +00:00
|
|
|
# Fix linking error, via MacPorts
|
|
|
|
# See: https://trac.macports.org/ticket/27762
|
2011-05-04 11:40:34 +00:00
|
|
|
def patches
|
2011-08-31 22:42:10 +00:00
|
|
|
{:p0 => [
|
|
|
|
"https://trac.macports.org/export/83413/trunk/dports/net/tinyproxy/files/patch-configure.diff"
|
|
|
|
]}
|
2011-05-04 11:40:34 +00:00
|
|
|
end
|
2010-03-02 12:50:43 +00:00
|
|
|
|
2011-05-04 11:40:34 +00:00
|
|
|
def install
|
2012-07-30 14:50:39 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-regexcheck
|
|
|
|
]
|
|
|
|
|
|
|
|
args << '--enable-reverse' if build.include? 'reverse'
|
|
|
|
|
|
|
|
system "./configure", *args
|
2011-08-31 22:42:10 +00:00
|
|
|
|
|
|
|
# Fix broken XML lint
|
|
|
|
# See: http://www.freebsd.org/cgi/query-pr.cgi?pr=154624
|
|
|
|
inreplace ["docs/man5/Makefile", "docs/man8/Makefile"] do |s|
|
|
|
|
s.gsub! "-f manpage", "-f manpage \\\n -L"
|
|
|
|
end
|
|
|
|
|
2010-03-02 12:50:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|