buildout.cfg 1.48 KB
Newer Older
Antoine Catton's avatar
Antoine Catton committed
1 2 3 4 5 6 7 8 9
################################################################
# OpenSSH Portable - a secure shell client and server for *nix #
#                                                              #
# http://www.openssh.com/                                      #
################################################################

[buildout]
extends = 
  ../openssl/buildout.cfg
10 11
  ../patch/buildout.cfg
  ../zlib/buildout.cfg
Antoine Catton's avatar
Antoine Catton committed
12 13 14 15 16

parts =
  openssh

[openssh]
17
recipe = slapos.recipe.cmmi
18 19
md5sum = 68ba883aff6958297432e5877e9a0fe2
url = https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.7p1.tar.gz
20
patch-binary = ${patch:location}/bin/patch
21
patch-options = -p1
22
patches =
23
  ${:_profile_base_location_}/no_create_privsep_path.patch#f341dc11d73df6f43c7ae1fa47b8c003
24
environment = 
25 26
  CPPFLAGS=-I${zlib:location}/include -I${openssl-1.0:location}/include
  LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${openssl-1.0:location}/lib -Wl,-rpath=${openssl-1.0:location}/lib
27
configure-options = 
Antoine Catton's avatar
Antoine Catton committed
28
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
29
  --exec-prefix=${buildout:parts-directory}/${:_buildout_section_name_}
30 31 32 33 34 35 36 37 38 39
  --with-privsep-path=${buildout:parts-directory}/${:_buildout_section_name_}/var/empty

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