2 # Copyright (C) 2007 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:=014aa52e39f2b8f296a307ba712ba3c1
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libnfnetlink
29 URL:=http://netfilter.org/projects/libnfnetlink/index.html
32 define Package/libnfnetlink/description
33 libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
34 It provides a generic messaging infrastructure for in-kernel netfilter subsystems
35 (such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
36 and/or management tools in userspace.
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 CFLAGS="$(TARGET_CFLAGS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
51 define Build/InstallDev
52 mkdir -p $(1)/usr/include/libnfnetlink
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink}.h $(1)/usr/include/libnfnetlink/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} $(1)/usr/lib/
58 define Package/libnfnetlink/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* $(1)/usr/lib/
63 $(eval $(call BuildPackage,libnfnetlink))