buildout.cfg 2.19 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
Łukasz Nowak's avatar
Łukasz Nowak committed
9
  ../zlib/buildout.cfg
10
  ../patch/buildout.cfg
11
  ../coreutils/buildout.cfg
12 13

parts =
14
  openssl-output
15

16 17 18 19 20 21 22 23
[openssl-nodoc.patch]
# Disable doc generation part in Makefile 
recipe = hexagonit.recipe.download
md5sum = b4887a7b4e18402447bc6227d2493b92
url = ${:_profile_base_location_}/${:filename}
filename = ${:_buildout_section_name_}
download-only = true

24 25 26 27 28 29 30
[openssl-exlibs.patch]
recipe = hexagonit.recipe.download
md5sum = dfb8979460d6d75f2d23d1ea83bbb40a
url = ${:_profile_base_location_}/${:filename}
filename = ${:_buildout_section_name_}
download-only = true

31
[openssl]
32
recipe = slapos.recipe.cmmi
33 34
url = https://www.openssl.org/source/openssl-1.0.1f.tar.gz
md5sum = f26b09c028a0541cab33da697d522b25
35
patch-binary = ${patch:location}/bin/patch
36 37
patches =
  ${openssl-nodoc.patch:location}/${openssl-nodoc.patch:filename}
38
  ${openssl-exlibs.patch:location}/${openssl-exlibs.patch:filename}
39
patch-options = -p0
40 41 42 43 44 45 46
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
47
  shared no-idea no-mdc2 no-rc5 zlib
Kazuhiko Shiozaki's avatar
typo.  
Kazuhiko Shiozaki committed
48
  -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${buildout:parts-directory}/${:_buildout_section_name_}/lib
49
  && make depend
50 51 52 53

# it seems that parallel build sometimes fails for openssl.
make-options =
  -j1
54
make-targets =
55
  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
56 57 58 59 60 61 62 63

[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