diff options
Diffstat (limited to 'meta-networking/recipes-support/mctp/mctp_2.1.bb')
-rw-r--r-- | meta-networking/recipes-support/mctp/mctp_2.1.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/mctp/mctp_2.1.bb b/meta-networking/recipes-support/mctp/mctp_2.1.bb new file mode 100644 index 0000000000..04fecf7aca --- /dev/null +++ b/meta-networking/recipes-support/mctp/mctp_2.1.bb | |||
@@ -0,0 +1,46 @@ | |||
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 = "dd944cf5b5a8b834f3685bcb2017190258dbcd0b" | ||
9 | |||
10 | SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https \ | ||
11 | file://0001-mctp-bench-Adjust-headers.patch" | ||
12 | |||
13 | |||
14 | inherit meson pkgconfig systemd | ||
15 | |||
16 | EXTRA_OEMESON = " \ | ||
17 | -Dtests=false \ | ||
18 | " | ||
19 | |||
20 | PACKAGECONFIG ??= " \ | ||
21 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | ||
22 | " | ||
23 | |||
24 | # mctpd will only be built if pkg-config detects libsystemd; in which case | ||
25 | # we'll want to declare the dep and install the service. | ||
26 | PACKAGECONFIG[systemd] = ",,systemd,libsystemd" | ||
27 | SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target" | ||
28 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" | ||
29 | |||
30 | do_install:append () { | ||
31 | if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then | ||
32 | install -d ${D}${systemd_system_unitdir} | ||
33 | install -m 0644 ${S}/conf/mctpd.service \ | ||
34 | ${D}${systemd_system_unitdir}/mctpd.service | ||
35 | install -m 0644 ${S}/conf/*.target \ | ||
36 | ${D}${systemd_system_unitdir}/ | ||
37 | install -d ${D}${datadir}/dbus-1/system.d | ||
38 | install -m 0644 ${S}/conf/mctpd-dbus.conf \ | ||
39 | ${D}${datadir}/dbus-1/system.d/mctpd.conf | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | FILES:${PN} += " \ | ||
44 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ | ||
45 | '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \ | ||
46 | " | ||