Provide recipes to build tkm and required libraries
authorReto Buerki <reet@codelabs.ch>
Tue, 22 Jan 2013 15:07:25 +0000 (16:07 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Mar 2013 14:23:50 +0000 (15:23 +0100)
testing/scripts/recipes/005_anet.mk [new file with mode: 0644]
testing/scripts/recipes/005_strongswan.mk [deleted file]
testing/scripts/recipes/006_tkm-rpc.mk [new file with mode: 0644]
testing/scripts/recipes/007_x509-ada.mk [new file with mode: 0644]
testing/scripts/recipes/008_xfrm-ada.mk [new file with mode: 0644]
testing/scripts/recipes/009_tkm.mk [new file with mode: 0644]
testing/scripts/recipes/010_strongswan.mk [new file with mode: 0644]

diff --git a/testing/scripts/recipes/005_anet.mk b/testing/scripts/recipes/005_anet.mk
new file mode 100644 (file)
index 0000000..1ecb7b2
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/make
+
+PKG = anet
+SRC = http://git.codelabs.ch/git/$(PKG).git
+REV = v0.2.2
+
+all: install
+
+.$(PKG)-cloned:
+       git clone $(SRC) $(PKG)
+       cd $(PKG) && git checkout $(REV)
+       @touch $@
+
+.$(PKG)-built: .$(PKG)-cloned
+       cd $(PKG) && make tests && make LIBRARY_KIND=static
+       @touch $@
+
+install: .$(PKG)-built
+       cd $(PKG) && make LIBRARY_KIND=static install
diff --git a/testing/scripts/recipes/005_strongswan.mk b/testing/scripts/recipes/005_strongswan.mk
deleted file mode 100644 (file)
index 8bac5aa..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/usr/bin/make
-
-PV  = $(SWANVERSION)
-PKG = strongswan-$(PV)
-TAR = $(PKG).tar.bz2
-SRC = http://download.strongswan.org/$(TAR)
-
-NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
-
-CONFIG_OPTS = \
-       --sysconfdir=/etc \
-       --with-random-device=/dev/urandom \
-       --disable-load-warning \
-       --enable-curl \
-       --enable-ldap \
-       --enable-eap-aka \
-       --enable-eap-aka-3gpp2 \
-       --enable-eap-sim \
-       --enable-eap-sim-file \
-       --enable-eap-md5 \
-       --enable-md4 \
-       --enable-eap-mschapv2 \
-       --enable-eap-identity \
-       --enable-eap-radius \
-       --enable-eap-dynamic \
-       --enable-eap-tls \
-       --enable-eap-ttls \
-       --enable-eap-peap \
-       --enable-eap-tnc \
-       --enable-tnc-pdp \
-       --enable-tnc-imc \
-       --enable-tnc-imv \
-       --enable-tnccs-11 \
-       --enable-tnccs-20 \
-       --enable-tnccs-dynamic \
-       --enable-imc-test \
-       --enable-imv-test \
-       --enable-imc-scanner \
-       --enable-imv-scanner \
-       --enable-imc-os \
-       --enable-imv-os \
-       --enable-imc-attestation \
-       --enable-imv-attestation \
-       --enable-sql \
-       --enable-sqlite \
-       --enable-mediation \
-       --enable-openssl \
-       --enable-blowfish \
-       --enable-kernel-pfkey \
-       --enable-integrity-test \
-       --enable-leak-detective \
-       --enable-load-tester \
-       --enable-test-vectors \
-       --enable-gcrypt \
-       --enable-socket-default \
-       --enable-socket-dynamic \
-       --enable-dhcp \
-       --enable-farp \
-       --enable-addrblock \
-       --enable-ctr \
-       --enable-ccm \
-       --enable-gcm \
-       --enable-cmac \
-       --enable-ha \
-       --enable-af-alg \
-       --enable-whitelist \
-       --enable-xauth-generic \
-       --enable-xauth-eap \
-       --enable-pkcs8 \
-       --enable-unity \
-       --enable-unbound \
-       --enable-ipseckey
-
-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
diff --git a/testing/scripts/recipes/006_tkm-rpc.mk b/testing/scripts/recipes/006_tkm-rpc.mk
new file mode 100644 (file)
index 0000000..571d590
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/make
+
+PKG = tkm-rpc
+SRC = http://git.codelabs.ch/git/$(PKG).git
+REV = v0.1
+
+export ADA_PROJECT_PATH=/root/libraries/lib/gnat
+
+all: install
+
+.$(PKG)-cloned:
+       git clone $(SRC) $(PKG)
+       cd $(PKG) && git checkout $(REV)
+       @touch $@
+
+.$(PKG)-built: .$(PKG)-cloned
+       cd $(PKG) && make tests && make
+       @touch $@
+
+install: .$(PKG)-built
+       cd $(PKG) && make install
diff --git a/testing/scripts/recipes/007_x509-ada.mk b/testing/scripts/recipes/007_x509-ada.mk
new file mode 100644 (file)
index 0000000..319a6e2
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/make
+
+PKG = x509-ada
+SRC = http://git.codelabs.ch/git/$(PKG).git
+REV = v0.1
+
+all: install
+
+.$(PKG)-cloned:
+       git clone $(SRC) $(PKG)
+       cd $(PKG) && git checkout $(REV)
+       @touch $@
+
+.$(PKG)-built: .$(PKG)-cloned
+       cd $(PKG) && make tests && make
+       @touch $@
+
+install: .$(PKG)-built
+       cd $(PKG) && make install
diff --git a/testing/scripts/recipes/008_xfrm-ada.mk b/testing/scripts/recipes/008_xfrm-ada.mk
new file mode 100644 (file)
index 0000000..f44a282
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/make
+
+PKG = xfrm-ada
+SRC = http://git.codelabs.ch/git/$(PKG).git
+REV = v0.1
+
+export ADA_PROJECT_PATH=/root/libraries/lib/gnat
+
+all: install
+
+.$(PKG)-cloned:
+       git clone $(SRC) $(PKG)
+       cd $(PKG) && git checkout $(REV)
+       @touch $@
+
+.$(PKG)-built: .$(PKG)-cloned
+       cd $(PKG) && make
+       @touch $@
+
+install: .$(PKG)-built
+       cd $(PKG) && make install
diff --git a/testing/scripts/recipes/009_tkm.mk b/testing/scripts/recipes/009_tkm.mk
new file mode 100644 (file)
index 0000000..e8ced8a
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/make
+
+PKG = tkm
+SRC = http://git.codelabs.ch/git/$(PKG).git
+REV = v0.1
+
+export ADA_PROJECT_PATH=/root/libraries/lib/gnat
+
+all: install
+
+.$(PKG)-cloned:
+       git clone $(SRC) $(PKG)
+       cd $(PKG) && git checkout $(REV)
+       @touch $@
+
+.$(PKG)-built: .$(PKG)-cloned
+       cd $(PKG) && make tests && make
+       @touch $@
+
+install: .$(PKG)-built
+       cd $(PKG) && make install
diff --git a/testing/scripts/recipes/010_strongswan.mk b/testing/scripts/recipes/010_strongswan.mk
new file mode 100644 (file)
index 0000000..4390bf4
--- /dev/null
@@ -0,0 +1,92 @@
+#!/usr/bin/make
+
+PV  = $(SWANVERSION)
+PKG = strongswan-$(PV)
+TAR = $(PKG).tar.bz2
+SRC = http://download.strongswan.org/$(TAR)
+
+NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
+
+CONFIG_OPTS = \
+       --sysconfdir=/etc \
+       --with-random-device=/dev/urandom \
+       --disable-load-warning \
+       --enable-curl \
+       --enable-ldap \
+       --enable-eap-aka \
+       --enable-eap-aka-3gpp2 \
+       --enable-eap-sim \
+       --enable-eap-sim-file \
+       --enable-eap-md5 \
+       --enable-md4 \
+       --enable-eap-mschapv2 \
+       --enable-eap-identity \
+       --enable-eap-radius \
+       --enable-eap-dynamic \
+       --enable-eap-tls \
+       --enable-eap-ttls \
+       --enable-eap-peap \
+       --enable-eap-tnc \
+       --enable-tnc-pdp \
+       --enable-tnc-imc \
+       --enable-tnc-imv \
+       --enable-tnccs-11 \
+       --enable-tnccs-20 \
+       --enable-tnccs-dynamic \
+       --enable-imc-test \
+       --enable-imv-test \
+       --enable-imc-scanner \
+       --enable-imv-scanner \
+       --enable-imc-os \
+       --enable-imv-os \
+       --enable-imc-attestation \
+       --enable-imv-attestation \
+       --enable-sql \
+       --enable-sqlite \
+       --enable-mediation \
+       --enable-openssl \
+       --enable-blowfish \
+       --enable-kernel-pfkey \
+       --enable-integrity-test \
+       --enable-leak-detective \
+       --enable-load-tester \
+       --enable-test-vectors \
+       --enable-gcrypt \
+       --enable-socket-default \
+       --enable-socket-dynamic \
+       --enable-dhcp \
+       --enable-farp \
+       --enable-addrblock \
+       --enable-ctr \
+       --enable-ccm \
+       --enable-gcm \
+       --enable-cmac \
+       --enable-ha \
+       --enable-af-alg \
+       --enable-whitelist \
+       --enable-xauth-generic \
+       --enable-xauth-eap \
+       --enable-pkcs8 \
+       --enable-unity \
+       --enable-unbound \
+       --enable-ipseckey \
+       --enable-tkm
+
+export ADA_PROJECT_PATH=/root/libraries/lib/gnat
+
+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