2008-09-12 21:33:06 +00:00
|
|
|
#
|
2009-01-11 04:37:43 +00:00
|
|
|
# Copyright (C) 2007-2009 OpenWrt.org
|
2008-02-05 15:40:44 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2009-01-31 16:31:39 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2008-02-05 15:40:44 +00:00
|
|
|
|
|
|
|
PKG_NAME:=libnetfilter_queue
|
2009-06-19 16:06:46 +00:00
|
|
|
PKG_VERSION:=0.0.17
|
|
|
|
PKG_RELEASE:=1
|
2008-02-05 15:40:44 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-06-19 16:06:46 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/libnetfilter_queue/ \
|
|
|
|
http://mirrors.evolva.ro/netfilter.org/libnetfilter_queue/
|
|
|
|
PKG_MD5SUM:=2cde35e678ead3a8f9eb896bf807a159
|
2009-01-31 16:31:39 +00:00
|
|
|
|
2008-09-12 21:36:06 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2008-02-05 15:40:44 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-02-08 15:00:34 +00:00
|
|
|
define Package/libnetfilter-queue
|
2008-02-05 15:40:44 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2009-01-31 16:31:39 +00:00
|
|
|
DEPENDS:=@LINUX_2_6 +libnfnetlink +kmod-nfnetlink-queue
|
|
|
|
TITLE:=API to packets queued by the kernel packet filter
|
|
|
|
URL:=http://www.netfilter.org/projects/libnetfilter_queue/
|
2008-02-05 15:40:44 +00:00
|
|
|
endef
|
|
|
|
|
2008-02-08 15:00:34 +00:00
|
|
|
define Package/libnetfilter-queue/description
|
2009-01-31 16:31:39 +00:00
|
|
|
libnetfilter_queue is a userspace library providing an API to packets
|
|
|
|
that have been queued by the kernel packet filter.
|
2008-02-05 15:40:44 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2008-02-05 15:40:44 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-static \
|
|
|
|
--enable-shared \
|
2009-01-11 04:37:43 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
2009-04-29 12:56:17 +00:00
|
|
|
LIBNFNETLINK_CFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LIBNFNETLINK_LIBS="$(TARGET_LDFLAGS)"
|
2008-09-12 21:33:06 +00:00
|
|
|
|
2008-02-05 15:40:44 +00:00
|
|
|
define Build/Compile
|
2009-01-11 04:37:43 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) all
|
|
|
|
$(call libtool_fixup_libdir)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
2008-02-05 15:40:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-09-12 21:33:06 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \
|
|
|
|
$(1)/usr/include/libnetfilter_queue/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue*.{so*,a,la} \
|
2008-09-12 21:33:06 +00:00
|
|
|
$(1)/usr/lib/
|
2008-02-05 15:40:44 +00:00
|
|
|
|
2008-09-12 21:33:06 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
2009-01-31 16:31:39 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_queue.pc \
|
2008-09-12 21:33:06 +00:00
|
|
|
$(1)/usr/lib/pkgconfig/
|
2008-02-05 15:40:44 +00:00
|
|
|
endef
|
|
|
|
|
2008-02-08 15:00:34 +00:00
|
|
|
define Package/libnetfilter-queue/install
|
2008-02-05 15:40:44 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-11 04:37:43 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue*.so.* $(1)/usr/lib/
|
2008-02-05 15:40:44 +00:00
|
|
|
endef
|
|
|
|
|
2008-02-08 15:00:34 +00:00
|
|
|
$(eval $(call BuildPackage,libnetfilter-queue))
|