From: Eric Andersen Date: Sat, 20 Dec 2003 00:02:13 +0000 (-0000) Subject: Fixup the regex used for iptables so it actually works X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f02886e2f044898687daef6ca8f33e77cc86341c;p=buildroot.git Fixup the regex used for iptables so it actually works --- diff --git a/make/iptables.mk b/make/iptables.mk index edebaff78b..56bbf1b27c 100644 --- a/make/iptables.mk +++ b/make/iptables.mk @@ -15,9 +15,8 @@ $(IPTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(IPTABLES_SOURCE) touch $(IPTABLES_BUILD_DIR)/.unpacked $(IPTABLES_BUILD_DIR)/.configured: $(IPTABLES_BUILD_DIR)/.unpacked - $(SED) "s@shell.*YES.*@shell grep -q '__UCLIBC_HAS_IPV6__.*1' \ - $(BUILD_DIR)/uClibc/include/bits/uClibc_config.h && \ - echo YES\), YES\)@;" $(IPTABLES_BUILD_DIR)/Makefile + $(SED) "s;\[ -f /usr/include/netinet/ip6.h \];grep -q '__UCLIBC_HAS_IPV6__ 1' \ + $(BUILD_DIR)/uClibc/include/bits/uClibc_config.h;" $(IPTABLES_BUILD_DIR)/Makefile touch $(IPTABLES_BUILD_DIR)/.configured $(IPTABLES_BUILD_DIR)/iptables: $(IPTABLES_BUILD_DIR)/.configured