forked from vernemq/vernemq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
114 lines (100 loc) · 5.25 KB
/
rebar.config
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
%%-*- mode: erlang -*-
{require_otp_vsn, "17"}.
{erl_opts, [debug_info, fail_on_warning]}.
{plugins, [
{rebar3_cuttlefish, {git, "git://github.com/tsloughter/rebar3_cuttlefish.git", {branch, "master"}}}
]}.
{deps, [
{lager, {git, "git://github.com/basho/lager.git", {tag, "3.0.1"}}},
{cuttlefish, {git, "git://github.com/tsloughter/cuttlefish.git", {branch, "develop"}}},
{node_package, {git,"git://github.com/dergraf/node_package.git", {branch, "rebar3-support"}}},
{lager_syslog, {git, "git://github.com/basho/lager_syslog.git", {tag, "2.0.3"}}},
{eper, {git, "https://github.com/massemanet/eper.git", {tag, "0.87.0"}}},
%% recon is 'currently' included in the ESL Erlang 17.4 distribution package
%% comment the following line if you are using this ESL Erlang version
{recon, {git, "git://github.com/ferd/recon.git", {tag, "2.2.1"}}},
{vmq_commons, {git, "git://github.com/erlio/vmq_commons.git", {branch, "master"}}},
{vmq_server, {git, "git://github.com/erlio/vmq_server.git", {branch, "master"}}},
{vmq_acl, {git, "git://github.com/erlio/vmq_acl.git", {branch, "master"}}},
{vmq_passwd, {git, "git://github.com/erlio/vmq_passwd.git", {branch, "master"}}},
{vmq_bridge, {git, "git://github.com/erlio/vmq_bridge.git", {branch, "master"}}},
{vmq_graphite, {git, "git://github.com/erlio/vmq_graphite.git", {branch, "master"}}},
{vmq_snmp, {git, "git://github.com/erlio/vmq_snmp.git", {branch, "master"}}},
{vmq_systree, {git, "git://github.com/erlio/vmq_systree.git", {branch, "master"}}}
]}.
{overrides, [{override, setup, [{post_hooks, []}]},
{override, vmq_passwd, [{post_hooks, [{compile, "make -C c_src"}]}]},
{override, syslog,
[{so_name, "syslog_drv"},
{port_sources, ["c_src/*.c"]},
{pre_hooks,
[{compile, "cp ../../../../files/syslog.mk c_src/Makefile"},
{"(linux|darwin|solaris)", compile, "make -C c_src"},
{"(freebsd)", compile, "gmake -C c_src"}]},
{post_hooks,
[{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
{"(freebsd)", clean, "gmake -C c_src clean"}]}
]}
]}.
{provider_hooks, [{post, [{release, cuttlefish}]}]}.
{relx,
[{release, {"vernemq", "0.12.4"},
[
sasl,
vmq_server,
{cuttlefish, load},
{vmq_passwd, load},
{vmq_acl, load},
{vmq_bridge, load},
{vmq_systree, load},
{vmq_graphite, load},
{vmq_snmp, load},
{recon, load},
{eper, load},
{syslog, load},
{lager_syslog, load},
{runtime_tools, load},
{tools, load}
]},
{dev_mode, false},
{include_erts, true},
{include_src, false},
{generate_start_script, false},
{overlay, [
{mkdir, "data/broker"},
{mkdir, "data/msgstore"},
{mkdir, "log/sasl"},
{template, "_build/default/lib/node_package/priv/base/runner",
"bin/vernemq"},
{template, "_build/default/lib/node_package/priv/base/nodetool",
"erts-{{erts_vsn}}/bin/nodetool"},
{template, "_build/default/lib/node_package/priv/base/env.sh",
"lib/env.sh"},
{template, "_build/default/lib/node_package/priv/base/app_epath.sh",
"lib/app_epath.sh"},
{template, "files/vmq-admin", "bin/vmq-admin"},
{copy, "_build/default/bin/cuttlefish", "erts-{{erts_vsn}}/bin/cuttlefish"},
{copy, "_build/default/lib/vmq_acl/priv/default.acl",
"etc/vmq.acl"},
{copy, "_build/default/lib/vmq_passwd/c_src/vmq_passwd",
"bin/vmq-passwd"},
{copy, "files/vmq_plugin.conf", "lib/vmq_plugin.conf"},
%% Cuttlefish Schema Files have a priority order.
%% Anything in a file prefixed with 00- will override
%% anything in a file with a higher numbered prefix.
%%
%% Please only use 0[0-9]-*.schema for development purposes
{template, "_build/default/lib/vmq_server/priv/vmq_server.schema", "lib/10-vmq_server.schema"},
{template, "_build/default/lib/vmq_plugin/priv/vmq_plugin.schema", "lib/12-vmq_plugin.schema"},
{template, "_build/default/lib/vmq_acl/priv/vmq_acl.schema", "lib/13-vmq_acl.schema"},
{template, "_build/default/lib/vmq_passwd/priv/vmq_passwd.schema", "lib/14-vmq_passwd.schema"},
{template, "_build/default/lib/vmq_bridge/priv/vmq_bridge.schema", "lib/15-vmq_bridge.schema"},
{template, "_build/default/lib/vmq_systree/priv/vmq_systree.schema", "lib/16-vmq_systree.schema"},
{template, "_build/default/lib/vmq_snmp/priv/vmq_snmp.schema", "lib/17-vmq_snmp.schema"},
{template, "_build/default/lib/vmq_graphite/priv/vmq_graphite.schema", "lib/18-vmq_graphite.schema"},
{template, "files/vmq.schema", "lib/30-vmq.schema"},
{template, "_build/default/lib/cuttlefish/priv/erlang_vm.schema", "lib/31-erlang_vm.schema"},
{template, "_build/default/lib/riak_sysmon/priv/riak_sysmon.schema", "lib/32-riak_sysmon.schema"},
{mkdir, "lib/erlio-patches"}
]}
]}.