Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # Copyright (C) 2009-2016 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.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/conntrack-tools/files \
  14. ftp://ftp.netfilter.org/pub/conntrack-tools \
  15. http://mirrors.evolva.ro/netfilter.org/conntrack-tools
  16. PKG_MD5SUM:=acd9e0b27cf16ae3092ba900e4d7560e
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_INSTALL:=1
  19. PKG_BUILD_DEPENDS:=librpc
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/conntrack-tools/default
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libnetfilter-conntrack +libnetfilter-cttimeout +libnetfilter-cthelper +libnetfilter-queue
  25. SUBMENU:=Firewall
  26. URL:=http://conntrack-tools.netfilter.org/
  27. endef
  28. define Package/conntrack
  29. $(call Package/conntrack-tools/default)
  30. TITLE:=Connection tracking tool
  31. endef
  32. define Package/conntrack/description
  33. Conntrack is a userspace command line program targeted at system
  34. administrators. It enables them to view and manage the in-kernel
  35. connection tracking state table.
  36. endef
  37. define Package/conntrack/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrack $(1)/usr/sbin/
  40. endef
  41. define Package/conntrackd
  42. $(call Package/conntrack-tools/default)
  43. TITLE:=Connection tracking daemon
  44. endef
  45. define Package/conntrackd/conffiles
  46. /etc/conntrackd/
  47. endef
  48. define Package/conntrackd/description
  49. Conntrackd can replicate the status of the connections that are
  50. currently being processed by your stateful firewall based on Linux.
  51. Conntrackd can also run as statistics daemon.
  52. endef
  53. define Package/conntrackd/install
  54. $(INSTALL_DIR) \
  55. $(1)/etc/conntrackd \
  56. $(1)/etc/init.d \
  57. $(1)/usr/sbin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrackd $(1)/usr/sbin/
  59. $(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
  60. endef
  61. $(eval $(call BuildPackage,conntrack))
  62. $(eval $(call BuildPackage,conntrackd))