summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/mctp/mctp_2.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/mctp/mctp_2.1.bb')
-rw-r--r--meta-networking/recipes-support/mctp/mctp_2.1.bb46
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 @@
1SUMMARY = "Management Component Control Protocol utilities"
2HOMEPAGE = "http://www.github.com/CodeConstruct/mctp"
3SECTION = "net"
4LICENSE = "GPL-2.0-only"
5
6LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21"
7
8SRCREV = "dd944cf5b5a8b834f3685bcb2017190258dbcd0b"
9
10SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https \
11 file://0001-mctp-bench-Adjust-headers.patch"
12
13
14inherit meson pkgconfig systemd
15
16EXTRA_OEMESON = " \
17 -Dtests=false \
18"
19
20PACKAGECONFIG ??= " \
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.
26PACKAGECONFIG[systemd] = ",,systemd,libsystemd"
27SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target"
28SYSTEMD_AUTO_ENABLE:${PN} = "enable"
29
30do_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
43FILES:${PN} += " \
44 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \
45 '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \
46"