diff options
Diffstat (limited to 'meta-networking/recipes-support/mctp/mctp_2.4.bb')
| -rw-r--r-- | meta-networking/recipes-support/mctp/mctp_2.4.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/mctp/mctp_2.4.bb b/meta-networking/recipes-support/mctp/mctp_2.4.bb new file mode 100644 index 0000000000..27750d4bfd --- /dev/null +++ b/meta-networking/recipes-support/mctp/mctp_2.4.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "Management Component Control Protocol utilities" | ||
| 2 | HOMEPAGE = "http://www.github.com/CodeConstruct/mctp" | ||
| 3 | SECTION = "net" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" | ||
| 7 | |||
| 8 | SRCREV = "8b019a3e4d335c7d31099762762dfee2e4705d37" | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https;tag=v${PV}" | ||
| 11 | |||
| 12 | |||
| 13 | inherit meson pkgconfig systemd | ||
| 14 | |||
| 15 | EXTRA_OEMESON = " \ | ||
| 16 | -Dtests=false \ | ||
| 17 | " | ||
| 18 | |||
| 19 | PACKAGECONFIG ??= " \ | ||
| 20 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | ||
| 21 | " | ||
| 22 | |||
| 23 | # mctpd will only be built if pkg-config detects libsystemd; in which case | ||
| 24 | # we'll want to declare the dep and install the service. | ||
| 25 | PACKAGECONFIG[systemd] = ",,systemd,libsystemd" | ||
| 26 | SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target" | ||
| 27 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" | ||
| 28 | |||
| 29 | do_install:append () { | ||
| 30 | if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then | ||
| 31 | install -d ${D}${systemd_system_unitdir} | ||
| 32 | install -m 0644 ${S}/conf/mctpd.service \ | ||
| 33 | ${D}${systemd_system_unitdir}/mctpd.service | ||
| 34 | install -m 0644 ${S}/conf/*.target \ | ||
| 35 | ${D}${systemd_system_unitdir}/ | ||
| 36 | install -d ${D}${datadir}/dbus-1/system.d | ||
| 37 | install -m 0644 ${S}/conf/mctpd-dbus.conf \ | ||
| 38 | ${D}${datadir}/dbus-1/system.d/mctpd.conf | ||
| 39 | fi | ||
| 40 | } | ||
| 41 | |||
| 42 | FILES:${PN} += " \ | ||
| 43 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ | ||
| 44 | '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \ | ||
| 45 | " | ||
