update to elasticsearch 0.14.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
dd6464d4ad
commit
9cdd4cf1d3
1 changed files with 16 additions and 4 deletions
|
@ -1,12 +1,24 @@
|
||||||
require 'formula'
|
require 'formula'
|
||||||
|
|
||||||
class Elasticsearch < Formula
|
class Elasticsearch < Formula
|
||||||
url 'https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.13.0.zip'
|
url 'https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.14.2.tar.gz'
|
||||||
homepage 'http://www.elasticsearch.com'
|
homepage 'http://www.elasticsearch.com'
|
||||||
md5 'fd57261871c5be3c3053428046a86bc6'
|
md5 'b43789473b130fdecdf228f4120604a7'
|
||||||
|
|
||||||
|
skip_clean 'libexec/data'
|
||||||
|
|
||||||
|
def startup_script name
|
||||||
|
<<-EOS.undent
|
||||||
|
#!/bin/bash
|
||||||
|
exec #{libexec}/bin/#{name} $@
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
rm_f Dir["bin/*.bat"]
|
prefix.install %w{LICENSE.txt NOTICE.txt README.textile}
|
||||||
prefix.install %w[bin config lib]
|
libexec.install Dir['*']
|
||||||
|
|
||||||
|
(bin+'elasticsearch').write startup_script('elasticsearch')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue