aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/recipes/004_iptables.mk
diff options
context:
space:
mode:
Diffstat (limited to 'testing/scripts/recipes/004_iptables.mk')
-rw-r--r--testing/scripts/recipes/004_iptables.mk18
1 files changed, 14 insertions, 4 deletions
diff --git a/testing/scripts/recipes/004_iptables.mk b/testing/scripts/recipes/004_iptables.mk
index 80765445d..51200201a 100644
--- a/testing/scripts/recipes/004_iptables.mk
+++ b/testing/scripts/recipes/004_iptables.mk
@@ -9,19 +9,29 @@ NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
CONFIG_OPTS =
+PATCHES = \
+ iptables-xfrm-hooks
+
all: install
$(TAR):
wget $(SRC)
-$(PKG): $(TAR)
+.$(PKG)-unpacked: $(TAR)
tar xfj $(TAR)
+ @touch $@
+
+.$(PKG)-patches-applied: .$(PKG)-unpacked
+ cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1
+ @touch $@
-configure: $(PKG)
+.$(PKG)-configured: .$(PKG)-patches-applied
cd $(PKG) && ./configure $(CONFIG_OPTS)
+ @touch $@
-build: configure
+.$(PKG)-built: .$(PKG)-configured
cd $(PKG) && make -j $(NUM_CPUS)
+ @touch $@
-install: build
+install: .$(PKG)-built
cd $(PKG) && make install