2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-01-19 08:49:24 +01:00
|
|
|
#
|
|
|
|
# iptables
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-01-10 18:41:24 +01:00
|
|
|
|
2013-05-31 04:27:16 +02:00
|
|
|
IPTABLES_VERSION = 1.4.19.1
|
2008-09-16 04:12:23 +02:00
|
|
|
IPTABLES_SOURCE = iptables-$(IPTABLES_VERSION).tar.bz2
|
|
|
|
IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables
|
2011-01-10 18:41:24 +01:00
|
|
|
IPTABLES_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
IPTABLES_DEPENDENCIES = host-pkgconf
|
2012-08-12 00:27:26 +02:00
|
|
|
IPTABLES_LICENSE = GPLv2
|
|
|
|
IPTABLES_LICENSE_FILES = COPYING
|
2003-01-19 08:49:24 +01:00
|
|
|
|
2009-03-30 20:42:02 +02:00
|
|
|
IPTABLES_CONF_OPT = --libexecdir=/usr/lib --with-kernel=$(LINUX_HEADERS_DIR)
|
2009-03-30 20:41:53 +02:00
|
|
|
|
2010-09-01 23:52:52 +02:00
|
|
|
define IPTABLES_TARGET_SYMLINK_CREATE
|
2011-07-22 20:02:48 +02:00
|
|
|
ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/iptables
|
|
|
|
ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/iptables-save
|
|
|
|
ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/iptables-restore
|
2010-09-01 23:52:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IPTABLES_TARGET_IPV6_SYMLINK_CREATE
|
2011-07-22 20:02:48 +02:00
|
|
|
ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/ip6tables
|
|
|
|
ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/ip6tables-save
|
|
|
|
ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/ip6tables-restore
|
2010-09-01 23:52:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IPTABLES_TARGET_IPV6_REMOVE
|
2010-05-27 19:35:34 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libip6tc.*
|
2010-09-01 23:52:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
IPTABLES_POST_INSTALL_TARGET_HOOKS += IPTABLES_TARGET_SYMLINK_CREATE
|
|
|
|
|
|
|
|
ifeq ($(BR2_INET_IPV6),y)
|
|
|
|
IPTABLES_POST_INSTALL_TARGET_HOOKS += IPTABLES_TARGET_IPV6_SYMLINK_CREATE
|
|
|
|
else
|
|
|
|
IPTABLES_POST_INSTALL_TARGET_HOOKS += IPTABLES_TARGET_IPV6_REMOVE
|
2009-09-16 08:39:26 +02:00
|
|
|
endif
|
|
|
|
|
2010-09-01 23:52:52 +02:00
|
|
|
define IPTABLES_UNINSTALL_TARGET_CMDS
|
2009-03-03 23:28:15 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/iptables-xml
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/iptables* $(TARGET_DIR)/usr/sbin/ip6tables*
|
2011-07-22 20:02:48 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/xtables-multi
|
2009-03-03 23:28:15 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/xtables
|
2010-09-01 23:52:52 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|