diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-11-13 18:30:49 +0000 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2014-11-27 18:12:13 +0000 |
commit | ba17093416435db346c816722feadc4cc3c185af (patch) | |
tree | 238935be7f5bc3bdd84c99f0867cf57693d7431f | |
parent | 5d2153b48969e58163634f95a874d03b4db3ee2d (diff) | |
download | definitions-ba17093416435db346c816722feadc4cc3c185af.tar.gz |
Add rebar and erlang-sd_notify to erlang stratum
First use:
- To use systemd notify patches in rabbitmq-server to synchronize
rabbitmq-server and rabbitmq-controler (rabbitmqctl), which looks
like is a problem with the syncronization of their erlang processes.
-rw-r--r-- | strata/erlang.morph | 19 | ||||
-rw-r--r-- | strata/erlang/erlang-sd_notify.morph | 9 | ||||
-rw-r--r-- | strata/erlang/rebar.morph | 6 |
3 files changed, 32 insertions, 2 deletions
diff --git a/strata/erlang.morph b/strata/erlang.morph index 05a8e090..71aed301 100644 --- a/strata/erlang.morph +++ b/strata/erlang.morph @@ -7,6 +7,21 @@ chunks: - name: erlang morph: strata/erlang/erlang.morph repo: upstream:erlang - ref: d307c9520644d17d5f7597c0154888e2d570b107 - unpetrify-ref: baserock/morph + ref: 9417f044ee3c291c2ea343c203aebdcc40597226 + unpetrify-ref: OPT-17.3.4 build-depends: [] +- name: rebar + morph: strata/erlang/rebar.morph + repo: https://github.com/rebar/rebar + ref: master + unpretrify-ref: master + build-depends: + - erlang +- name: erlang-sd_notify + morph: strata/erlang/erlang-sd_notify.morph + repo: https://github.com/lemenkov/erlang-sd_notify + ref: master + unpretrify-ref: master + build-depends: + - erlang + - rebar diff --git a/strata/erlang/erlang-sd_notify.morph b/strata/erlang/erlang-sd_notify.morph new file mode 100644 index 00000000..7ad000a0 --- /dev/null +++ b/strata/erlang/erlang-sd_notify.morph @@ -0,0 +1,9 @@ +name: erlang +kind: chunk +build-commands: +# https://apps.fedoraproject.org/packages/erlang-sd_notify/sources/spec +- LDFLAGS=-lsystemd-daemon REBAR_FLAGS="--verbose 2" make +install-commands: +- install -D -m 644 -p ebin/sd_notify.app "$DESTDIR$PREFIX"/lib/erlang/lib/sd_notify-0.1/ebin/sd_notify.app +- install -D -m 644 -p ebin/sd_notify.beam "$DESTDIR$PREFIX"/lib/erlang/lib/sd_notify-0.1/ebin/sd_notify.beam +- install -D -m 755 -p priv/sd_notify_drv.so "$DESTDIR$PREFIX"/lib/erlang/lib/sd_notify-0.1/priv/sd_notify_drv.so diff --git a/strata/erlang/rebar.morph b/strata/erlang/rebar.morph new file mode 100644 index 00000000..679b6013 --- /dev/null +++ b/strata/erlang/rebar.morph @@ -0,0 +1,6 @@ +name: erlang +kind: chunk +build-commands: +- ./bootstrap +install-commands: +- install -D -m755 rebar "$DESTDIR$PREFIX"/bin/rebar |