f541102747
Closes #38483. Signed-off-by: Chongyu Zhu <i@lembacon.com>
24 lines
800 B
Ruby
24 lines
800 B
Ruby
class Flume < Formula
|
|
desc "Hadoop-based distributed log collection and aggregation"
|
|
homepage "https://flume.apache.org"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=flume/1.9.0/apache-flume-1.9.0-bin.tar.gz"
|
|
mirror "https://archive.apache.org/dist/flume/1.9.0/apache-flume-1.9.0-bin.tar.gz"
|
|
sha256 "0373ed5abfd44dc4ab23d9a02251ffd7e3b32c02d83a03546e97ec15a7b23619"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "hadoop"
|
|
depends_on :java => "1.7+"
|
|
|
|
def install
|
|
rm_f Dir["bin/*.cmd", "bin/*.ps1"]
|
|
libexec.install %w[conf docs lib tools]
|
|
bin.install Dir["bin/*"]
|
|
bin.env_script_all_files(libexec/"bin",
|
|
Language::Java.java_home_env("1.7+").merge(:FLUME_HOME => libexec))
|
|
end
|
|
|
|
test do
|
|
assert_match "Flume #{version}", shell_output("#{bin}/flume-ng version")
|
|
end
|
|
end
|