2010-01-12 21:50:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Riak <Formula
|
2010-07-20 19:15:52 +00:00
|
|
|
url 'http://downloads.basho.com/riak/riak-0.12/riak-0.12.0.tar.gz'
|
2010-01-12 21:50:19 +00:00
|
|
|
homepage 'http://riak.basho.com'
|
2010-07-20 19:15:52 +00:00
|
|
|
md5 'b5bbc7aaf115bc6ba518137b733ad8a2'
|
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-09-21 15:22:45 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
# Having issues with the integer_to_list/2 BIF
|
|
|
|
DATA
|
|
|
|
end
|
2010-04-07 05:58:35 +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
|
|
|
|
end
|
2010-03-11 11:30:44 +00:00
|
|
|
end
|
2010-09-21 15:22:45 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/apps/riak_core/src/riak_core_util.erl b/apps/riak_core/src/riak_core_util.erl
|
|
|
|
index 4c5d73c..e03a95a 100644
|
|
|
|
--- a/apps/riak_core/src/riak_core_util.erl
|
|
|
|
+++ b/apps/riak_core/src/riak_core_util.erl
|
|
|
|
@@ -22,7 +22,7 @@
|
|
|
|
|
|
|
|
%% @doc Various functions that are useful throughout Riak.
|
|
|
|
-module(riak_core_util).
|
|
|
|
-
|
|
|
|
+-compile({no_auto_import,[integer_to_list/2]}).
|
|
|
|
-export([moment/0,
|
|
|
|
make_tmp_dir/0,
|
|
|
|
compare_dates/2,
|