buildout.cfg 1.58 KB
Newer Older
1 2 3 4 5 6 7
########################################################
# Dropbear - a secure shell client and server for *nix #
#                                                      #
# http://matt.ucc.asn.au/dropbear/dropbear.html        #
########################################################

[buildout]
8
extends =
9
  ../zlib/buildout.cfg
10
  ../coreutils/buildout.cfg
11 12

parts =
13
  dropbear-output
14 15

[dropbear]
16
recipe = slapos.recipe.cmmi
17
md5sum = 0284ea239083f04c8b874e08e1aca243
Antoine Catton's avatar
Antoine Catton committed
18 19 20
# XXX: We still use an old version of dropbear instead of the last one
#      in order have all patches working.
url = http://matt.ucc.asn.au/dropbear/releases/dropbear-0.53.1.tar.bz2
21 22 23 24

configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --with-zlib=${zlib:location}
25
  CFLAGS="-DENABLE_SINGLEUSER -D__DIRTY_NO_SHELL_CHECKING"
26 27 28 29 30 31

environment =
  CPPFLAGS =-I${zlib:location}/include
  LDFLAGS =-Wl,-rpath=${zlib:location}/lib -L${zlib:location}/lib

patches=
32 33 34 35
  ${:_profile_base_location_}/userspace.patch#3d934c2c90e8c57536a4fa2cf8ad216d
  ${:_profile_base_location_}/ipv6-support.patch#b30dd58d68829a80eee69188134382ef
  ${:_profile_base_location_}/no-shell-checking.patch#bb2ac410bd4cb2b07c23bfcc712e45f7
  ${:_profile_base_location_}/dropbear-0.53.1-static_build_fix.patch#6e0ccc1949dfa31b4bc3951b9bb6472e
36 37 38

patch-options=
  -p1
39 40 41 42 43 44 45 46 47

[dropbear-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 = ${dropbear:location}/bin/dbclient
keygen = ${dropbear:location}/bin/dropbearkey