diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-01 13:39:50 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-13 16:45:02 +0000 |
commit | cbd4681b9330bc49ef0e636546756ee72afb1c07 (patch) | |
tree | 686dbe263275f828bdfefb14c79ef410300e3366 /strata/genivi-demo-platform/automotive-message-broker.morph | |
parent | 34aaa622a884c361834f76479801260ffea48228 (diff) | |
download | definitions-cbd4681b9330bc49ef0e636546756ee72afb1c07.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.morph | 23 |
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 |