aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDan Larkin2011-01-13 14:21:49 -0500
committerAdam Vandenberg2011-01-14 08:58:37 -0800
commit032ab3ac10533ac7e41f7a468587b5db76d67cd7 (patch)
tree02c52b696d10493f8f42a0c152decf6bf5981329 /Library/Formula
parentb41ecdfbdd33c63b2577bb9378dbb44c60ccc2b7 (diff)
downloadhomebrew-032ab3ac10533ac7e41f7a468587b5db76d67cd7.tar.bz2
update to elasticsearch 0.14.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/elasticsearch.rb20
1 files changed, 16 insertions, 4 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb
index 9ea1079bd..0a8e96f17 100644
--- a/Library/Formula/elasticsearch.rb
+++ b/Library/Formula/elasticsearch.rb
@@ -1,12 +1,24 @@
require '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'
- md5 'fd57261871c5be3c3053428046a86bc6'
+ md5 'b43789473b130fdecdf228f4120604a7'
+
+ skip_clean 'libexec/data'
+
+ def startup_script name
+ <<-EOS.undent
+ #!/bin/bash
+ exec #{libexec}/bin/#{name} $@
+ EOS
+ end
+
def install
- rm_f Dir["bin/*.bat"]
- prefix.install %w[bin config lib]
+ prefix.install %w{LICENSE.txt NOTICE.txt README.textile}
+ libexec.install Dir['*']
+
+ (bin+'elasticsearch').write startup_script('elasticsearch')
end
end