Merge remote-tracking branch 'origin/master' into erp5
[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
11 parts =
12   openssl
13
14 [openssl-nodoc.patch]
15 # Disable doc generation part in Makefile 
16 recipe = hexagonit.recipe.download
17 md5sum = b4887a7b4e18402447bc6227d2493b92
18 url = ${:_profile_base_location_}/${:filename}
19 filename = ${:_buildout_section_name_}
20 download-only = true
21
22 [openssl]
23 recipe = hexagonit.recipe.cmmi
24 url = https://www.openssl.org/source/openssl-1.0.0g.tar.gz
25 md5sum = 07ecbe4324f140d157478637d6beccf1
26 patches =
27   ${openssl-nodoc.patch:location}/${openssl-nodoc.patch:filename}
28 patch-options = -p0
29 configure-command = ./config
30 configure-options =
31   -I${zlib:location}/include
32   -L${zlib:location}/lib
33   --openssldir=${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl
34   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
35   --libdir=lib
36   shared
37   no-zlib
38
39 # it seems that parallel build sometimes fails for openssl.
40 make-options =
41   -j1
42 make-targets =
43   install && 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
44   LDFLAGS="-Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib"
45   SHARED_LDFLAGS="-Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib"