mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
53c2874e07
Changes:
Duncan Roe (5):
nlmsg: Fix a missing doxygen section trailer
build: doc: "make" builds & installs a full set of man pages
build: doc: get rid of the need for manual updating of Makefile
build: If doxygen is not available, be sure to report "doxygen: no" to ./configure
src: doc: Fix messed-up Netlink message batch diagram
Fernando Fernandez Mancera (1):
src: fix doxygen function documentation
Florian Westphal (1):
libmnl: zero attribute padding
Guillaume Nault (1):
callback: mark cb_ctl_array 'const' in mnl_cb_run2()
Kylie McClain (1):
examples: nfct-daemon: Fix test building on musl libc
Laura Garcia Liebana (4):
examples: add arp cache dump example
examples: fix neigh max attributes
examples: fix print line format
examples: reduce LOCs during neigh attributes validation
Pablo Neira Ayuso (3):
doxygen: remove EXPORT_SYMBOL from the output
include: add MNL_SOCKET_DUMP_SIZE definition
build: libmnl 1.0.5 release
Petr Vorel (1):
examples: Add rtnl-addr-add.c
Stephen Hemminger (1):
examples: rtnl-addr-dump: fix typo
igo95862 (1):
doxygen: Fixed link to the git source tree on the website.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit c3b7389339
)
79 lines
2.4 KiB
Makefile
79 lines
2.4 KiB
Makefile
#
|
|
# Copyright (C) 2011-2012 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libmnl
|
|
PKG_VERSION:=1.0.5
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:= \
|
|
http://www.netfilter.org/projects/libmnl/files \
|
|
ftp://ftp.netfilter.org/pub/libmnl
|
|
PKG_HASH:=274b9b919ef3152bfb3da3a13c950dd60d6e2bcd54230ffeca298d03b40d0525
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
PKG_LICENSE:=LGPL-2.1+
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libmnl
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Minimalistic user-space library for Netlink
|
|
URL:=http://www.netfilter.org/projects/libmnl/
|
|
ABI_VERSION:=0
|
|
endef
|
|
|
|
define Package/libmnl/description
|
|
libmnl is a minimalistic user-space library oriented to Netlink developers.
|
|
There are a lot of common tasks in parsing, validating, constructing of
|
|
both the Netlink header and TLVs that are repetitive and easy to get wrong.
|
|
This library aims to provide simple helpers that allows you to re-use code
|
|
and to avoid re-inventing the wheel. The main features of this library are:
|
|
.
|
|
* Small: the shared library requires around 30KB for an x86-based computer.
|
|
.
|
|
* Simple: this library avoids complexity and elaborated abstractions that
|
|
tend to hide Netlink details.
|
|
.
|
|
* Easy to use: the library simplifies the work for Netlink-wise developers.
|
|
It provides functions to make socket handling, message building, validating,
|
|
parsing and sequence tracking, easier.
|
|
.
|
|
* Easy to re-use: you can use the library to build your own abstraction layer
|
|
on top of this library.
|
|
.
|
|
* Decoupling: the interdependency of the main bricks that compose the library
|
|
is reduced, i.e. the library provides many helpers, but the programmer is not
|
|
forced to use them.
|
|
endef
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--enable-shared \
|
|
--enable-static \
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libmnl $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmnl.{a,so*} $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmnl.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libmnl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmnl.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libmnl))
|