You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2009-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnetfilter_queue
  9. PKG_VERSION:=1.0.5
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.netfilter.org/projects/libnetfilter_queue/files
  13. PKG_HASH:=f9ff3c11305d6e03d81405957bdc11aea18e0d315c3e3f48da53a24ba251b9f5
  14. PKG_FIXUP:=autoreconf
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libnetfilter-queue
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libmnl +libnfnetlink
  24. TITLE:=Userspace API to packets queued by kernel packet filter
  25. URL:=https://www.netfilter.org/projects/libnetfilter_queue/
  26. ABI_VERSION:=1
  27. endef
  28. define Package/libnetfilter-queue/description
  29. libnetfilter_queue is a userspace library providing a programming
  30. interface (API) to packets that have been queued by the kernel
  31. packet filter.
  32. endef
  33. TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE=1
  34. CONFIGURE_ARGS += \
  35. --enable-static \
  36. --enable-shared \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \
  41. $(1)/usr/include/libnetfilter_queue/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.{so*,a,la} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_queue.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libnetfilter-queue/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libnetfilter-queue))