blob: e6132faa7d7f193ee7da35b6f17a3c4aa66e2d1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Common code for applications providing a D-Bus service.
# Class users should define DBUS_SERVICES prior to including.
RDEPENDS_${PN} += "dbus-perms"
python() {
services = d.getVar('DBUS_SERVICES', True)
if services:
uris = " ".join( [ 'file://' + s + '.conf' for s in services.split() ] )
d.appendVar('SRC_URI', ' ' + uris + ' ')
}
do_install_append() {
# install the service configuration files
install -d ${D}${sysconfdir}/dbus-1/system.d
for s in ${DBUS_SERVICES}; do
install ${WORKDIR}/$s.conf ${D}${sysconfdir}/dbus-1/system.d/$s.conf
done
}
|