Blame view

component/openssl/buildout.cfg 2.86 KB
Łukasz Nowak committed
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 =
Kazuhiko Shiozaki committed
8
  ../ca-certificates/buildout.cfg
Romain Courteaud committed
9
  ../coreutils/buildout.cfg
Kazuhiko Shiozaki committed
10 11 12
  ../patch/buildout.cfg
  ../perl/buildout.cfg
  ../zlib/buildout.cfg
Łukasz Nowak committed
13 14

parts =
Romain Courteaud committed
15
  openssl-output
Łukasz Nowak committed
16 17

[openssl]
18
recipe = slapos.recipe.cmmi
Yusei Tahara committed
19
shared = true
Łukasz Nowak committed
20 21
url = https://www.openssl.org/source/openssl-1.1.0j.tar.gz
md5sum = b4ca5b78ae6ae79da80790b30dbedbdc
Arnaud Fontaine committed
22 23
location = @@LOCATION@@
# 'prefix' option to override --openssldir/--prefix (which is useful
Killian Lufau committed
24
# when combined with DESTDIR). Used by slapos.package.git/obs
Arnaud Fontaine committed
25
prefix = ${:location}
Killian Lufau committed
26
make-install-extra =
Arnaud Fontaine committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40
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 =
Killian Lufau committed
41
  -j1 install_sw install_ssldirs ${:make-install-extra} &&
Arnaud Fontaine committed
42 43
  rm -f ${:certs}/* &&
  for i in ${ca-certificates:location}/certs/*/*.crt; do
Rafael Monnerat committed
44
    ln -sfv $i ${:certs}/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
Arnaud Fontaine committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
  ; done
environment =
  PERL=${perl:location}/bin/perl

[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

[openssl-1.0]
recipe = slapos.recipe.cmmi
shared = true
Kazuhiko Shiozaki committed
60 61
url = https://www.openssl.org/source/openssl-1.0.2p.tar.gz
md5sum = ac5eb30bf5798aa14b1ae6d0e7da58df
Yusei Tahara committed
62
location = @@LOCATION@@
Julien Muchembled committed
63 64 65
# 'prefix' option to override --openssldir/--prefix (which is useful
# when combined with INSTALL_PREFIX). Used by slapos.package.git/obs
prefix = ${:location}
Antoine Catton committed
66
patch-binary = ${patch:location}/bin/patch
67
patches =
Kazuhiko Shiozaki committed
68
  ${:_profile_base_location_}/openssl-nodoc.patch#a78c14908fe9ec624b1fb9fa97e01bb9
Kazuhiko Shiozaki committed
69
  ${:_profile_base_location_}/openssl-1.0.2d-parallel-build.patch#e4cf66a48a85a0da68fd4842e6fab54b
Kirill Smelkov committed
70
patch-options = -p1
Łukasz Nowak committed
71 72 73 74
configure-command = ./config
configure-options =
  -I${zlib:location}/include
  -L${zlib:location}/lib
Julien Muchembled committed
75 76
  --openssldir=${:prefix}/etc/ssl
  --prefix=${:prefix}
Łukasz Nowak committed
77
  --libdir=lib
Kazuhiko Shiozaki committed
78
  shared no-idea no-mdc2 no-rc5 zlib
Julien Muchembled committed
79
  -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${:location}/lib
Jérome Perrin committed
80
  && make depend
Kazuhiko Shiozaki committed
81 82
make-options =
  SHARED_LDFLAGS='-Wl,-rpath=${:location}/lib -Wl,-rpath=${zlib:location}/lib'
Kazuhiko Shiozaki committed
83
make-targets =
Julien Muchembled committed
84 85
  install_sw && x=${:location}/etc/ssl/certs && rm -f $x/* &&
  for i in ${ca-certificates:location}/certs/*/*.crt; do
Rafael Monnerat committed
86
    ln -sfv $i $x/`${:location}/bin/openssl x509 -hash -noout -in $i`.0
Julien Muchembled committed
87
  ; done
Kazuhiko Shiozaki committed
88 89
environment =
  PERL=${perl:location}/bin/perl