Update github.com git:// SRC_URIs
[AGL/meta-agl-demo.git] / recipes-connectivity / bluez5 / bluez5_agldemo.inc
1 FILESEXTRAPATHS:prepend := "${THISDIR}/bluez5:"
2 SRC_URI:append = " \
3     file://bluetooth.conf \
4     file://tmpdir.conf \
5     file://obex.service \
6     file://bluetooth.service \
7 "
8
9 FILES:${PN}:append = " ${systemd_user_unitdir}/obex.service.d/tmpdir.conf"
10
11 do_install:append() {
12     install -m 0644 ${WORKDIR}/bluetooth.conf ${D}${sysconfdir}/dbus-1/system.d/bluetooth.conf
13
14     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
15         mkdir -p ${D}${systemd_user_unitdir}/obex.service.d
16
17         install -m 0644 ${WORKDIR}/obex.service ${D}${systemd_user_unitdir}
18         install -m 0644 ${WORKDIR}/tmpdir.conf ${D}${systemd_user_unitdir}/obex.service.d/tmpdir.conf
19         mkdir -p ${D}/etc/systemd/user
20         ln -sf ${systemd_user_unitdir}/obex.service ${D}/etc/systemd/user/dbus-org.bluez.obex.service
21         mkdir -p ${D}${systemd_system_unitdir}
22         install -m 0644 ${WORKDIR}/bluetooth.service ${D}${systemd_system_unitdir}
23     fi
24 }