summaryrefslogtreecommitdiff
path: root/strata/genivi-demo-platform/automotive-message-broker.morph
blob: b877564b2c0cf0034a58e19fd1baabcac8a99e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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