aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/recipes/004_iptables.mk
diff options
context:
space:
mode:
authorReto Buerki <reet@codelabs.ch>2012-12-06 19:43:20 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 15:22:11 +0100
commitee1cd88c7aa09a36fcbea524303e23f32eeaae94 (patch)
treea84ac5314cff52c382b043aea3378836edd3e85c /testing/scripts/recipes/004_iptables.mk
parent0cc40637997984029dbcc47234b47c5da8ea0cd2 (diff)
downloadstrongswan-ee1cd88c7aa09a36fcbea524303e23f32eeaae94.tar.bz2
strongswan-ee1cd88c7aa09a36fcbea524303e23f32eeaae94.tar.xz
Prefix all recipes with a number
Diffstat (limited to 'testing/scripts/recipes/004_iptables.mk')
-rw-r--r--testing/scripts/recipes/004_iptables.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/scripts/recipes/004_iptables.mk b/testing/scripts/recipes/004_iptables.mk
new file mode 100644
index 000000000..80765445d
--- /dev/null
+++ b/testing/scripts/recipes/004_iptables.mk
@@ -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