2 # Copyright (C) 2009-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=conntrack-tools
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 http://www.netfilter.org/projects/conntrack-tools/files \
17 ftp://ftp.netfilter.org/pub/conntrack-tools \
18 http://mirrors.evolva.ro/netfilter.org/conntrack-tools
19 PKG_MD5SUM:=966a5d8f846ddf5304bcd12685c0707f
21 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
27 TAR_OPTIONS += --exclude='*.rej'
29 PKG_BUILD_DEPENDS:=librpc
31 include $(INCLUDE_DIR)/package.mk
33 TARGET_CFLAGS += -D_GNU_SOURCE=1
35 define Package/conntrack-tools/default
38 DEPENDS:=+libnetfilter-conntrack +libnetfilter-cttimeout +libnetfilter-cthelper +libnetfilter-queue
40 URL:=http://conntrack-tools.netfilter.org/
43 define Package/conntrack
44 $(call Package/conntrack-tools/default)
45 TITLE:=Connection tracking tool
48 define Package/conntrack/description
49 Conntrack is a userspace command line program targeted at system
50 administrators. It enables them to view and manage the in-kernel
51 connection tracking state table.
54 define Package/conntrack/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrack $(1)/usr/sbin/
59 define Package/conntrackd
60 $(call Package/conntrack-tools/default)
61 TITLE:=Connection tracking daemon
64 define Package/conntrackd/conffiles
68 define Package/conntrackd/description
69 Conntrackd can replicate the status of the connections that are
70 currently being processed by your stateful firewall based on Linux.
71 Conntrackd can also run as statistics daemon.
74 define Package/conntrackd/install
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrackd $(1)/usr/sbin/
79 $(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
82 $(eval $(call BuildPackage,conntrack))
83 $(eval $(call BuildPackage,conntrackd))