2003-01-19 08:49:24 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# iptables
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-09-01 14:27:48 +02:00
|
|
|
IPTABLES_VERSION = 1.4.9.1
|
2008-09-16 04:12:23 +02:00
|
|
|
IPTABLES_SOURCE = iptables-$(IPTABLES_VERSION).tar.bz2
|
|
|
|
IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables
|
2010-06-07 22:18:32 +02:00
|
|
|
IPTABLES_DEPENDENCIES = host-pkg-config
|
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
|
|
|
ifneq ($(BR2_INET_IPV6),y)
|
2009-09-16 08:39:26 +02:00
|
|
|
IPTABLES_CONF_OPT += --disable-ipv6
|
2009-03-30 20:41:53 +02:00
|
|
|
endif
|
|
|
|
|
2008-09-16 04:12:23 +02:00
|
|
|
IPTABLES_AUTORECONF = YES
|
2009-09-16 08:39:26 +02:00
|
|
|
IPTABLES_LIBTOOL_PATCH = NO
|
2003-01-19 08:49:24 +01:00
|
|
|
|
2008-09-16 04:12:23 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,iptables))
|
2009-03-03 23:28:15 +01:00
|
|
|
|
2009-09-16 08:39:26 +02:00
|
|
|
$(IPTABLES_HOOK_POST_INSTALL): $(IPTABLES_TARGET_INSTALL_TARGET)
|
|
|
|
ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables
|
|
|
|
ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables-save
|
|
|
|
ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables-restore
|
|
|
|
ifeq ($(BR2_INET_IPV6),y)
|
|
|
|
ln -sf ip6tables-multi $(TARGET_DIR)/usr/sbin/ip6tables
|
|
|
|
ln -sf ip6tables-multi $(TARGET_DIR)/usr/sbin/ip6tables-save
|
|
|
|
ln -sf ip6tables-multi $(TARGET_DIR)/usr/sbin/ip6tables-restore
|
2010-05-27 19:35:34 +02:00
|
|
|
else
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libip6tc.*
|
2009-09-16 08:39:26 +02:00
|
|
|
endif
|
|
|
|
touch $@
|
|
|
|
|
2009-03-03 23:28:15 +01:00
|
|
|
$(IPTABLES_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/iptables-xml
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/iptables* $(TARGET_DIR)/usr/sbin/ip6tables*
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/xtables
|
2009-09-16 08:39:26 +02:00
|
|
|
rm -f $(IPTABLES_TARGET_INSTALL_TARGET) $(IPTABLES_HOOK_POST_INSTALL)
|