Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.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. http://mirrors.evolva.ro/netfilter.org/conntrack-tools \
  15. PKG_HASH:=b7caf4fcc4c03575df57d25e5216584d597fd916c891f191dac616ce68bdba6c
  16. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  17. PKG_LICENSE:=GPL-2.0
  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))