2 # Copyright (C) 2011-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 http
://www.netfilter.org
/projects
/libmnl
/files \
17 ftp
://ftp.netfilter.org
/pub
/libmnl
18 PKG_MD5SUM
:=e936236bb57a2375afa4e70e75dc3ba9
20 PKG_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
25 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=Minimalistic user-space library for Netlink
31 URL
:=http
://www.netfilter.org
/projects
/libmnl
/
34 define Package
/libmnl
/description
35 libmnl is a minimalistic user-space library oriented to Netlink developers.
36 There are a lot of common tasks in parsing
, validating
, constructing of
37 both the Netlink header and TLVs that are repetitive and easy to
get wrong.
38 This library aims to provide simple helpers that allows you to re-use code
39 and to avoid re-inventing the wheel. The main features of this library are
:
41 * Small
: the shared library requires around
30KB for an x86-based computer.
43 * Simple
: this library avoids complexity and elaborated abstractions that
44 tend to hide Netlink details.
46 * Easy to use
: the library simplifies the work for Netlink-wise developers.
47 It provides functions to make socket handling
, message building
, validating
,
48 parsing and sequence tracking
, easier.
50 * Easy to re-use
: you can use the library to build your own abstraction layer
51 on top of this library.
53 * Decoupling
: the interdependency of the main bricks that compose the library
54 is reduced
, i.e. the library provides many helpers
, but the programmer is not
62 define Build
/InstallDev
63 $(INSTALL_DIR
) $(1)/usr
/include
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libmnl
$(1)/usr
/include/
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmnl.
{a
,so
*} $(1)/usr
/lib
/
67 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libmnl.
pc $(1)/usr
/lib
/pkgconfig
/
71 define Package
/libmnl
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmnl.so.
* $(1)/usr
/lib
/
76 $(eval
$(call BuildPackage
,libmnl
))