From: Reto Buerki Date: Wed, 21 Nov 2012 17:42:57 +0000 (+0100) Subject: Add recipe for iptables X-Git-Tag: 5.0.2rc1~1^2~102 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=108040800d276f544995224e031bc64c9cb138d6 Add recipe for iptables --- diff --git a/testing/scripts/recipes/iptables.mk b/testing/scripts/recipes/iptables.mk new file mode 100644 index 0000000..8076544 --- /dev/null +++ b/testing/scripts/recipes/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