buildout.cfg 1.86 KB
Newer Older
1 2 3 4 5 6 7
# OpenSSL - a toolkit implementing SSL v2/v3 and TLS v1 protocols as
#           well as a full-strength general purpose cryptography
#           library.
# http://www.openssl.org/

[buildout]
extends =
8
  ../ca-certificates/buildout.cfg
9
  ../coreutils/buildout.cfg
10 11 12
  ../patch/buildout.cfg
  ../perl/buildout.cfg
  ../zlib/buildout.cfg
13 14

parts =
15
  openssl-output
16 17

[openssl]
18
recipe = slapos.recipe.cmmi
19 20
url = https://www.openssl.org/source/openssl-1.0.2d.tar.gz
md5sum = 38dd619b2e77cbac69b99f52a053d25a
21
patch-binary = ${patch:location}/bin/patch
22
patches =
23
  ${:_profile_base_location_}/openssl-nodoc.patch#cc910f6a572e8c9d78614f915ccb0f0d
24
  ${:_profile_base_location_}/openssl-exlibs.patch#fba5c873cf974ba80a973be41da3c738
25
  ${:_profile_base_location_}/openssl-1.0.2d-parallel-build.patch#e4cf66a48a85a0da68fd4842e6fab54b
26
patch-options = -p1
27 28 29 30 31 32 33
configure-command = ./config
configure-options =
  -I${zlib:location}/include
  -L${zlib:location}/lib
  --openssldir=${buildout:parts-directory}/${:_buildout_section_name_}/etc/ssl
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --libdir=lib
34
  shared no-idea no-mdc2 no-rc5 zlib
Kazuhiko Shiozaki's avatar
typo.  
Kazuhiko Shiozaki committed
35
  -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib
36
  && make depend
37
make-targets =
38
  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
39 40
environment =
  PERL=${perl:location}/bin/perl
41 42 43 44 45 46 47 48

[openssl-output]
# Shared binary location to ease migration
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = ${coreutils-output:test} -x ${:openssl}
openssl = ${openssl:location}/bin/openssl