aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMatt Bornski2012-10-24 10:34:17 -0400
committerAdam Vandenberg2012-10-24 08:49:35 -0700
commit8e636a0801006b0600bcb004b2ecd8b916623945 (patch)
treecf1426f2302243d5054c218ced1dc491e181da90 /Library/Formula
parent6d6143a72f96a087fd32d8aa58cf6cfe919b03a4 (diff)
downloadhomebrew-8e636a0801006b0600bcb004b2ecd8b916623945.tar.bz2
Apache Flume NG 1.2.0-cdh4.1.0
Closes #15249. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/flume-ng.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/flume-ng.rb b/Library/Formula/flume-ng.rb
new file mode 100644
index 000000000..b4d65db30
--- /dev/null
+++ b/Library/Formula/flume-ng.rb
@@ -0,0 +1,32 @@
+require 'formula'
+
+class FlumeNg < Formula
+ homepage 'https://github.com/apache/flume'
+ url 'http://archive.cloudera.com/cdh4/cdh/4/flume-ng-1.2.0-cdh4.1.0.tar.gz'
+ version "1.2.0-cdh4.1.0"
+ sha1 '2217316f274ff615e9e7dc50f411d95edda60cc3'
+
+ def install
+ system "mvn", "compile"
+ libexec.install %w[bin conf lib]
+ (bin/"flume-ng").write <<-EOS.undent
+ #!/bin/bash
+ export FLUME_CONF_DIR=${FLUME_CONF_DIR-#{libexec}/conf}
+ exec #{libexec}/bin/flume-ng "$@"
+ EOS
+ end
+
+ def caveats
+ <<-EOS.undent
+ See https://cwiki.apache.org/FLUME/getting-started.html for example configurations.
+ Your flume config dir is #{libexec}/conf/
+
+ If you intend to sink data to S3, you will need to download a missing JAR:
+ wget -O #{libexec}/lib/jets3t-0.7.1.jar http://repo1.maven.org/maven2/net/java/dev/jets3t/jets3t/0.7.1/jets3t-0.7.1.jar
+ EOS
+ end
+
+ def test
+ system "#{bin}/flume-ng"
+ end
+end