blob: 28b2e5733eceb8a5d2fc4cdb78a98402023a2c11 [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
Andrew Geissler220dafd2023-10-04 10:18:08 -050021SRC_URI[sha256sum] = "bb726c6d7a08b121978d73ff98425bf313fa26a27a331d465e4f1d7ec5b838c6"
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"