use our own perl in buidling components.
[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   ../coreutils/buildout.cfg
10   ../patch/buildout.cfg
11   ../perl/buildout.cfg
12   ../zlib/buildout.cfg
13
14 parts =
15   openssl-output
16
17 [openssl]
18 recipe = slapos.recipe.cmmi
19 url = https://www.openssl.org/source/openssl-1.0.1g.tar.gz
20 md5sum = de62b43dfcd858e66a74bee1c834e959
21 depends =
22   ${ca-certificates:version}
23 patch-binary = ${patch:location}/bin/patch
24 patches =
25   ${:_profile_base_location_}/openssl-nodoc.patch#b4887a7b4e18402447bc6227d2493b92
26   ${:_profile_base_location_}/openssl-exlibs.patch#dfb8979460d6d75f2d23d1ea83bbb40a
27 patch-options = -p0
28 configure-command = ./config
29 configure-options =
30   -I${zlib:location}/include
31   -L${zlib:location}/lib
32   --openssldir=${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl
33   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
34   --libdir=lib
35   shared no-idea no-mdc2 no-rc5 zlib
36   -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib
37   && make depend
38
39 # it seems that parallel build sometimes fails for openssl.
40 make-options =
41   -j1
42 make-targets =
43   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
44 environment =
45   PERL=${perl:location}/bin/perl
46
47 [openssl-output]
48 # Shared binary location to ease migration
49 recipe = plone.recipe.command
50 stop-on-error = true
51 update-command = ${:command}
52 command = ${coreutils-output:test} -x ${:openssl}
53 openssl = ${openssl:location}/bin/openssl