2012-10-10 13:19:43 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=conntrack-tools
|
2015-11-08 20:39:44 +00:00
|
|
|
PKG_VERSION:=1.4.3
|
2012-10-10 13:19:43 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
http://www.netfilter.org/projects/conntrack-tools/files \
|
|
|
|
ftp://ftp.netfilter.org/pub/conntrack-tools \
|
|
|
|
http://mirrors.evolva.ro/netfilter.org/conntrack-tools
|
2015-11-08 20:39:44 +00:00
|
|
|
PKG_MD5SUM:=966a5d8f846ddf5304bcd12685c0707f
|
2012-10-10 13:19:43 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2012-10-10 13:19:43 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2014-06-29 11:33:00 +00:00
|
|
|
TAR_OPTIONS += --exclude='*.rej'
|
|
|
|
|
2015-03-29 01:44:14 +00:00
|
|
|
PKG_BUILD_DEPENDS:=librpc
|
|
|
|
|
2012-10-10 13:19:43 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2015-11-08 20:39:49 +00:00
|
|
|
TARGET_CFLAGS += -D_GNU_SOURCE=1
|
|
|
|
|
|
|
|
define Package/conntrack-tools/default
|
2012-10-10 13:19:43 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2015-03-28 10:19:26 +00:00
|
|
|
DEPENDS:=+libnetfilter-conntrack +libnetfilter-cttimeout +libnetfilter-cthelper +libnetfilter-queue
|
2012-10-10 13:19:43 +00:00
|
|
|
SUBMENU:=Firewall
|
|
|
|
URL:=http://conntrack-tools.netfilter.org/
|
|
|
|
endef
|
|
|
|
|
2015-11-08 20:39:49 +00:00
|
|
|
define Package/conntrack
|
|
|
|
$(call Package/conntrack-tools/default)
|
|
|
|
TITLE:=Connection tracking tool
|
2012-10-10 13:19:43 +00:00
|
|
|
endef
|
|
|
|
|
2015-11-08 20:39:49 +00:00
|
|
|
define Package/conntrack/description
|
|
|
|
Conntrack is a userspace command line program targeted at system
|
|
|
|
administrators. It enables them to view and manage the in-kernel
|
|
|
|
connection tracking state table.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/conntrack/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrack $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/conntrackd
|
|
|
|
$(call Package/conntrack-tools/default)
|
|
|
|
TITLE:=Connection tracking daemon
|
|
|
|
endef
|
|
|
|
|
2015-11-15 21:34:15 +00:00
|
|
|
define Package/conntrackd/conffiles
|
|
|
|
/etc/conntrackd/
|
|
|
|
endef
|
|
|
|
|
2015-11-08 20:39:49 +00:00
|
|
|
define Package/conntrackd/description
|
|
|
|
Conntrackd can replicate the status of the connections that are
|
|
|
|
currently being processed by your stateful firewall based on Linux.
|
|
|
|
Conntrackd can also run as statistics daemon.
|
|
|
|
endef
|
2015-03-28 10:19:26 +00:00
|
|
|
|
2015-11-08 20:39:49 +00:00
|
|
|
define Package/conntrackd/install
|
2015-11-21 21:26:12 +00:00
|
|
|
$(INSTALL_DIR) \
|
2015-11-21 21:26:20 +00:00
|
|
|
$(1)/etc/conntrackd \
|
2015-11-21 21:26:12 +00:00
|
|
|
$(1)/etc/init.d \
|
|
|
|
$(1)/usr/sbin
|
2015-11-08 20:39:49 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conntrackd $(1)/usr/sbin/
|
2015-05-23 15:28:56 +00:00
|
|
|
$(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd
|
2012-10-10 13:19:43 +00:00
|
|
|
endef
|
|
|
|
|
2015-11-08 20:39:49 +00:00
|
|
|
$(eval $(call BuildPackage,conntrack))
|
|
|
|
$(eval $(call BuildPackage,conntrackd))
|