mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-29 20:29:40 -05:00
influxdb 0.4.0
Closes #25996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
1 parent
95464378fe
commit
62ed4e3762
1 file changed
+6
-18
@@ -2,19 +2,10 @@ require "formula"
|
||||
|
||||
class Influxdb < Formula
|
||||
homepage "http://influxdb.org"
|
||||
url "http://get.influxdb.org/influxdb-0.3.2.src.tar.gz"
|
||||
sha1 "6b730a75e6694abd5e913b4ad08936f7661569bd"
|
||||
|
||||
devel do
|
||||
url "http://get.influxdb.org/influxdb-0.4.0.rc5.src.tar.gz"
|
||||
sha1 "b9f1bd55333060ce10691a2f68fdb35eda944bf7"
|
||||
end
|
||||
url "http://get.influxdb.org/influxdb-0.4.0.src.tar.gz"
|
||||
sha1 "102f44c19f0b202205109b871f09ecdbadb38403"
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
sha1 'd4d7405063723e8ec1c5dfcc2b19428361b06e96' => :mavericks
|
||||
sha1 '6d43cfb426a0d1066192d9504f071b79460a49a6' => :mountain_lion
|
||||
sha1 '2d917f0104f7524d52b441ea7e921615e28d3737' => :lion
|
||||
end
|
||||
|
||||
depends_on "leveldb"
|
||||
@@ -29,21 +20,18 @@ class Influxdb < Formula
|
||||
flex = Formula.factory('flex').bin/"flex"
|
||||
bison = Formula.factory('bison').bin/"bison"
|
||||
|
||||
build_target = build.devel? ? "daemon" : "server"
|
||||
config_type = build.devel? ? "toml" : "json"
|
||||
|
||||
system "./configure", "--with-flex=#{flex}", "--with-bison=#{bison}"
|
||||
system "make dependencies protobuf parser"
|
||||
system "go build #{build_target}"
|
||||
system "go build daemon"
|
||||
|
||||
inreplace "config.#{config_type}.sample" do |s|
|
||||
inreplace "config.toml.sample" do |s|
|
||||
s.gsub! "/tmp/influxdb/development/db", "#{var}/influxdb/data"
|
||||
s.gsub! "/tmp/influxdb/development/raft", "#{var}/influxdb/raft"
|
||||
s.gsub! "./admin", "#{opt_prefix}/share/admin"
|
||||
end
|
||||
|
||||
bin.install build_target => "influxdb"
|
||||
etc.install "config.#{config_type}.sample" => "influxdb.conf"
|
||||
bin.install "daemon" => "influxdb"
|
||||
etc.install "config.toml.sample" => "influxdb.conf"
|
||||
share.install "admin"
|
||||
|
||||
(var/'influxdb/data').mkpath
|
||||
|
||||
Reference in new issue
Block a user