homebrew-core/Formula/metaproxy.rb
BrewTestBot 2b0bf9081a metaproxy: add 1.5.3 bottle.
Closes Homebrew/homebrew#29856.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-04 10:38:11 +01:00

51 lines
1.5 KiB
Ruby

require "formula"
class Metaproxy < Formula
homepage "http://www.indexdata.com/metaproxy"
url "http://ftp.indexdata.dk/pub/metaproxy/metaproxy-1.5.3.tar.gz"
sha1 "8f089512e8ef55cdc3e781f78a6ac335fc4ce334"
bottle do
cellar :any
sha1 "40302a5cfecab138701d80cb7080d0078df8e306" => :mavericks
sha1 "8ee2a3af239c97321db7f7859fdbf7eb9d76c78f" => :mountain_lion
sha1 "98740e4f1059e72d7698bd804ee1e1917f272616" => :lion
end
depends_on "pkg-config" => :build
depends_on "yazpp"
depends_on "boost"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
# Test by making metaproxy test a trivial configuration file (etc/config0.xml).
test do
(testpath/"test-config.xml").write <<-EOS.undent
<?xml version="1.0"?>
<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
<start route="start"/>
<filters>
<filter id="frontend" type="frontend_net">
<port max_recv_bytes="1000000">@:9070</port>
<message>FN</message>
<stat-req>/fn_stat</stat-req>
</filter>
</filters>
<routes>
<route id="start">
<filter refid="frontend"/>
<filter type="log"><category access="false" line="true" apdu="true" /></filter>
<filter type="backend_test"/>
<filter type="bounce"/>
</route>
</routes>
</metaproxy>
EOS
system "#{bin}/metaproxy", "-t", "--config", "#{testpath}/test-config.xml"
end
end