blob: ad8438901332d7abc5cd0336ce0502136b432399 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Library for controlling team network device"
2HOMEPAGE = "http://www.libteam.org/"
3SECTION = "libs/network"
4
Andrew Geissler9aee5002022-03-30 16:27:02 +00005LICENSE = "LGPL-2.1-only"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
7
8DEPENDS = "libnl libdaemon jansson"
9
Andrew Geissler595f6302022-01-24 19:11:47 +000010SRC_URI = "git://github.com/jpirko/libteam;branch=master;protocol=https \
Andrew Geissler82c905d2020-04-13 13:39:40 -050011 file://0001-include-sys-select.h-for-fd_set-definition.patch \
12 file://0002-teamd-Re-adjust-include-header-order.patch \
13 file://0001-team_basic_test.py-disable-RedHat-specific-test.patch \
Andrew Geissler595f6302022-01-24 19:11:47 +000014 file://0001-team_basic_test.py-switch-to-python3.patch \
15 file://0001-team_basic_test.py-check-the-return-value.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050016 file://run-ptest \
17 "
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050018SRCREV = "3ee12c6d569977cf1cd30d0da77807a07aa77158"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019
20S = "${WORKDIR}/git"
21
22inherit autotools pkgconfig ptest
23
Patrick Williams213cb262021-08-07 19:21:33 -050024FILES:${PN} = "${libdir}/libteam${SOLIBS} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050025"
26
27PACKAGES += "${PN}-dctl ${PN}-utils"
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN}-dctl = "${libdir}/libteamdctl${SOLIBS} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050029"
Patrick Williams213cb262021-08-07 19:21:33 -050030FILES:${PN}-utils = "${bindir}/bond2team \
Andrew Geissler82c905d2020-04-13 13:39:40 -050031 ${bindir}/teamd \
32 ${bindir}/teamdctl \
33 ${bindir}/teamnl \
34"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036RDEPENDS:${PN}-utils = "bash"
37RDEPENDS:${PN}-ptest = "python3-core"
Andrew Geissler82c905d2020-04-13 13:39:40 -050038
39do_install_ptest() {
40 install ${S}/scripts/team_basic_test.py ${D}${PTEST_PATH}/
41}