blob: 19f4c8c364c7442eb86e58fb13f67daf08c67225 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | 
require 'formula'
class Elasticsearch < Formula
  url 'https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.15.2.tar.gz'
  homepage 'http://www.elasticsearch.com'
  md5 '6e0e9ea3fcc0e95d2fe490445fb4aa1d'
  skip_clean 'libexec/data'
  def startup_script name
    <<-EOS.undent
      #!/bin/bash
      exec #{libexec}/bin/#{name} $@
    EOS
  end
  def install
    prefix.install %w{LICENSE.txt NOTICE.txt README.textile}
    libexec.install Dir['*']
    (bin+'elasticsearch').write startup_script('elasticsearch')
  end
end
  |