iptables.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #############################################################
  2. #
  3. # iptables
  4. #
  5. #############################################################
  6. IPTABLES_VERSION = 1.4.7
  7. IPTABLES_SOURCE = iptables-$(IPTABLES_VERSION).tar.bz2
  8. IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables
  9. IPTABLES_CONF_OPT = --libexecdir=/usr/lib --with-kernel=$(LINUX_HEADERS_DIR)
  10. ifneq ($(BR2_INET_IPV6),y)
  11. IPTABLES_CONF_OPT += --disable-ipv6
  12. endif
  13. IPTABLES_AUTORECONF = YES
  14. IPTABLES_LIBTOOL_PATCH = NO
  15. $(eval $(call AUTOTARGETS,package,iptables))
  16. $(IPTABLES_HOOK_POST_INSTALL): $(IPTABLES_TARGET_INSTALL_TARGET)
  17. ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables
  18. ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables-save
  19. ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables-restore
  20. ifeq ($(BR2_INET_IPV6),y)
  21. ln -sf ip6tables-multi $(TARGET_DIR)/usr/sbin/ip6tables
  22. ln -sf ip6tables-multi $(TARGET_DIR)/usr/sbin/ip6tables-save
  23. ln -sf ip6tables-multi $(TARGET_DIR)/usr/sbin/ip6tables-restore
  24. endif
  25. touch $@
  26. $(IPTABLES_TARGET_UNINSTALL):
  27. $(call MESSAGE,"Uninstalling")
  28. rm -f $(TARGET_DIR)/usr/bin/iptables-xml
  29. rm -f $(TARGET_DIR)/usr/sbin/iptables* $(TARGET_DIR)/usr/sbin/ip6tables*
  30. rm -rf $(TARGET_DIR)/usr/lib/xtables
  31. rm -f $(IPTABLES_TARGET_INSTALL_TARGET) $(IPTABLES_HOOK_POST_INSTALL)