2010-04-09 13:34:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Elasticsearch < Formula
|
2011-01-13 19:21:49 +00:00
|
|
|
url 'https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.14.2.tar.gz'
|
2010-04-09 13:34:11 +00:00
|
|
|
homepage 'http://www.elasticsearch.com'
|
2011-01-13 19:21:49 +00:00
|
|
|
md5 'b43789473b130fdecdf228f4120604a7'
|
|
|
|
|
|
|
|
skip_clean 'libexec/data'
|
|
|
|
|
|
|
|
def startup_script name
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
exec #{libexec}/bin/#{name} $@
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2010-04-09 13:34:11 +00:00
|
|
|
|
|
|
|
def install
|
2011-01-13 19:21:49 +00:00
|
|
|
prefix.install %w{LICENSE.txt NOTICE.txt README.textile}
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
|
|
|
(bin+'elasticsearch').write startup_script('elasticsearch')
|
2010-04-09 13:34:11 +00:00
|
|
|
end
|
|
|
|
end
|