InfluxDB 0.3.2
Closes Homebrew/homebrew#24884. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
2970163a8e
commit
12309bd2b2
1 changed files with 9 additions and 10 deletions
|
@ -2,14 +2,8 @@ require "formula"
|
|||
|
||||
class Influxdb < Formula
|
||||
homepage "http://influxdb.org"
|
||||
url "http://get.influxdb.org/src/influxdb-0.3.0.tar.gz"
|
||||
sha1 "057e5ac9a53f1c516f920d9f5c158b4998f669c6"
|
||||
|
||||
bottle do
|
||||
sha1 'b9bd4fb3404f11457522db197d47862e354848a5' => :mavericks
|
||||
sha1 '0baf4e253800bf95524ddd5bae79f54e66dcf18e' => :mountain_lion
|
||||
sha1 'b3c0a6b7e668c57e78f92d13a3f89e9dc4c1d1da' => :lion
|
||||
end
|
||||
url "http://get.influxdb.org/influxdb-0.3.2.src.tar.gz"
|
||||
sha1 "6b730a75e6694abd5e913b4ad08936f7661569bd"
|
||||
|
||||
depends_on "leveldb"
|
||||
depends_on "protobuf" => :build
|
||||
|
@ -20,12 +14,17 @@ class Influxdb < Formula
|
|||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
|
||||
system "go build src/server/server.go"
|
||||
flex = Formula.factory('flex').bin/"flex"
|
||||
bison = Formula.factory('bison').bin/"bison"
|
||||
|
||||
system "./configure", "--with-flex=#{flex}", "--with-bison=#{bison}"
|
||||
system "make dependencies protobuf parser"
|
||||
system "go build server"
|
||||
|
||||
inreplace "config.json.sample" do |s|
|
||||
s.gsub! "/tmp/influxdb/development/db", "#{var}/influxdb/data"
|
||||
s.gsub! "/tmp/influxdb/development/raft", "#{var}/influxdb/raft"
|
||||
s.gsub! "./admin/", "#{share}/admin/"
|
||||
s.gsub! "./admin/", "#{opt_prefix}/share/admin/"
|
||||
end
|
||||
|
||||
bin.install "server" => "influxdb"
|
||||
|
|
Loading…
Reference in a new issue