1SUMMARY = "dbus broker" 2DESCRIPTION = "Drop-in replacement for dbus-daemon." 3SECTION = "base" 4LICENSE = "Apache-2.0" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=7b486c2338d225a1405d979ed2c15ce8" 6DEPENDS = "\ 7 expat \ 8 systemd \ 9 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'audit (>= 3.0)', '', d)} \ 10 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux (>= 3.2)', '', d)} \ 11" 12 13SRC_URI = "https://github.com/bus1/dbus-broker/releases/download/v${PV}/${BP}.tar.xz" 14SRC_URI[sha256sum] = "d333d99bd2688135b6d6961e7ad1360099d186078781c87102230910ea4e162b" 15 16UPSTREAM_CHECK_URI = "https://github.com/bus1/${BPN}/releases" 17UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+)" 18 19SYSTEMD_SERVICE:${PN} = "${BPN}.service" 20 21inherit meson pkgconfig systemd features_check 22 23EXTRA_OEMESON += "-Daudit=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" 24EXTRA_OEMESON += "-Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" 25 26REQUIRED_DISTRO_FEATURES = "systemd" 27 28do_install:append() { 29 install -d ${D}${sysconfdir}/systemd/user 30 ln -s ${systemd_user_unitdir}/dbus-broker.service ${D}${sysconfdir}/systemd/user/dbus.service 31} 32 33RDEPENDS:${PN} += "dbus-common" 34 35FILES:${PN} += "${nonarch_libdir}/systemd/catalog" 36FILES:${PN} += "${systemd_system_unitdir}" 37FILES:${PN} += "${systemd_user_unitdir}" 38