2011-04-19 16:33:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Flume < Formula
|
2011-10-27 22:33:28 +00:00
|
|
|
url 'http://archive.cloudera.com/cdh/3/flume-0.9.4-cdh3u2.tar.gz'
|
2011-04-19 16:33:08 +00:00
|
|
|
homepage 'https://github.com/cloudera/flume'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '9f68c8205b61e43d35467b6d45f815f5e41239e9'
|
2011-10-27 22:33:28 +00:00
|
|
|
version "0.9.4-cdh3u2"
|
2011-04-19 16:33:08 +00:00
|
|
|
|
|
|
|
def flume_script
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
2012-01-20 18:09:40 +00:00
|
|
|
export FLUME_CONF_DIR=${FLUME_CONF_DIR-#{libexec}/conf}
|
|
|
|
exec #{libexec}/bin/flume "$@"
|
2011-04-19 16:33:08 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install %w[bin conf lib webapps]
|
|
|
|
libexec.install Dir["*.jar"]
|
|
|
|
bin.mkpath
|
|
|
|
(bin+"flume").write flume_script()
|
|
|
|
end
|
|
|
|
end
|