Add recipe for iptables
authorReto Buerki <reet@codelabs.ch>
Wed, 21 Nov 2012 17:42:57 +0000 (18:42 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 18 Dec 2012 15:00:21 +0000 (16:00 +0100)
testing/scripts/recipes/iptables.mk [new file with mode: 0644]

diff --git a/testing/scripts/recipes/iptables.mk b/testing/scripts/recipes/iptables.mk
new file mode 100644 (file)
index 0000000..8076544
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/make
+
+PV  = 1.4.16.3
+PKG = iptables-$(PV)
+TAR = $(PKG).tar.bz2
+SRC = http://www.netfilter.org/projects/iptables/files/$(TAR)
+
+NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
+
+CONFIG_OPTS =
+
+all: install
+
+$(TAR):
+       wget $(SRC)
+
+$(PKG): $(TAR)
+       tar xfj $(TAR)
+
+configure: $(PKG)
+       cd $(PKG) && ./configure $(CONFIG_OPTS)
+
+build: configure
+       cd $(PKG) && make -j $(NUM_CPUS)
+
+install: build
+       cd $(PKG) && make install