summaryrefslogtreecommitdiff
path: root/strata/genivi-demo-platform/automotive-message-broker.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/genivi-demo-platform/automotive-message-broker.morph')
-rw-r--r--strata/genivi-demo-platform/automotive-message-broker.morph23
1 files changed, 23 insertions, 0 deletions
diff --git a/strata/genivi-demo-platform/automotive-message-broker.morph b/strata/genivi-demo-platform/automotive-message-broker.morph
new file mode 100644
index 00000000..b877564b
--- /dev/null
+++ b/strata/genivi-demo-platform/automotive-message-broker.morph
@@ -0,0 +1,23 @@
+name: automotive-message-broker
+kind: chunk
+description: The GENIVI Automotive Message Broker
+build-system: cmake
+pre-configure-commands:
+- sed -i 's:pkg_check_modules(json REQUIRED json):pkg_check_modules(json REQUIRED json-c):' $(find -name 'CMakeLists.txt')
+- sed -i 's:<json/json.h>:<json-c/json.h>:' $(find . -name '*.h' -o -name '*.c' -o -name '*.hpp' -o -name '*.cpp')
+post-install-commands:
+- mkdir -p "$DESTDIR/usr/lib/systemd/system"
+- |
+ cat >"$DESTDIR/usr/lib/systemd/system/ambd.service" <<EOF
+ [Unit]
+ Description=Automotive Message Broker
+ After=syslog.target
+
+ [Service]
+ Type=dbus
+ BusName=org.automotive.message.broker
+ ExecStart=/usr/bin/ambd
+
+ [Install]
+ WantedBy=multi-user.target
+ EOF