diff options
| author | Todd Persen | 2014-01-06 15:22:22 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-07 07:40:21 +0000 |
| commit | 1d7c42f88924e3a4927ef15d15ee191d53c8b398 (patch) | |
| tree | 363f7340c79101a390f8bee570f21278e0ed82cd /Library/Formula | |
| parent | fe355c2adf994ddb0660de4b9293a952448a5bff (diff) | |
| download | homebrew-1d7c42f88924e3a4927ef15d15ee191d53c8b398.tar.bz2 | |
influxdb 0.4.0.rc5
Closes #25691.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/influxdb.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Formula/influxdb.rb b/Library/Formula/influxdb.rb index 13da8b71a..ba9aa87c7 100644 --- a/Library/Formula/influxdb.rb +++ b/Library/Formula/influxdb.rb @@ -6,8 +6,8 @@ class Influxdb < Formula sha1 "6b730a75e6694abd5e913b4ad08936f7661569bd" devel do - url "http://get.influxdb.org/influxdb-0.4.0.rc2.src.tar.gz" - sha1 "81d0f8e8f3b7648f010b85232baf002d5612dd72" + url "http://get.influxdb.org/influxdb-0.4.0.rc5.src.tar.gz" + sha1 "b9f1bd55333060ce10691a2f68fdb35eda944bf7" end bottle do @@ -29,19 +29,20 @@ class Influxdb < Formula 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}" - inreplace "config.json.sample" do |s| + inreplace "config.#{config_type}.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/" + s.gsub! "./admin", "#{opt_prefix}/share/admin" end bin.install build_target => "influxdb" - etc.install "config.json.sample" => "influxdb.conf" + etc.install "config.#{config_type}.sample" => "influxdb.conf" share.install "admin" (var/'influxdb/data').mkpath |
