PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[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.2f.tar.gz
20 md5sum = b3bf73f507172be9292ea2a8c28b659d
21 location = ${buildout:parts-directory}/${:_buildout_section_name_}
22 # 'prefix' option to override --openssldir/--prefix (which is useful
23 # when combined with INSTALL_PREFIX). Used by slapos.package.git/obs
24 prefix = ${:location}
25 patch-binary = ${patch:location}/bin/patch
26 patches =
27   ${:_profile_base_location_}/openssl-nodoc.patch#a78c14908fe9ec624b1fb9fa97e01bb9
28   ${:_profile_base_location_}/openssl-exlibs.patch#fba5c873cf974ba80a973be41da3c738
29   ${:_profile_base_location_}/openssl-1.0.2d-parallel-build.patch#e4cf66a48a85a0da68fd4842e6fab54b
30 patch-options = -p1
31 configure-command = ./config
32 configure-options =
33   -I${zlib:location}/include
34   -L${zlib:location}/lib
35   --openssldir=${:prefix}/etc/ssl
36   --prefix=${:prefix}
37   --libdir=lib
38   shared no-idea no-mdc2 no-rc5 zlib
39   -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${:location}/lib
40   && make depend
41 make-targets =
42   install_sw && x=${:location}/etc/ssl/certs && rm -f $x/* &&
43   for i in ${ca-certificates:location}/certs/*/*.crt; do
44     ln -sv $i $x/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
45   ; done
46 environment =
47   PERL=${perl:location}/bin/perl
48
49 [openssl-output]
50 # Shared binary location to ease migration
51 recipe = plone.recipe.command
52 stop-on-error = true
53 update-command = ${:command}
54 command = ${coreutils-output:test} -x ${:openssl}
55 openssl = ${openssl:location}/bin/openssl