summaryrefslogtreecommitdiff
path: root/strata/genivi-demo-platform/automotive-message-broker.morph
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2015-05-01 13:39:50 +0000
committerJames Thomas <james.thomas@codethink.co.uk>2015-05-18 16:20:31 +0000
commitebd18c242e653cc23c3ba8c6c81fa728f9d32e3a (patch)
treeb12972bc6f109164deffa4b6fdb342b803933b9b /strata/genivi-demo-platform/automotive-message-broker.morph
parentb51d9f9338787999bd3ba24f48bd6c7a20fa272c (diff)
downloaddefinitions-ebd18c242e653cc23c3ba8c6c81fa728f9d32e3a.tar.gz
Add GENIVI Demo Platform system and stratum
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