2009-06-19 16:05:41 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-12-16 16:03:26 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libnfnetlink
|
2009-10-05 12:17:48 +00:00
|
|
|
PKG_VERSION:=1.0.0
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-12-16 16:03:26 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-03-08 19:37:20 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
http://www.netfilter.org/projects/libnfnetlink/files/ \
|
|
|
|
ftp://ftp.netfilter.org/pub/libnfnetlink/ \
|
2009-06-19 16:05:41 +00:00
|
|
|
http://mirrors.evolva.ro/netfilter.org/libnfnetlink/
|
2009-10-05 12:17:48 +00:00
|
|
|
PKG_MD5SUM:=016fdec8389242615024c529acc1adb8
|
2007-12-16 16:03:26 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2007-12-16 16:03:26 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libnfnetlink
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=@LINUX_2_6
|
2009-01-31 16:29:36 +00:00
|
|
|
TITLE:=A low-level library for netfilter related kernel/userspace communication
|
|
|
|
URL:=http://netfilter.org/projects/libnfnetlink/
|
2007-12-16 16:03:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libnfnetlink/description
|
2009-06-19 16:05:41 +00:00
|
|
|
libnfnetlink is is the low-level library for netfilter related kernel/userspace communication.
|
|
|
|
It provides a generic messaging infrastructure for in-kernel netfilter subsystems
|
|
|
|
(such as nfnetlink_log, nfnetlink_queue, nfnetlink_conntrack) and their respective users
|
2007-12-16 16:03:26 +00:00
|
|
|
and/or management tools in userspace.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-12-16 16:03:26 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-01-31 16:29:36 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/libnfnetlink
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/libnfnetlink/{libnfnetlink,linux_nfnetlink,linux_nfnetlink_compat}.h \
|
|
|
|
$(1)/usr/include/libnfnetlink/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.{a,so*} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnfnetlink.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2007-12-16 16:03:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libnfnetlink/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-31 16:29:36 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libnfnetlink.so.* \
|
|
|
|
$(1)/usr/lib/
|
2007-12-16 16:03:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libnfnetlink))
|