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_HASH:=171f89699f286a5854b72b91d06e8f8e3683064c5901fb09d954a9ab6f551f81
20 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
24 PKG_LICENSE:=LGPL-2.1+
26 include $(INCLUDE_DIR)/package.mk
31 TITLE:=Minimalistic user-space library for Netlink
32 URL:=http://www.netfilter.org/projects/libmnl/
36 define Package/libmnl/description
37 libmnl is a minimalistic user-space library oriented to Netlink developers.
38 There are a lot of common tasks in parsing, validating, constructing of
39 both the Netlink header and TLVs that are repetitive and easy to get wrong.
40 This library aims to provide simple helpers that allows you to re-use code
41 and to avoid re-inventing the wheel. The main features of this library are:
43 * Small: the shared library requires around 30KB for an x86-based computer.
45 * Simple: this library avoids complexity and elaborated abstractions that
46 tend to hide Netlink details.
48 * Easy to use: the library simplifies the work for Netlink-wise developers.
49 It provides functions to make socket handling, message building, validating,
50 parsing and sequence tracking, easier.
52 * Easy to re-use: you can use the library to build your own abstraction layer
53 on top of this library.
55 * Decoupling: the interdependency of the main bricks that compose the library
56 is reduced, i.e. the library provides many helpers, but the programmer is not
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmnl $(1)/usr/include/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmnl.{a,so*} $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmnl.pc $(1)/usr/lib/pkgconfig/
73 define Package/libmnl/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmnl.so.* $(1)/usr/lib/
78 $(eval $(call BuildPackage,libmnl))