Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.2
  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:=b1f9d006e7bf000a77395ff7cd3fac16
  17. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  18. PKG_LICENSE:=GPL-2.0
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. TAR_OPTIONS += --exclude='*.rej'
  22. PKG_BUILD_DEPENDS:=librpc
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/conntrack-tools
  25. SECTION:=net
  26. CATEGORY:=Network
  27. DEPENDS:=+libnetfilter-conntrack +libnetfilter-cttimeout +libnetfilter-cthelper +libnetfilter-queue
  28. SUBMENU:=Firewall
  29. TITLE:=Connection tracking userspace tools
  30. URL:=http://conntrack-tools.netfilter.org/
  31. endef
  32. define Package/conntrack-tools/description
  33. The conntrack-tools are a set of free software userspace tools for Linux
  34. that allow system administrators interact with the Connection Tracking
  35. System, which is the module that provides stateful packet inspection for
  36. iptables. The conntrack-tools are the userspace daemon conntrackd and the
  37. command line interface conntrack.
  38. endef
  39. define Package/conntrack-tools/conffiles
  40. /etc/conntrackd/conntrackd.conf
  41. endef
  42. TARGET_CFLAGS += -D_GNU_SOURCE=1
  43. define Package/conntrack-tools/install
  44. $(INSTALL_DIR) $(1)/etc/conntrackd
  45. $(INSTALL_CONF) \
  46. $(PKG_BUILD_DIR)/doc/stats/conntrackd.conf \
  47. $(1)/etc/conntrackd/
  48. $(INSTALL_DIR) $(1)/usr/sbin
  49. $(INSTALL_BIN) \
  50. $(PKG_INSTALL_DIR)/usr/sbin/conntrack \
  51. $(PKG_INSTALL_DIR)/usr/sbin/conntrackd \
  52. $(1)/usr/sbin/
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. $(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
  55. endef
  56. $(eval $(call BuildPackage,conntrack-tools))