logstash 2.3.0

This commit is contained in:
Jason Tedor 2016-03-30 12:15:22 -04:00 committed by Xu Cheng
parent e5ec584f95
commit bcb205dc90

View file

@ -1,8 +1,8 @@
class Logstash < Formula
desc "Tool for managing events and logs"
homepage "https://www.elastic.co/products/logstash"
url "https://download.elastic.co/logstash/logstash/logstash-2.2.2.tar.gz"
sha256 "f0a29ec8fd327e42f3023bd6bf85a00ac20617bfc214df59c765453977398312"
url "https://download.elastic.co/logstash/logstash/logstash-2.3.0.tar.gz"
sha256 "d802803ac6dc7e9215b19764dd8fbaa74c75fa1d8bf387508fb0d0d8d36b0241"
bottle :unneeded
@ -24,17 +24,16 @@ class Logstash < Formula
end
inreplace %w[bin/logstash], %r{^\. "\$\(cd `dirname \$SOURCEPATH`\/\.\.; pwd\)\/bin\/logstash\.lib\.sh\"}, ". #{libexec}/bin/logstash.lib.sh"
inreplace %w[bin/plugin], %r{^\. "\$\(cd `dirname \$0`\/\.\.; pwd\)\/bin\/logstash\.lib\.sh\"}, ". #{libexec}/bin/logstash.lib.sh"
inreplace %w[bin/logstash-plugin], %r{^\. "\$\(cd `dirname \$0`\/\.\.; pwd\)\/bin\/logstash\.lib\.sh\"}, ". #{libexec}/bin/logstash.lib.sh"
inreplace %w[bin/logstash.lib.sh], /^LOGSTASH_HOME=.*$/, "LOGSTASH_HOME=#{libexec}"
libexec.install Dir["*"]
bin.install_symlink libexec/"bin/logstash"
bin.install_symlink libexec/"bin/plugin" => "logstash-plugin"
bin.install_symlink libexec/"bin/logstash-plugin"
end
def caveats; <<-EOS.undent
Please read the getting started guide located at:
https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html
The logstash `plugin` command is available as `logstash-plugin`.
EOS
end