2010-01-12 21:50:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Riak <Formula
|
2011-02-24 00:53:15 +00:00
|
|
|
url 'http://downloads.basho.com/riak/riak-0.14/riak-0.14.1.tar.gz'
|
2010-01-12 21:50:19 +00:00
|
|
|
homepage 'http://riak.basho.com'
|
2011-02-24 00:53:15 +00:00
|
|
|
md5 'f85721775ad1732f20de2c40e0e41d80'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-04-26 17:39:57 +00:00
|
|
|
skip_clean 'libexec/log'
|
|
|
|
skip_clean 'libexec/log/sasl'
|
|
|
|
skip_clean 'libexec/data'
|
|
|
|
skip_clean 'libexec/data/dets'
|
|
|
|
skip_clean 'libexec/data/ring'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
depends_on 'erlang'
|
2010-10-12 15:43:12 +00:00
|
|
|
|
2010-01-12 21:50:19 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
system "make all rel"
|
|
|
|
%w(riak riak-admin).each do |file|
|
2010-04-26 17:39:57 +00:00
|
|
|
inreplace "rel/riak/bin/#{file}", /^RUNNER_BASE_DIR=.+$/, "RUNNER_BASE_DIR=#{libexec}"
|
2010-01-12 21:50:19 +00:00
|
|
|
end
|
2010-04-26 17:39:57 +00:00
|
|
|
|
|
|
|
# Install most files to private libexec, and link in the binaries.
|
|
|
|
libexec.install Dir["rel/riak/*"]
|
|
|
|
bin.mkpath
|
|
|
|
ln_s libexec+'bin/riak', bin
|
|
|
|
ln_s libexec+'bin/riak-admin', bin
|
|
|
|
|
2010-01-12 21:50:19 +00:00
|
|
|
(prefix + 'data/ring').mkpath
|
|
|
|
(prefix + 'data/dets').mkpath
|
2011-01-12 22:11:17 +00:00
|
|
|
|
|
|
|
# Install man pages
|
|
|
|
man1.install Dir["doc/man/man1/*"]
|
2010-01-12 21:50:19 +00:00
|
|
|
end
|
2011-01-12 22:11:17 +00:00
|
|
|
end
|