From c83921a2b566aa9d55d8ccc7258f04fca6292ee6 Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Tue, 30 Apr 2013 17:51:33 +0200 Subject: Imported Upstream version 5.0.4 --- testing/scripts/build-baseimage | 2 +- testing/scripts/recipes/009_tkm.mk | 21 ------- testing/scripts/recipes/009_xfrm-proxy.mk | 21 +++++++ testing/scripts/recipes/010_strongswan.mk | 94 ---------------------------- testing/scripts/recipes/010_tkm.mk | 21 +++++++ testing/scripts/recipes/011_openssl-fips.mk | 23 +++++++ testing/scripts/recipes/011_xfrm-proxy.mk | 21 ------- testing/scripts/recipes/012_openssl.mk | 13 ++++ testing/scripts/recipes/013_strongswan.mk | 95 +++++++++++++++++++++++++++++ 9 files changed, 174 insertions(+), 137 deletions(-) delete mode 100644 testing/scripts/recipes/009_tkm.mk create mode 100644 testing/scripts/recipes/009_xfrm-proxy.mk delete mode 100644 testing/scripts/recipes/010_strongswan.mk create mode 100644 testing/scripts/recipes/010_tkm.mk create mode 100644 testing/scripts/recipes/011_openssl-fips.mk delete mode 100644 testing/scripts/recipes/011_xfrm-proxy.mk create mode 100644 testing/scripts/recipes/012_openssl.mk create mode 100644 testing/scripts/recipes/013_strongswan.mk (limited to 'testing/scripts') diff --git a/testing/scripts/build-baseimage b/testing/scripts/build-baseimage index c426f0af5..354b48bd7 100755 --- a/testing/scripts/build-baseimage +++ b/testing/scripts/build-baseimage @@ -17,7 +17,7 @@ INC=$INC,openssl,vim,sqlite3,conntrack,gdb,cmake,libxerces-c2-dev,libltdl-dev INC=$INC,liblog4cxx10-dev,libboost-thread-dev,libboost-system-dev,git-core INC=$INC,less,acpid,acpi-support-base,libldns-dev,libunbound-dev,dnsutils,screen INC=$INC,gnat,gprbuild,libahven3-dev,libxmlada4.1-dev,libgmpada3-dev -INC=$INC,libalog0.4.1-base-dev,hostapd +INC=$INC,libalog0.4.1-base-dev,hostapd,libsoup2.4-dev SERVICES="apache2 dbus isc-dhcp-server slapd bind9" INC=$INC,${SERVICES// /,} diff --git a/testing/scripts/recipes/009_tkm.mk b/testing/scripts/recipes/009_tkm.mk deleted file mode 100644 index 971cd170f..000000000 --- a/testing/scripts/recipes/009_tkm.mk +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/make - -PKG = tkm -SRC = http://git.codelabs.ch/git/$(PKG).git -REV = v0.1 - -export ADA_PROJECT_PATH=/usr/local/ada/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/009_xfrm-proxy.mk b/testing/scripts/recipes/009_xfrm-proxy.mk new file mode 100644 index 000000000..569fbfe3c --- /dev/null +++ b/testing/scripts/recipes/009_xfrm-proxy.mk @@ -0,0 +1,21 @@ +#!/usr/bin/make + +PKG = xfrm-proxy +SRC = http://git.codelabs.ch/git/$(PKG).git +REV = v0.1 + +export ADA_PROJECT_PATH=/usr/local/ada/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/010_strongswan.mk b/testing/scripts/recipes/010_strongswan.mk deleted file mode 100644 index 94abb9ddb..000000000 --- a/testing/scripts/recipes/010_strongswan.mk +++ /dev/null @@ -1,94 +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-ifmap \ - --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-attr-sql \ - --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=/usr/local/ada/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 diff --git a/testing/scripts/recipes/010_tkm.mk b/testing/scripts/recipes/010_tkm.mk new file mode 100644 index 000000000..971cd170f --- /dev/null +++ b/testing/scripts/recipes/010_tkm.mk @@ -0,0 +1,21 @@ +#!/usr/bin/make + +PKG = tkm +SRC = http://git.codelabs.ch/git/$(PKG).git +REV = v0.1 + +export ADA_PROJECT_PATH=/usr/local/ada/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/011_openssl-fips.mk b/testing/scripts/recipes/011_openssl-fips.mk new file mode 100644 index 000000000..5d28b181e --- /dev/null +++ b/testing/scripts/recipes/011_openssl-fips.mk @@ -0,0 +1,23 @@ +#!/usr/bin/make + +PV = 2.0.3 +PKG = openssl-fips-$(PV) +TAR = $(PKG).tar.gz +SRC = http://www.openssl.org/source/$(TAR) + +all: install + +$(TAR): + wget $(SRC) + +$(PKG): $(TAR) + tar xfz $(TAR) + +configure: $(PKG) + cd $(PKG) && ./config + +build: configure + cd $(PKG) && make + +install: build + cd $(PKG) && make install diff --git a/testing/scripts/recipes/011_xfrm-proxy.mk b/testing/scripts/recipes/011_xfrm-proxy.mk deleted file mode 100644 index 569fbfe3c..000000000 --- a/testing/scripts/recipes/011_xfrm-proxy.mk +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/make - -PKG = xfrm-proxy -SRC = http://git.codelabs.ch/git/$(PKG).git -REV = v0.1 - -export ADA_PROJECT_PATH=/usr/local/ada/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/012_openssl.mk b/testing/scripts/recipes/012_openssl.mk new file mode 100644 index 000000000..9312445ce --- /dev/null +++ b/testing/scripts/recipes/012_openssl.mk @@ -0,0 +1,13 @@ +#!/usr/bin/make + +PV = 1.0.1e +PKG = openssl-$(PV) +SRC = http://download.strongswan.org/testing/openssl-fips/ + +all: install + +$(PKG): + wget -r $(SRC) --no-directories --directory-prefix $(PKG) --accept deb + +install: $(PKG) + cd $(PKG) && dpkg -i *.deb diff --git a/testing/scripts/recipes/013_strongswan.mk b/testing/scripts/recipes/013_strongswan.mk new file mode 100644 index 000000000..14fdebbc9 --- /dev/null +++ b/testing/scripts/recipes/013_strongswan.mk @@ -0,0 +1,95 @@ +#!/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-soup \ + --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-ifmap \ + --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-attr-sql \ + --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=/usr/local/ada/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 -- cgit v1.2.3