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.

81 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_VERSION:=1.4.6
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.netfilter.org/projects/conntrack-tools/files
  13. PKG_HASH:=590859cc848245dbfd9c6487761dd303b3a1771e007f4f42213063ca56205d5f
  14. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:netfilter:conntrack-tools
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=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:=https://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))