aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTodd Persen2014-01-17 14:00:35 -0500
committerMike McQuaid2014-01-17 23:00:11 +0000
commit62ed4e37629230180a0e4dc82f63e2e00ecaeddf (patch)
treee74d9c5fed2e0fe43a51fc34603e82cdb8f797a4 /Library
parent95464378fe648c2ee402af879babd41fd053a602 (diff)
downloadhomebrew-62ed4e37629230180a0e4dc82f63e2e00ecaeddf.tar.bz2
influxdb 0.4.0
Closes #25996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/influxdb.rb24
1 files changed, 6 insertions, 18 deletions
diff --git a/Library/Formula/influxdb.rb b/Library/Formula/influxdb.rb
index 2461c04e5..4cb918d52 100644
--- a/Library/Formula/influxdb.rb
+++ b/Library/Formula/influxdb.rb
@@ -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