Davstorage+ajaxplorer software release v1
[slapos.git] / component / openssl / buildout.cfg
1 # OpenSSL - a toolkit implementing SSL v2/v3 and TLS v1 protocols as
2 #           well as a full-strength general purpose cryptography
3 #           library.
4 # http://www.openssl.org/
5
6 [buildout]
7 extends =
8   ../ca-certificates/buildout.cfg
9   ../zlib/buildout.cfg
10   ../patch/buildout.cfg
11
12 parts =
13   openssl
14
15 [openssl-nodoc.patch]
16 # Disable doc generation part in Makefile 
17 recipe = hexagonit.recipe.download
18 md5sum = b4887a7b4e18402447bc6227d2493b92
19 url = ${:_profile_base_location_}/${:filename}
20 filename = ${:_buildout_section_name_}
21 download-only = true
22
23 [openssl-exlibs.patch]
24 recipe = hexagonit.recipe.download
25 md5sum = dfb8979460d6d75f2d23d1ea83bbb40a
26 url = ${:_profile_base_location_}/${:filename}
27 filename = ${:_buildout_section_name_}
28 download-only = true
29
30 [openssl]
31 recipe = slapos.recipe.cmmi
32 url = https://www.openssl.org/source/openssl-1.0.1e.tar.gz
33 md5sum = 66bf6f10f060d561929de96f9dfe5b8c
34 patch-binary = ${patch:location}/bin/patch
35 patches =
36   ${openssl-nodoc.patch:location}/${openssl-nodoc.patch:filename}
37   ${openssl-exlibs.patch:location}/${openssl-exlibs.patch:filename}
38 patch-options = -p0
39 configure-command = ./config
40 configure-options =
41   -I${zlib:location}/include
42   -L${zlib:location}/lib
43   --openssldir=${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl
44   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
45   --libdir=lib
46   shared no-idea no-mdc2 no-rc5 zlib
47   -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib
48   && make depend
49
50 # it seems that parallel build sometimes fails for openssl.
51 make-options =
52   -j1
53 make-targets =
54   all install_sw && rm -f ${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl/certs/* && for i in ${ca-certificates:location}/certs/*/*.crt; do ln -sv $i ${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl/certs/`${buildout:parts-directory}/${:_buildout_section_name_}/bin/openssl x509 -hash -noout -in $i`.0; done; true