blob: 023cea90395a18d93aed39d853915b66ab3c3623 [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 \
Patrick Williams92b42cb2022-09-03 06:53:57 -050016 file://0001-teamd-Include-missing-headers-for-strrchr-and-memcmp.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050017 file://run-ptest \
18 "
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050019SRCREV = "3ee12c6d569977cf1cd30d0da77807a07aa77158"
Andrew Geissler82c905d2020-04-13 13:39:40 -050020
21S = "${WORKDIR}/git"
22
23inherit autotools pkgconfig ptest
24
Patrick Williams213cb262021-08-07 19:21:33 -050025FILES:${PN} = "${libdir}/libteam${SOLIBS} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050026"
27
28PACKAGES += "${PN}-dctl ${PN}-utils"
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN}-dctl = "${libdir}/libteamdctl${SOLIBS} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050030"
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:${PN}-utils = "${bindir}/bond2team \
Andrew Geissler82c905d2020-04-13 13:39:40 -050032 ${bindir}/teamd \
33 ${bindir}/teamdctl \
34 ${bindir}/teamnl \
35"
36
Patrick Williams213cb262021-08-07 19:21:33 -050037RDEPENDS:${PN}-utils = "bash"
38RDEPENDS:${PN}-ptest = "python3-core"
Andrew Geissler82c905d2020-04-13 13:39:40 -050039
40do_install_ptest() {
41 install ${S}/scripts/team_basic_test.py ${D}${PTEST_PATH}/
42}