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.9 KiB

  1. #
  2. # Copyright (C) 2015 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_cttimeout
  9. PKG_VERSION:=1.0.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_cttimeout/files/ \
  14. ftp://ftp.netfilter.org/pub/libnetfilter_cttimeout/ \
  15. http://mirrors.evolva.ro/netfilter.org/libnetfilter_cttimeout/
  16. PKG_MD5SUM:=7697437fc9ebb6f6b83df56a633db7f9
  17. PKG_LICENSE:=GPL-2.0+
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libnetfilter-cttimeout
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=API to connection tracking timeout infrastructure
  27. URL:=http://www.netfilter.org/projects/libnetfilter_cttimeout/
  28. DEPENDS:=+libmnl
  29. endef
  30. define Package/libnetfilter-queue/description
  31. libnetfilter_cttimeout is the userspace library that provides the programming
  32. interface to the fine-grain connection tracking timeout infrastructure.
  33. With this library, you can create, update and delete timeout policies that can
  34. be attached to traffic flows.
  35. endef
  36. TARGET_CFLAGS += $(FPIC)
  37. CONFIGURE_ARGS += \
  38. --enable-static \
  39. --enable-shared \
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cttimeout \
  44. $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout*.{so*,a,la} \
  48. $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cttimeout.pc \
  52. $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/libnetfilter-cttimeout/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout*.so.* $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libnetfilter-cttimeout))