summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/mctp/mctp_2.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/mctp/mctp_2.4.bb')
-rw-r--r--meta-networking/recipes-support/mctp/mctp_2.4.bb45
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 @@
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 = "8b019a3e4d335c7d31099762762dfee2e4705d37"
9
10SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https;tag=v${PV}"
11
12
13inherit meson pkgconfig systemd
14
15EXTRA_OEMESON = " \
16 -Dtests=false \
17"
18
19PACKAGECONFIG ??= " \
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.
25PACKAGECONFIG[systemd] = ",,systemd,libsystemd"
26SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target"
27SYSTEMD_AUTO_ENABLE:${PN} = "enable"
28
29do_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
42FILES:${PN} += " \
43 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \
44 '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \
45"