flume: style nits
This commit is contained in:
parent
037650ffe6
commit
443c6bd303
1 changed files with 5 additions and 6 deletions
|
@ -1,23 +1,22 @@
|
|||
require 'formula'
|
||||
|
||||
class Flume < Formula
|
||||
url 'http://archive.cloudera.com/cdh/3/flume-0.9.4-cdh3u2.tar.gz'
|
||||
homepage 'https://github.com/cloudera/flume'
|
||||
sha1 '9f68c8205b61e43d35467b6d45f815f5e41239e9'
|
||||
url 'http://archive.cloudera.com/cdh/3/flume-0.9.4-cdh3u2.tar.gz'
|
||||
version "0.9.4-cdh3u2"
|
||||
sha1 '9f68c8205b61e43d35467b6d45f815f5e41239e9'
|
||||
|
||||
def flume_script
|
||||
<<-EOS.undent
|
||||
<<-EOS.undent
|
||||
#!/bin/bash
|
||||
export FLUME_CONF_DIR=${FLUME_CONF_DIR-#{libexec}/conf}
|
||||
exec #{libexec}/bin/flume "$@"
|
||||
EOS
|
||||
EOS
|
||||
end
|
||||
|
||||
def install
|
||||
libexec.install %w[bin conf lib webapps]
|
||||
libexec.install Dir["*.jar"]
|
||||
bin.mkpath
|
||||
(bin+"flume").write flume_script()
|
||||
(bin/"flume").write flume_script
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue