mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
Add recipe for iptables
This commit is contained in:
parent
adbb5cbd43
commit
108040800d
27
testing/scripts/recipes/iptables.mk
Normal file
27
testing/scripts/recipes/iptables.mk
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user