homebrew-core/Formula/metaproxy.rb
BrewTestBot f0af609a57 metaproxy: update 1.5.9 bottle.
Closes Homebrew/homebrew#31613.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-15 12:20:15 +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.9.tar.gz"
sha1 "283bed2fa4d1ea8b93d9fede38df4de2b60f78ae"
bottle do
cellar :any
sha1 "b6d3a66478dbc5d0305f5791eff49cc26f1429d8" => :mavericks
sha1 "6146cf28e33703adc5c305831f68563d55529147" => :mountain_lion
sha1 "26f40c817aeac355c0907ddf538ebb565c2ce1e4" => :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