2
0

Makefile 2.1 KB

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