From 24ae9235a5be5db1de379dfc65828269552eecef Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Thu, 12 Feb 2015 10:17:41 +0000 Subject: Add erlang-sd_notify and rebar to the erlang stratum erlang-sd_notify is a package which allows erlang services to use notify type in their systemd units. This will be required to synchronize rabbitmq-server and rabbitmq-controller. rebar is an erlang compiler. --- strata/erlang.morph | 15 +++++++++++++++ strata/erlang/erlang-sd_notify.morph | 8 ++++++++ strata/erlang/rebar.morph | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 strata/erlang/erlang-sd_notify.morph create mode 100644 strata/erlang/rebar.morph diff --git a/strata/erlang.morph b/strata/erlang.morph index 657b07be..bea09d61 100644 --- a/strata/erlang.morph +++ b/strata/erlang.morph @@ -10,3 +10,18 @@ chunks: ref: 9417f044ee3c291c2ea343c203aebdcc40597226 unpetrify-ref: OTP-17.3.4 build-depends: [] +- name: rebar + morph: strata/erlang/rebar.morph + repo: upstream:erlang-modules/rebar + ref: d42ed4683576d995f60e3222f076e99f0b081f79 + unpretrify-ref: master + build-depends: + - erlang +- name: erlang-sd_notify + morph: strata/erlang/erlang-sd_notify.morph + repo: upstream:erlang-modules/erlang-sd_notify + ref: 99f4689c2c18570680329f822591f95f9341ca10 + 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..32bf92d2 --- /dev/null +++ b/strata/erlang/erlang-sd_notify.morph @@ -0,0 +1,8 @@ +name: erlang +kind: chunk +build-commands: +- LDFLAGS=-lsystemd 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..3a6134c0 --- /dev/null +++ b/strata/erlang/rebar.morph @@ -0,0 +1,6 @@ +name: erlang +kind: chunk +build-commands: +- ./bootstrap +install-commands: +- install -D -m 755 rebar "$DESTDIR$PREFIX"/bin/rebar -- cgit v1.2.1