diff options
| author | Niko Mauno <niko.mauno@vaisala.com> | 2024-10-21 15:16:21 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-10-21 20:54:48 -0700 |
| commit | 60f7f944090137274563c72396940ecdb8876229 (patch) | |
| tree | a4f1793af7d2b468669a9c4c8ace749c3931a17a | |
| parent | c3e4879c5c7abbf57b0c2633a66137e302604e0a (diff) | |
| download | meta-openembedded-60f7f944090137274563c72396940ecdb8876229.tar.gz | |
dbus-broker: Cosmetic: Recipe style fixes
Improve recipe content mostly by applying some ordering suggestions
from oe-stylize.py script, and mitigate also few other minor issues.
Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-core/dbus/dbus-broker_36.bb | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/meta-oe/recipes-core/dbus/dbus-broker_36.bb b/meta-oe/recipes-core/dbus/dbus-broker_36.bb index 46cff86db9..f0f427ba0f 100644 --- a/meta-oe/recipes-core/dbus/dbus-broker_36.bb +++ b/meta-oe/recipes-core/dbus/dbus-broker_36.bb | |||
| @@ -1,33 +1,32 @@ | |||
| 1 | SUMMARY = "dbus broker" | 1 | SUMMARY = "dbus broker" |
| 2 | DESCRIPTION = "Drop-in replacement for dbus-daemon." | 2 | DESCRIPTION = "Drop-in replacement for dbus-daemon." |
| 3 | |||
| 4 | SECTION = "base" | 3 | SECTION = "base" |
| 5 | |||
| 6 | LICENSE = "Apache-2.0" | 4 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7b486c2338d225a1405d979ed2c15ce8" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7b486c2338d225a1405d979ed2c15ce8" |
| 8 | 6 | DEPENDS = "\ | |
| 9 | SRC_URI = "https://github.com/bus1/dbus-broker/releases/download/v${PV}/dbus-broker-${PV}.tar.xz" | 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 | |||
| 13 | SRC_URI = "https://github.com/bus1/dbus-broker/releases/download/v${PV}/${BP}.tar.xz" | ||
| 10 | SRC_URI[sha256sum] = "d333d99bd2688135b6d6961e7ad1360099d186078781c87102230910ea4e162b" | 14 | SRC_URI[sha256sum] = "d333d99bd2688135b6d6961e7ad1360099d186078781c87102230910ea4e162b" |
| 11 | 15 | ||
| 12 | UPSTREAM_CHECK_URI = "https://github.com/bus1/${BPN}/releases" | 16 | UPSTREAM_CHECK_URI = "https://github.com/bus1/${BPN}/releases" |
| 13 | UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+)" | 17 | UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+)" |
| 14 | 18 | ||
| 15 | inherit meson pkgconfig systemd features_check | 19 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" |
| 16 | 20 | ||
| 17 | DEPENDS = "expat systemd" | 21 | inherit meson pkgconfig systemd features_check |
| 18 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'libselinux (>= 3.2)', '', d)}" | ||
| 19 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'audit (>= 3.0)', '', d)}" | ||
| 20 | 22 | ||
| 21 | RDEPENDS:${PN} += "dbus-common" | 23 | EXTRA_OEMESON += "-Daudit=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" |
| 24 | EXTRA_OEMESON += "-Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" | ||
| 22 | 25 | ||
| 23 | REQUIRED_DISTRO_FEATURES = "systemd" | 26 | REQUIRED_DISTRO_FEATURES = "systemd" |
| 24 | 27 | ||
| 25 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | 28 | RDEPENDS:${PN} += "dbus-common" |
| 26 | 29 | ||
| 30 | FILES:${PN} += "${nonarch_libdir}/systemd/catalog" | ||
| 27 | FILES:${PN} += "${systemd_system_unitdir}" | 31 | FILES:${PN} += "${systemd_system_unitdir}" |
| 28 | FILES:${PN} += "${systemd_user_unitdir}" | 32 | FILES:${PN} += "${systemd_user_unitdir}" |
| 29 | FILES:${PN} += "${nonarch_libdir}/systemd/catalog" | ||
| 30 | |||
| 31 | EXTRA_OEMESON += " -Dselinux=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" | ||
| 32 | EXTRA_OEMESON += " -Daudit=${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}" | ||
| 33 | |||
