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.

82 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2009-2011 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:=conntrack-tools
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://git.netfilter.org/conntrack-tools
  12. PKG_SOURCE_DATE:=2018-05-01
  13. PKG_SOURCE_VERSION:=88610abee7e58f4da7ec6f198e00ff70a92c870f
  14. PKG_MIRROR_HASH:=cccc5e25e3cb159385b170f63f9b7fd2186f68d32239718080f605c060ea1cb8
  15. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_CPE_ID:=cpe:/a:conntrack-tools_project:conntrack-tools
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_DEPENDS:=libtirpc
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/conntrack-tools/default
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+libnetfilter-conntrack +libnetfilter-cttimeout +libnetfilter-cthelper +libnetfilter-queue
  26. SUBMENU:=Firewall
  27. URL:=http://conntrack-tools.netfilter.org/
  28. endef
  29. define Package/conntrack
  30. $(call Package/conntrack-tools/default)
  31. TITLE:=Connection tracking tool
  32. endef
  33. define Package/conntrack/description
  34. Conntrack is a userspace command line program targeted at system
  35. administrators. It enables them to view and manage the in-kernel
  36. connection tracking state table.
  37. endef
  38. CONFIGURE_ARGS += \
  39. --with-libtirpc
  40. define Package/conntrack/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrack $(1)/usr/sbin/
  43. endef
  44. define Package/conntrackd
  45. $(call Package/conntrack-tools/default)
  46. TITLE:=Connection tracking daemon
  47. endef
  48. define Package/conntrackd/conffiles
  49. /etc/conntrackd/
  50. endef
  51. define Package/conntrackd/description
  52. Conntrackd can replicate the status of the connections that are
  53. currently being processed by your stateful firewall based on Linux.
  54. Conntrackd can also run as statistics daemon.
  55. endef
  56. define Package/conntrackd/install
  57. $(INSTALL_DIR) \
  58. $(1)/etc/conntrackd \
  59. $(1)/etc/init.d \
  60. $(1)/usr/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrackd $(1)/usr/sbin/
  62. $(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
  63. endef
  64. $(eval $(call BuildPackage,conntrack))
  65. $(eval $(call BuildPackage,conntrackd))