summaryrefslogtreecommitdiff
path: root/strata
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-13 18:30:49 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:22 +0000
commit59f4bfdc1f2e266ba68c3e24e2adb3c934f2ade2 (patch)
treea004f03269575492bb489356d87ffcec48565af8 /strata
parentdbd97b9918a116e23884235fd98eaa09ed83645a (diff)
downloaddefinitions-59f4bfdc1f2e266ba68c3e24e2adb3c934f2ade2.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.
Diffstat (limited to 'strata')
-rw-r--r--strata/erlang.morph15
-rw-r--r--strata/erlang/erlang-sd_notify.morph9
-rw-r--r--strata/erlang/rebar.morph6
3 files changed, 30 insertions, 0 deletions
diff --git a/strata/erlang.morph b/strata/erlang.morph
index 657b07be..4b878395 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: 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