blob: db9d93e8cb372224d170aa836888758a2a786e37 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "A library for applications dealing with netlink sockets"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "The libnl suite is a collection of libraries providing \
3APIs to netlink protocol based Linux kernel interfaces. libnl is the core \
4library implementing the fundamentals required to use the netlink protocol \
5such as socket handling, message construction and parsing, and sending \
6and receiving of data."
Brad Bishop316dfdd2018-06-25 12:45:53 -04007HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
8SECTION = "libs/network"
9
10PE = "1"
11
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000012LICENSE = "LGPL-2.1-only"
Brad Bishop316dfdd2018-06-25 12:45:53 -040013LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
14
15DEPENDS = "flex-native bison-native"
16
Andrew Geissler87f5cff2022-09-30 13:13:31 -050017SRC_URI = "${GITHUB_BASE_URI}/download/${BPN}${@d.getVar('PV').replace('.','_')}/${BP}.tar.gz \
Andrew Geissler90fd73c2021-03-05 15:25:55 -060018 file://run-ptest \
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050019 "
Andrew Geissler90fd73c2021-03-05 15:25:55 -060020
Patrick Williams169d7bc2024-01-05 11:33:25 -060021SRC_URI[sha256sum] = "aed507004d728a5cf11eab48ca4bf9e6e1874444e33939b9d3dfed25018ee9bb"
Brad Bishop316dfdd2018-06-25 12:45:53 -040022
Andrew Geissler87f5cff2022-09-30 13:13:31 -050023GITHUB_BASE_URI = "https://github.com/thom311/${BPN}/releases"
24UPSTREAM_CHECK_REGEX = "releases/tag/libnl(?P<pver>.+)"
Andrew Geissler90fd73c2021-03-05 15:25:55 -060025
Andrew Geissler87f5cff2022-09-30 13:13:31 -050026inherit autotools pkgconfig ptest github-releases
Brad Bishop316dfdd2018-06-25 12:45:53 -040027
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN} = "${libdir}/libnl-3.so.* \
Brad Bishop316dfdd2018-06-25 12:45:53 -040029 ${libdir}/libnl.so.* \
30 ${sysconfdir}"
Patrick Williams213cb262021-08-07 19:21:33 -050031RREPLACES:${PN} = "libnl2"
32RCONFLICTS:${PN} = "libnl2"
Andrew Geissler90fd73c2021-03-05 15:25:55 -060033
Patrick Williams213cb262021-08-07 19:21:33 -050034FILES:${PN}-dev += "${libdir}/libnl/cli/*/*.la"
35FILES:${PN}-staticdev += "${libdir}/libnl/cli/*/*.a"
Brad Bishop316dfdd2018-06-25 12:45:53 -040036
37PACKAGES += "${PN}-cli ${PN}-genl ${PN}-idiag ${PN}-nf ${PN}-route ${PN}-xfrm"
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN}-cli = "${libdir}/libnl-cli-3.so.* \
Brad Bishop316dfdd2018-06-25 12:45:53 -040039 ${libdir}/libnl/cli/*/*.so \
40 ${bindir}/genl-ctrl-list \
41 ${bindir}/idiag-socket-details \
42 ${bindir}/nf-* \
43 ${bindir}/nl-*"
Patrick Williams213cb262021-08-07 19:21:33 -050044FILES:${PN}-genl = "${libdir}/libnl-genl-3.so.* \
Brad Bishop316dfdd2018-06-25 12:45:53 -040045 ${libdir}/libnl-genl.so.*"
Patrick Williams213cb262021-08-07 19:21:33 -050046FILES:${PN}-idiag = "${libdir}/libnl-idiag-3.so.*"
47FILES:${PN}-nf = "${libdir}/libnl-nf-3.so.*"
48FILES:${PN}-route = "${libdir}/libnl-route-3.so.*"
49FILES:${PN}-xfrm = "${libdir}/libnl-xfrm-3.so.*"
50RREPLACES:${PN}-genl = "libnl-genl2"
51RCONFLICTS:${PN}-genl = "libnl-genl2"
Andrew Geissler475cb722020-07-10 16:00:51 -050052
Andrew Geissler90fd73c2021-03-05 15:25:55 -060053DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'libcheck', '', d)}"
Patrick Williamse760df82023-05-26 11:10:49 -050054RRECOMMENDS:${PN}-ptest += "kernel-module-dummy kernel-module-bonding"
Andrew Geissler90fd73c2021-03-05 15:25:55 -060055
56do_compile_ptest() {
Patrick Williamse760df82023-05-26 11:10:49 -050057 oe_runmake ./tests/check-all
Andrew Geissler90fd73c2021-03-05 15:25:55 -060058}
59
Patrick Williamse760df82023-05-26 11:10:49 -050060do_install_ptest() {
61 ./libtool install install ./tests/check-all ${D}${PTEST_PATH}/
Andrew Geissler90fd73c2021-03-05 15:25:55 -060062}
63
Andrew Geissler475cb722020-07-10 16:00:51 -050064BBCLASSEXTEND = "native nativesdk"