openwrt/package/libs/libnl/Makefile

149 lines
3.6 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2006-2013 OpenWrt.org
2007-11-16 03:10:33 +00:00
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libnl
libnl: update to 3.10.0 Changes: fa05d58e (tag: libnl3_10_0) libnl-3.10.0 release 490ffa07 python: fix flake8 warnings 6fc66dd8 doc: workaround LINK_DOC with empty libnl.dict 914812a9 lib: avoid overflow in computation of s_seq_next 5248e1a4 all: fix and enable "-Wsign-compare" warning 9451842e build: use AC_USE_SYSTEM_EXTENSIONS instead of defining _GNU_SOURCE 20664e1e build: move "-DPGKLIBDIR" and rename 81cab7da build: cleanup defining SYSCONFDIR on command line cf47571c build: drop unnecessary "-Wno-missing-field-initializers" from default CFLAGS 131008f7 build: add "-Wvla" and "-Wdeclaration-after-statement" to default CFLAGS 7e05b622 lib: add internal _nla_len() helper 32688201 route: treat routes with via nexthops as universe scoped as well c36c7faa format: reformat "include/base/nl-base-utils.h" 49f78229 tests: add a very basic test for route cache 2ebbc034 tests: add NLTstSelectRoute test helper d784f2cb tests: set NLTST_IN_CI for not skipping tests accidentally dcb9e2ef route: add missing priority to route_keygen() debug print d44505ed tests: add helper to detect availablility of iproute2 774863b4 tests: add helper functions for tests 45a10f96 route: move "struct rtnl_nexthop" to "nl-priv-dynamic-route" 153f213b build: fix "check-progs" target in "Makefile.am" a1e0b8b2 github: print test-suite.log in case of test failure 3e080631 route: expose nexthop id attribute 401c2488 tests: fix _nltst_object_to_string() to print one line only 529c2ab8 route: drop unused fields from "struct rtnl_route" 71e59e14 build: separate build tests from unit tests 8539b7d3 format: reformat "tests/nl-test-util.h" file 6db85366 route: merge branch 'bisdn:jogo_route_nh_cmp' 861fb809 route: use the new helper function for comparing nexthops 8cf29d7b nexthop: add a identical helper function 7cc72d19 utils: reserve the nl_has_capabiliy numbers for releases 3.10 - 3.12 30da5107 github,clang-format: update fedora version for clang-format 2301992b route: fix IPv6 ecmp route deleted nexthop matching 72e4d73f cache: merge branch 'ievenbach:aurora/cache-mgr-cb' 3381acef cache: use cleanup attribute in nl_cache_mngr_alloc_ex() 32cb9f39 cache: cleanup nl_cache_mngr_alloc_ex() 1dbdc30a cache: allow to allocate cache manager with custom refill socket 18b74e08 tests: test compiling all public headers with C++ compiler 691202bf tests: don't use $COMPILE for building header tests 15d90cbf include: add _NL_NO_WARN_DEPRECATED_HEADER for suppressing warning about deprecated headers 8a5f671a tests: avoid "-Wunused-parameter" warning in build headers test db1a9d7d route: avoid compiler warning about calloc() arguments in rtnl_netem_set_delay_distribution() 3a43faa1 cache: fix new object in callback v2 on updated objects 46cae1bf socket: fix ubsan complaint about incorrect left-shift in generate_local_port() 96ddcd99 all: merge branch 'th/nl-debug' 13ab0122 github: test with --enable-debug=no configure option 264b244e utils: always define nl_debug_dp dbe21b8d core: always define statements for NL_DBG() e592dd89 build: always define NL_DEBUG 58734974 all: use defines for attributes 0c16c9cb route/bison: include "nl-default.h" in lex/yacc files 19d48b0f route: add support for layer 3 filtering on bridges 3646398d route: merge branch 'Cordell-O:main' e21278ed tests: add test for bridge vlan attributes. 4f324f73 route: add support for vlan filtering on bridge ports. bf071f2b route: Add support to set ageing time for dynamic bridge table entries b76c3a5d tests: add unit test for `nl_addr_parse("default", AF_INET6, &addr6)` 8693347f lib/xfrm: add missing #include <time.h> Small size increase: 955 bin/packages/mips_24kc-old/base/libnl200_3.9.0-r1_mips_24kc.ipk 11157 bin/packages/mips_24kc-old/base/libnl-cli200_3.9.0-r1_mips_24kc.ipk 34896 bin/packages/mips_24kc-old/base/libnl-core200_3.9.0-r1_mips_24kc.ipk 7698 bin/packages/mips_24kc-old/base/libnl-genl200_3.9.0-r1_mips_24kc.ipk 25400 bin/packages/mips_24kc-old/base/libnl-nf200_3.9.0-r1_mips_24kc.ipk 148366 bin/packages/mips_24kc-old/base/libnl-route200_3.9.0-r1_mips_24kc.ipk 956 bin/packages/mips_24kc-new/base/libnl200_3.10.0-r1_mips_24kc.ipk 11154 bin/packages/mips_24kc-new/base/libnl-cli200_3.10.0-r1_mips_24kc.ipk 34965 bin/packages/mips_24kc-new/base/libnl-core200_3.10.0-r1_mips_24kc.ipk 7699 bin/packages/mips_24kc-new/base/libnl-genl200_3.10.0-r1_mips_24kc.ipk 25385 bin/packages/mips_24kc-new/base/libnl-nf200_3.10.0-r1_mips_24kc.ipk 149852 bin/packages/mips_24kc-new/base/libnl-route200_3.10.0-r1_mips_24kc.ipk Link: https://github.com/openwrt/openwrt/pull/16592 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-03 19:47:48 +00:00
PKG_VERSION:=3.10.0
libnl: update to 3.6.0 Remove upstreamed patch: - 100-build-add-Libs.private-field-in-libnl-pkg-config-file.patch cacaa5f libnl-3.6.0 release 855c02f route/mdb: merge branch 'troglobit:mdb-dump-fixes' 930fc11 route/mdb: add support for MAC multicast entries 2d68caf route/mdb: add missing detils and stats dump callbacks d9ed99b nl-monitor: support for setting libnl debug level 4c41e0d nl-monitor: add missing --help to long_opts[] 7e96356 Check validation type against end of enum 4e153bc route/link: add VLAN bridge binding flag b7256d3 github: build unit tests also with "clang" 8111933 route: assert that "rtnl_link_info_ops" refcount does not drop below zero 4f5c846 lib: merge branch 'th/object-clone-fixes' d23fb81 lib: make nl_object_clone() out-of-memory safe 7f7452c route: fix ref counting for l_info_ops and io_clone() 620d024 route: drop unnecessary oo_clone() implementation from netconf 93a02eb netfilter: make log-msg,queue-msg setters robust against ENOMEM 23902d0 xfrm/sa: clone user_offload in xfrm_sa_clone() 29e5092 xfrm/sa: style cleanup xfrm_sa_clone() 14a9ebc utils: add internal _nl_memdup() helper 2e0d7f8 lib: add rtnl_link_info_ops_get() and take lock for rtnl_link_info_ops's io_refcnt e884286 lib: include <netlink-private/utils.h> in <netlink-private/netlink.h> 7d43191 tests: merge branch 'th/tests-netns' a7bbdab tests: add unit test for nl_object_clone() and nl_object_diff() fdb0121 tests: add new "netns" test suite 9102872 tests: add fixture/teardown for tests to run in separate netns 9a42798 tests: cleanup creating test suites 1fc3e07 tests: refactor tests and add n-test-util helper library 7a3d6e2 netlink: add _NL_N_ELEMENTS() macro 3da4f7d netlink: add _nl_streq()/_nl_streq0() helper 1ad8555 netlink: add _nl_auto_nl_socket cleanup macro c8a5729 lib: add _nl_close() helper 80868e6 clang-format: add ".clang-format" from linux kernel 2782ed3 github: build tests with "-std=gnu11" af59b9a github: split tests in separate steps c8f7902 build: add "check-progs" make target to build unit tests 23b4d33 route/cls: add TCA_FLOWER_KEY_VLAN_ETH_TYPE to "flower_policy" policy 1f8dc89 route/cls: return -NLE_INVAL in case rtnl_tc_data_peek() fails ef5f3eb route/cls: merge branch 'westermo:cls-flower' c385c84 route/cls: no need to copy simple fields in flower_clone() 79217d8 route/cls: make output pointers in rtnl_flower_get_{src,dst}_mac() optional 64e0836 route/cls: adjust whitspace/indentation 5ac9ce3 route/cls: use SPDX-License-Identifier 1a1c4e5 route/cls: reorder fields in "struct rtnl_flower" and adjust indentation ef46de1 route/cls: add flower classifier f0aad20 route: merge branch 'pugo:master' d0cfecc route: make argument of rtnl_link_can_set_{bittiming,data_bittiming}() const 6a92268 route: add rtnl_link_can_set_data_bittiming_const() 841553b route: drop bitrate,sample-point getters/setters from can link 37998f7 route: rename rtnl_link_can_get_data_bt_const() to rtnl_link_can_get_data_bittiming_const() 96d3a6b route: fix adding rtnl_link_can_* symbols to symbol file 881e329 route: fix indentation 37c10ef route/link: add CAN FD support d56bf73 route/mdb: merge branch 'rubensfig:mdb' e0b2406 route/mdb: drop setting ifindex in mdb_clone() d78a6eb route/mdb: minor cleanup in "mdb.c" 57a6d51 route/mdb: drop extra MDB attributes and rework mdb_compare() 0b44562 route/mdb: hide rtnl_mdb_entry_alloc() from public API 1c65ff7 route/mdb: reorder fields in "rtnl_mdb_entry" for tighther packing 1ac5403 route/mdb: use nl_list_for_each_entry_safe() for destroying list in mdb_free_data() 92035e2 route/mdb: cleanup mdb.h header 6237621 build: sort file names in Makefile.am 0ec6c6c mdb: support bridge multicast database notification c980034 route/cls: merge branch 'westermo:classifier-api-extension' a694c33 route/cls: rename rtnl_cls_get{,_by_prio}() API to rtnl_cls_find_by{handle,prio}() 88a5138 route/cls: allow fetching of classifiers from cache 90577b5 route: merge branch 'TummyFish:master' 299f61a license: use SPDX license identifiers and drop license comments 05a540d ip6vti: Add fwmark API 41e4365 ip6gre: Add fwmark API ebc7df3 sit: Add fwmark API 8e1da8e ipip: Add fwmark API bda19be ip6_tnl: Add fwmark API cdc6c0f ipvti: Add fwmark API 2995710 ipgre: Add fwmark API d9dc6c2 ip6vti: Add IPv6 VTI support be86170 license: use SPDX license identifiers and drop license comments 919d9c6 route: merge branch 'westermo:fib-lookup' 1ff9b38 route/route: don't report failure when we receive a route in rtnl_route_lookup() 53bc27e route/route: support FIB lookups using rtnl ed76b9a build: sort files in Makefile.am 46b22c1 route/link: merge branch 'westermo:team-support' 586a6b6 build: fix new symbols in "libnl-route-3.sym" 831f125 route/link: add support for team device 6c59580 route/link: Move LINK_ATTR_IFNAME to a proper location f77cd25 route/netconf: full API export f59f443 build: add Libs.private field in libnl pkg-config file b3333e0 route/qdisc: allow fetching qdiscs by their kind 9a39188 netlink: merge branch 'michael-dev:feature/nflog-vlan-v3' a93fc5f nflog: add recent missing symbols to "libnl-nf-3.sym" 7b4df53 nflog: add missing symbols to "libnl-nf-3.sym" 8266436 nflog:add conntrack flag and enable flags for nflog 246904d nflog: add CT support 59fc1d7 nflog: add mac_header support c268c48 nflog: add vlan attribute 2548468 refresh linux/netfilter/nfnetlink_log.h with linux 5.4 4edffbd route/link: Add IPv6 GRE support 5d69587 route: add global sectin in "libnl-route-3.sym" d0cf3a9 neigh: support to add fdb entry 3bf0a9c cls:u32: fix u32_clone() function 3147d86 route:tc: fix rtnl_tc_clone() calling to_clone() and add comment c027e54 route:cls: fix dangling pointers in to_clone() implementations 47c04fb route:act: drop unnecessary implementations for to_clone() 79f7c9d tests: add test for cloning cls:u32 object b1caff8 github: run unit tests under valgrind 38b3be3 tests: cleanup tests and avoid leaks c2b94b9 lib: add more _nl_auto* cleanup macros 1f05e5a tests: replace libcheck's fail_if() macro by ck_assert*() 6341d89 log: fix typo in dumping msg bfee88b route: fix memory leak of l_info_ops in link_msg_parser() 431ba83 route: merge branch 'qbdwlr:mplsPR' cc680d4 route: add accessors for setting/getting ENCAP_MPLS attributes efe8aad route: remove incorrect nl_addr_valid() from rtnl_route_nh_set_newdst(), etc. 0688bc6 netfilter/ct: fix use of reply/orig for conntrack requests 5d92516 route: don't use internal bit mask constants in NLA_PUT in can_put_attrs() 6fe9418 lib: fix descriptions for nl_cache_pickup()/nl_cache_pickup_checkdup() d0d91c7 route: merge branch 't0mmmy90:check-if-nh-exists-while-updating-ipv6-multipath-route' 28a652b route: fix duplicate check for next hop for IPv6 multipath routes 03bfd2f route: check if nh exists while updating route 92c9237 ci: add github-actions 3d1fb00 tests/check-addr: replace deprecated fail_if() macro from libcheck with ck_assert_msg() d9cad53 xfrm: fix naming consistency in xfrmnl_sp_get_curlifetime() c0e82db cli: Add C++ linkage support 000a3bd yyerror: update to POSIX standard f865a99 xfrm: merge branch 'spellingmistake:master' 0306ae2 xfrm: fix libnl-xfrm-3.sym linker versioning 8950194 xfrm: ensure minlen in policy for XFRMA_OFFLOAD_DEV c8f33a4 xfrm: Add support for xfrm user offloading b6cc13d Supporting Hardware offload capability for MACsec 39944c6 route/link: check calloc() return value 12cc0aa zero stack allocated memory in xfrmnl_build_sa_delete_request 5f39502 merge branch 'bengal/coverity' 26f342d route/qdisc: handle error of calloc() d1a151e route/qdisc: fix memory leak in netem.c aa092d1 route/link: fix copy-paste error in geneve.c 30552e8 route/cls: fix cgroup's clone() function 764c30a route: let route/link join RTNLGRP_IPV6_IFINFO mcast group b24e833 doc: update link to mscgen-filter 0b5d17d addr: merge branch 'lcrestez-dn:dadfailed' 30924e7 tests: Add test for rtnl_addr_flags2str 5c05c75 addr: Add address flag `dadfailed` 2abeec8 xfrm: remove superfluous xfrm_userpolicy_id from dump request 5611487 lib/trivial: whitespace ab015e1 lib: merge branch 'th/object-identical-fix' 36b0894 lib: allow to compare incomplete objects in nl_object_identical() 5020077 lib: let nl_object_identical() declare the same object as identical 406ebc8 lib: fix using right compare mask in nl_object_diff64() 8637c70 lib/trivial fix indentation 4be6062 route/link: avoid cloning link policy in link_msg_parser() ba3c51c route/link: fix link_msg_parser() for using the af_ops of the link family f9d0181 lib: use proper int type for id attributes in nl_object_identical() 68b3431 lib: fix documentation of nl_cache_dump_filter to have @params optional 2375cde lib: fix spelling errors in "netlink/handlers.h" 3faf26c gitignore: fix ignoring check-direct build artifacts 47fb1c0 xfrm: remove superfluous xfrm_usersa_id from dump request 846d288 travis: install "check" in travis d64a0ec route: convert non-leading tabs to spaces in "include/netlink/route/link.h" aaefd92 route: add test for valid content of map_stat_id_from_IPSTATS_MIB_v2 array bab9e77 route/link: add RTNL_LINK_REASM_OVERLAPS stat bae11ec tests: add "check-direct" test 2d50b04 route: add "netlink-private/route/utils.h" header 9a52b3d gitignore: merge all gitignore files in top level directory 4c5f2d6 merge branch 'th/license-comment-cleanup' 2d3e690 license: update "doc/COPYING" license text 1389188 license: add SPDX license identifer to "configure.ac" files 503aa5e license: fix and add SPDX license identifiers and drop license comments 4333aef license: cleanup copyright comments 956635b license: fix SPDX license identifier for nl-auto.h 5614b4c lib: merge branch 'th/cleanup-errout' 17e09aa rtnl/route: use cleanup attribute in "lib/route/link.c" b50be8f rtnl/route: use cleanup attribute in "lib/route/route_obj.c" fca338b rtnl/route: fix NLE_NOMEM handling in parse_multipath() 2957d8f rtnl/link: fix leaking rtnl_link_af_ops in link_msg_parser() 77b4f68 rtnl/route: only consider negative error codes as error 6870ece lib: cleanup nla_parse() to return early on error a858a0b lib: use _nl_strncpy*() instead of plain strncpy() 018c694 lib: cleanup _nl_strncpy_assert() e97b990 lib: rename _nl_strncpy() to _nl_strncpy_assert() 5ffbc6f lib: add _NL_RETURN_*() helper macros abb7391 lib: add "include/netlink-private/nl-auto.h" header ecd15bc lib: add _nl_assert_not_reached() 9cc38dc lib/route: adjust coding style 01ea9a6 route/link: Check for null pointer in macvlan Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-07-02 22:37:57 +00:00
PKG_RELEASE:=1
2007-11-16 03:10:33 +00:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/thom311/libnl/releases/download/libnl$(subst .,_,$(PKG_VERSION))
libnl: update to 3.10.0 Changes: fa05d58e (tag: libnl3_10_0) libnl-3.10.0 release 490ffa07 python: fix flake8 warnings 6fc66dd8 doc: workaround LINK_DOC with empty libnl.dict 914812a9 lib: avoid overflow in computation of s_seq_next 5248e1a4 all: fix and enable "-Wsign-compare" warning 9451842e build: use AC_USE_SYSTEM_EXTENSIONS instead of defining _GNU_SOURCE 20664e1e build: move "-DPGKLIBDIR" and rename 81cab7da build: cleanup defining SYSCONFDIR on command line cf47571c build: drop unnecessary "-Wno-missing-field-initializers" from default CFLAGS 131008f7 build: add "-Wvla" and "-Wdeclaration-after-statement" to default CFLAGS 7e05b622 lib: add internal _nla_len() helper 32688201 route: treat routes with via nexthops as universe scoped as well c36c7faa format: reformat "include/base/nl-base-utils.h" 49f78229 tests: add a very basic test for route cache 2ebbc034 tests: add NLTstSelectRoute test helper d784f2cb tests: set NLTST_IN_CI for not skipping tests accidentally dcb9e2ef route: add missing priority to route_keygen() debug print d44505ed tests: add helper to detect availablility of iproute2 774863b4 tests: add helper functions for tests 45a10f96 route: move "struct rtnl_nexthop" to "nl-priv-dynamic-route" 153f213b build: fix "check-progs" target in "Makefile.am" a1e0b8b2 github: print test-suite.log in case of test failure 3e080631 route: expose nexthop id attribute 401c2488 tests: fix _nltst_object_to_string() to print one line only 529c2ab8 route: drop unused fields from "struct rtnl_route" 71e59e14 build: separate build tests from unit tests 8539b7d3 format: reformat "tests/nl-test-util.h" file 6db85366 route: merge branch 'bisdn:jogo_route_nh_cmp' 861fb809 route: use the new helper function for comparing nexthops 8cf29d7b nexthop: add a identical helper function 7cc72d19 utils: reserve the nl_has_capabiliy numbers for releases 3.10 - 3.12 30da5107 github,clang-format: update fedora version for clang-format 2301992b route: fix IPv6 ecmp route deleted nexthop matching 72e4d73f cache: merge branch 'ievenbach:aurora/cache-mgr-cb' 3381acef cache: use cleanup attribute in nl_cache_mngr_alloc_ex() 32cb9f39 cache: cleanup nl_cache_mngr_alloc_ex() 1dbdc30a cache: allow to allocate cache manager with custom refill socket 18b74e08 tests: test compiling all public headers with C++ compiler 691202bf tests: don't use $COMPILE for building header tests 15d90cbf include: add _NL_NO_WARN_DEPRECATED_HEADER for suppressing warning about deprecated headers 8a5f671a tests: avoid "-Wunused-parameter" warning in build headers test db1a9d7d route: avoid compiler warning about calloc() arguments in rtnl_netem_set_delay_distribution() 3a43faa1 cache: fix new object in callback v2 on updated objects 46cae1bf socket: fix ubsan complaint about incorrect left-shift in generate_local_port() 96ddcd99 all: merge branch 'th/nl-debug' 13ab0122 github: test with --enable-debug=no configure option 264b244e utils: always define nl_debug_dp dbe21b8d core: always define statements for NL_DBG() e592dd89 build: always define NL_DEBUG 58734974 all: use defines for attributes 0c16c9cb route/bison: include "nl-default.h" in lex/yacc files 19d48b0f route: add support for layer 3 filtering on bridges 3646398d route: merge branch 'Cordell-O:main' e21278ed tests: add test for bridge vlan attributes. 4f324f73 route: add support for vlan filtering on bridge ports. bf071f2b route: Add support to set ageing time for dynamic bridge table entries b76c3a5d tests: add unit test for `nl_addr_parse("default", AF_INET6, &addr6)` 8693347f lib/xfrm: add missing #include <time.h> Small size increase: 955 bin/packages/mips_24kc-old/base/libnl200_3.9.0-r1_mips_24kc.ipk 11157 bin/packages/mips_24kc-old/base/libnl-cli200_3.9.0-r1_mips_24kc.ipk 34896 bin/packages/mips_24kc-old/base/libnl-core200_3.9.0-r1_mips_24kc.ipk 7698 bin/packages/mips_24kc-old/base/libnl-genl200_3.9.0-r1_mips_24kc.ipk 25400 bin/packages/mips_24kc-old/base/libnl-nf200_3.9.0-r1_mips_24kc.ipk 148366 bin/packages/mips_24kc-old/base/libnl-route200_3.9.0-r1_mips_24kc.ipk 956 bin/packages/mips_24kc-new/base/libnl200_3.10.0-r1_mips_24kc.ipk 11154 bin/packages/mips_24kc-new/base/libnl-cli200_3.10.0-r1_mips_24kc.ipk 34965 bin/packages/mips_24kc-new/base/libnl-core200_3.10.0-r1_mips_24kc.ipk 7699 bin/packages/mips_24kc-new/base/libnl-genl200_3.10.0-r1_mips_24kc.ipk 25385 bin/packages/mips_24kc-new/base/libnl-nf200_3.10.0-r1_mips_24kc.ipk 149852 bin/packages/mips_24kc-new/base/libnl-route200_3.10.0-r1_mips_24kc.ipk Link: https://github.com/openwrt/openwrt/pull/16592 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-03 19:47:48 +00:00
PKG_HASH:=49b3e2235fdb58f5910bbb3ed0de8143b71ffc220571540502eb6c2471f204f5
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:libnl_project:libnl
2007-11-16 03:10:33 +00:00
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_BUILD_FLAGS:=gc-sections
2007-11-16 03:10:33 +00:00
include $(INCLUDE_DIR)/package.mk
define Package/libnl/default
SECTION:=libs
CATEGORY:=Libraries
URL:=http://www.infradead.org/~tgr/libnl/
ABI_VERSION:=200
2007-11-16 03:10:33 +00:00
endef
define Package/libnl-core
$(call Package/libnl/default)
TITLE:=Core Netlink Library
DEPENDS:=+libpthread
endef
define Package/libnl-genl
$(call Package/libnl/default)
TITLE:=Generic Netlink Library
DEPENDS:=+libnl-core
endef
define Package/libnl-route
$(call Package/libnl/default)
TITLE:=Routing Netlink Library
DEPENDS:=+libnl-core
endef
define Package/libnl-nf
$(call Package/libnl/default)
TITLE:=Netfilter Netlink Library
DEPENDS:=+libnl-route
endef
define Package/libnl-cli
$(call Package/libnl/default)
TITLE:=CLI Netlink Library
DEPENDS:=+libnl-genl +libnl-nf
endef
define Package/libnl
$(call Package/libnl/default)
TITLE:=Full Netlink Library
DEPENDS:=+libnl-genl +libnl-route +libnl-nf +libnl-cli
endef
define Package/libnl-core/description
Common code for all netlink libraries
endef
define Package/libnl-genl/description
Generic Netlink Library Functions
endef
define Package/libnl-route/description
Routing Netlink Library Functions
endef
define Package/libnl-nf/description
Netfilter Netlink Library Functions
endef
define Package/libnl-cli/description
CLI Netlink Library Functions
endef
2007-11-16 03:10:33 +00:00
define Package/libnl/description
Socket handling, connection management, sending and receiving of data,
message construction and parsing, object caching system, etc.
2007-11-16 03:10:33 +00:00
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--disable-debug
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/libnl3 $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/libnl3/* $(1)/usr/include/libnl3/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
# Copy symlinks
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-3.so $(1)/usr/lib/libnl.so
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-genl-3.so $(1)/usr/lib/libnl-genl.so
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so $(1)/usr/lib/libnl-nf.so
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so $(1)/usr/lib/libnl-route.so
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-cli-3.so $(1)/usr/lib/libnl-cli.so
endef
2007-11-16 03:10:33 +00:00
define Package/libnl-core/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-3.so.* $(1)/usr/lib/
endef
define Package/libnl-genl/install
2007-11-16 03:10:33 +00:00
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-genl-3.so.* $(1)/usr/lib/
endef
define Package/libnl-route/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so.* $(1)/usr/lib/
endef
define Package/libnl-nf/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so.* $(1)/usr/lib/
endef
define Package/libnl-cli/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-cli-3.so.* $(1)/usr/lib/
endef
define Package/libnl/install
:
endef
2007-11-16 03:10:33 +00:00
$(eval $(call BuildPackage,libnl-core))
$(eval $(call BuildPackage,libnl-genl))
$(eval $(call BuildPackage,libnl-route))
$(eval $(call BuildPackage,libnl-nf))
$(eval $(call BuildPackage,libnl-cli))
2007-11-16 03:10:33 +00:00
$(eval $(call BuildPackage,libnl))