This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
/
riak.rb
57 lines (44 loc) 路 1.39 KB
/
riak.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require 'formula'
class Riak < Formula
url 'http://downloads.basho.com/riak/CURRENT/riak-1.0.2.tar.gz'
homepage 'http://wiki.basho.com/Riak.html'
md5 '322a1c66374f83a50519401e0386b15b'
head 'https://github.com/basho/riak.git'
skip_clean 'libexec/log'
skip_clean 'libexec/log/sasl'
skip_clean 'libexec/data'
skip_clean 'libexec/data/dets'
skip_clean 'libexec/data/ring'
depends_on 'erlang'
# Enable use of Erlang R14B04
# This was fixed upstream, so when updating the version of Riak
# check if this fix is already in place.
def patches; DATA; end
def install
ENV.deparallelize
system "make all rel"
%w(riak riak-admin search-cmd).each do |file|
inreplace "rel/riak/bin/#{file}", /^RUNNER_BASE_DIR=.+$/, "RUNNER_BASE_DIR=#{libexec}"
end
# 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
ln_s libexec+'bin/search-cmd', bin
(prefix + 'data/ring').mkpath
(prefix + 'data/dets').mkpath
# Install man pages
man1.install Dir["doc/man/man1/*"]
end
end
__END__
diff --git a/rebar.config b/rebar.config
index ee81bfc..31d2fae 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1,6 +1,6 @@
{sub_dirs, ["rel"]}.
-{require_otp_vsn, "R14B0[23]"}.
+{require_otp_vsn, "R14B0[234]"}.
{cover_enabled, true}.