2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=libnfnetlink
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.netfilter.org
/pub
/libnfnetlink
/
17 PKG_MD5SUM
:=3fe19dc4b05ba7e7e6216123097c2819
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libnfnetlink
25 TITLE
:=A low-level library for netfilter related kernel
/userspace communication
26 URL
:=http
://netfilter.org
/projects
/libnfnetlink
/
29 define Package
/libnfnetlink
/description
30 libnfnetlink is is the low-level library for netfilter related kernel
/userspace communication.
31 It provides a generic messaging infrastructure for in-kernel netfilter subsystems
32 (such
as nfnetlink_log
, nfnetlink_queue
, nfnetlink_conntrack
) and their respective users
33 and
/or management tools in userspace.
36 TARGET_CFLAGS
+= $(FPIC
)
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 CFLAGS
="$(TARGET_CFLAGS)" \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
49 define Build
/InstallDev
50 $(INSTALL_DIR
) $(1)/usr
/include/libnfnetlink
52 $(PKG_INSTALL_DIR
)/usr
/include/libnfnetlink
/{libnfnetlink
,linux_nfnetlink
,linux_nfnetlink_compat
}.h \
53 $(1)/usr
/include/libnfnetlink
/
54 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(PKG_INSTALL_DIR
)/usr
/lib
/libnfnetlink.
{a
,so
*} \
58 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
60 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnfnetlink.
pc \
61 $(1)/usr
/lib
/pkgconfig
/
64 define Package
/libnfnetlink
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(PKG_INSTALL_DIR
)/usr
/lib
/libnfnetlink.so.
* \
71 $(eval
$(call BuildPackage
,libnfnetlink
))