buildout.cfg 3.24 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-common]
18
recipe = slapos.recipe.cmmi
19
shared = true
20 21
location = @@LOCATION@@
# 'prefix' option to override --openssldir/--prefix (which is useful
22
# when combined with DESTDIR). Used by slapos.package.git/obs
23
prefix = ${:location}
24
make-install-extra =
25 26 27 28 29 30 31 32 33 34 35 36 37 38
certs = ${:location}/etc/ssl/certs
configure-command = ./config
configure-options =
  --with-zlib-include=${zlib:location}/include
  --with-zlib-lib=${zlib:location}/lib
  --openssldir=${:prefix}/etc/ssl
  --prefix=${:prefix}
  --libdir=lib
  shared no-idea no-mdc2 no-rc5 zlib
  -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${:location}/lib
  && make depend
make-options =
  SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib'
make-targets =
39
  -j1 install_sw install_ssldirs ${:make-install-extra} &&
40 41
  rm -f ${:certs}/* &&
  for i in ${ca-certificates:location}/certs/*/*.crt; do
42
    ln -sfv $i ${:certs}/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
43 44
  ; done
environment =
45
  PATH=${perl:location}/bin:%(PATH)s
46

47 48 49 50 51
[openssl-3.0]
<= openssl-common
url = https://www.openssl.org/source/openssl-3.0.13.tar.gz
md5sum = c15e53a62711002901d3515ac8b30b86

52
[openssl-quictls]
53
<= openssl-3.0
54 55
url = https://github.com/quictls/openssl/archive/refs/tags/openssl-3.0.13-quic1.tar.gz
md5sum = ff6a1f5fc5e7ea03aba9c97e7f26d97d
56

57 58 59 60 61 62 63 64
[openssl-1.1]
<= openssl-common
url = https://www.openssl.org/source/openssl-1.1.1w.tar.gz
md5sum = 3f76825f195e52d4b10c70040681a275

[openssl]
<= openssl-3.0

65 66 67 68 69 70 71
[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
72
bin = ${openssl:location}
73 74 75 76

[openssl-1.0]
recipe = slapos.recipe.cmmi
shared = true
77 78
url = https://www.openssl.org/source/openssl-1.0.2u.tar.gz
md5sum = cdc2638f789ecc2db2c91488265686c1
79
location = @@LOCATION@@
80 81 82
# 'prefix' option to override --openssldir/--prefix (which is useful
# when combined with INSTALL_PREFIX). Used by slapos.package.git/obs
prefix = ${:location}
83
patch-binary = ${patch:location}/bin/patch
84
patches =
85
  ${:_profile_base_location_}/openssl-nodoc.patch#a78c14908fe9ec624b1fb9fa97e01bb9
86
  ${:_profile_base_location_}/openssl-1.0.2d-parallel-build.patch#e4cf66a48a85a0da68fd4842e6fab54b
87
patch-options = -p1
88 89 90 91
configure-command = ./config
configure-options =
  -I${zlib:location}/include
  -L${zlib:location}/lib
92 93
  --openssldir=${:prefix}/etc/ssl
  --prefix=${:prefix}
94
  --libdir=lib
95
  shared no-idea no-mdc2 no-rc5 zlib
96
  -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${:location}/lib
97
  && make depend
98 99
make-options =
  SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib'
100
make-targets =
101 102
  install_sw && x=${:location}/etc/ssl/certs && rm -f $x/* &&
  for i in ${ca-certificates:location}/certs/*/*.crt; do
103
    ln -sfv $i $x/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
104
  ; done
105 106
environment =
  PERL=${perl:location}/bin/perl