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.

71 lines
1.7 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:=1
  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_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libnetfilter-queue
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libmnl +libnfnetlink
  23. TITLE:=Userspace API to packets queued by kernel packet filter
  24. URL:=https://www.netfilter.org/projects/libnetfilter_queue/
  25. ABI_VERSION:=1
  26. endef
  27. define Package/libnetfilter-queue/description
  28. libnetfilter_queue is a userspace library providing a programming
  29. interface (API) to packets that have been queued by the kernel
  30. packet filter.
  31. endef
  32. TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE=1
  33. CONFIGURE_ARGS += \
  34. --enable-static \
  35. --enable-shared \
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_queue
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_queue/*.h \
  40. $(1)/usr/include/libnetfilter_queue/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.{so*,a,la} \
  44. $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_queue.pc \
  48. $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libnetfilter-queue/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_queue.so.* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libnetfilter-queue))