Patch iptables for use with HA kernel patch (XFRM hooks)
[strongswan.git] / testing / scripts / recipes / 004_iptables.mk
index 8076544..5120020 100644 (file)
@@ -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