Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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:=2017-09-27
  13. PKG_SOURCE_VERSION:=eefe649ca51ed0cbb995454cdc366f5072f6443c
  14. PKG_MIRROR_HASH:=1c207c3e423d741fbb31e3c29486a811e6dad493f26ec47a2df75b6262a1b4bd
  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:=librpc
  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. define Package/conntrack/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrack $(1)/usr/sbin/
  41. endef
  42. define Package/conntrackd
  43. $(call Package/conntrack-tools/default)
  44. TITLE:=Connection tracking daemon
  45. endef
  46. define Package/conntrackd/conffiles
  47. /etc/conntrackd/
  48. endef
  49. define Package/conntrackd/description
  50. Conntrackd can replicate the status of the connections that are
  51. currently being processed by your stateful firewall based on Linux.
  52. Conntrackd can also run as statistics daemon.
  53. endef
  54. define Package/conntrackd/install
  55. $(INSTALL_DIR) \
  56. $(1)/etc/conntrackd \
  57. $(1)/etc/init.d \
  58. $(1)/usr/sbin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrackd $(1)/usr/sbin/
  60. $(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
  61. endef
  62. $(eval $(call BuildPackage,conntrack))
  63. $(eval $(call BuildPackage,conntrackd))