@ -18,16 +18,61 @@ PKG_LICENSE:=LGPL-2.1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b n l
d e f i n e P a c k a g e / l i b n l / d e f a u l t
SECTION:= libs
CATEGORY:= Libraries
TITLE:= netlink socket library
DEPENDS:= +libpthread
URL:= http://people.suug.ch/~tgr/libnl/
e n d e f
d e f i n e P a c k a g e / l i b n l - c o r e
$( call Package /libnl /default )
TITLE:= Core Netlink Library
DEPENDS:= +libpthread
e n d e f
d e f i n e P a c k a g e / l i b n l - g e n l
$( call Package /libnl /default )
TITLE:= Generic Netlink Library
DEPENDS:= +libnl-core
e n d e f
d e f i n e P a c k a g e / l i b n l - r o u t e
$( call Package /libnl /default )
TITLE:= Routing Netlink Library
DEPENDS:= +libnl-core
e n d e f
d e f i n e P a c k a g e / l i b n l - n f
$( call Package /libnl /default )
TITLE:= Netfilter Netlink Library
DEPENDS:= +libnl-route
e n d e f
d e f i n e P a c k a g e / l i b n l
$( call Package /libnl /default )
TITLE:= Full Netlink Library
DEPENDS:= +libnl-genl +libnl-route +libnl-nf
e n d e f
d e f i n e P a c k a g e / l i b n l - c o r e / d e s c r i p t i o n
Common code for all netlink libraries
e n d e f
d e f i n e P a c k a g e / l i b n l - g e n l / d e s c r i p t i o n
Generic Netlink Library Functions
e n d e f
d e f i n e P a c k a g e / l i b n l - r o u t e / d e s c r i p t i o n
Routing Netlink Library Functions
e n d e f
d e f i n e P a c k a g e / l i b n l - n f / d e s c r i p t i o n
Netfilter Netlink Library Functions
e n d e f
d e f i n e P a c k a g e / l i b n l / d e s c r i p t i o n
This package contains a library for applications dealing with netlink sockets
Socket handling, connection management, sending and receiving of data,
message construction and parsing, object caching system, etc.
e n d e f
TARGET_CFLAGS += -ffunction-sections $( FPIC)
@ -40,18 +85,48 @@ define Build/Compile
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1)
$( CP) $( PKG_INSTALL_DIR) /* $( 1) /
mkdir -p $( 1) /usr/include/libnl
$( CP) $( PKG_BUILD_DIR) /include/linux $( 1) /usr/include/libnl/
$( INSTALL_DIR) $( 1) /usr/include/libnl $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/include/libnl3/* $( 1) /usr/include/libnl/
$( 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
e n d e f
d e f i n e P a c k a g e / l i b n l / i n s t a l l
d e f i n e P a c k a g e / l i b n l - c o r e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-3.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-3.so $( 1) /usr/lib/libnl.so
e n d e f
d e f i n e P a c k a g e / l i b n l - g e n l / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-route-3.so.* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-genl-3.so.* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-nf-3.so.* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-3.so.* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-genl-3.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-genl-3.so $( 1) /usr/lib/libnl-genl.so
e n d e f
d e f i n e P a c k a g e / l i b n l - r o u t e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-route-3.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-route-3.so $( 1) /usr/lib/libnl-route.so
e n d e f
d e f i n e P a c k a g e / l i b n l - n f / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-nf-3.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libnl-nf-3.so $( 1) /usr/lib/libnl-nf.so
e n d e f
d e f i n e P a c k a g e / l i b n l / i n s t a l l
:
e n d e f
$( eval $ ( call BuildPackage ,libnl -core ) )
$( eval $ ( call BuildPackage ,libnl -genl ) )
$( eval $ ( call BuildPackage ,libnl -route ) )
$( eval $ ( call BuildPackage ,libnl -nf ) )
$( eval $ ( call BuildPackage ,libnl ) )