Compile libcap and attr with lxc
[slapos.git] / component / lxc / buildout.cfg
1 [buildout]
2
3 extends =
4   ../patch/buildout.cfg
5   ../attr/buildout.cfg
6   ../libcap/buildout.cfg
7
8 parts = lxc
9
10 [lxc]
11 <= lxc-0.8
12
13 [lxc-0.8.0-rc2-libexecdir-patch]
14 recipe = hexagonit.recipe.download
15 url = ${:_profile_base_location_}/${:filename}
16 filename = libexecdir-fix.patch
17 download-only = true
18 md5sum = d674463ccb3a7c205c2326fb4ab5436b
19
20 [lxc-0.8.0-rc2-lxc-ls-patch]
21 recipe = hexagonit.recipe.download
22 url = ${:_profile_base_location_}/${:filename}
23 filename = lxc-ls-fix.patch
24 download-only = true
25 md5sum = 28c155a554d4f4856351085494585c73
26
27 [lxc-0.8.0-rc2-cap_get_flag-patch]
28 recipe = hexagonit.recipe.download
29 url = ${:_profile_base_location_}/${:filename}
30 filename = cap_get_flag-fix.patch
31 download-only = true
32 md5sum = 8d3706a9bd60b6ebfea33998644b1a99
33
34 [lxc-0.8]
35 recipe = hexagonit.recipe.cmmi
36 url = http://lxc.sourceforge.net/download/lxc/lxc-0.8.0-rc2.tar.gz
37 md5sum = 9bd6988542fd7dd198d056ef3a2db9f6
38 patch-binary = ${patch:location}/bin/patch
39 patch-options = -p1
40 patches =
41   ${lxc-0.8.0-rc2-cap_get_flag-patch:location}/${lxc-0.8.0-rc2-cap_get_flag-patch:filename}
42   ${lxc-0.8.0-rc2-libexecdir-patch:location}/${lxc-0.8.0-rc2-libexecdir-patch:filename}
43   ${lxc-0.8.0-rc2-lxc-ls-patch:location}/${lxc-0.8.0-rc2-lxc-ls-patch:filename}
44 environment =
45   PATH=%(PATH)s:${attr:location}/bin/:${libcap:location}/sbin/
46   CFLAGS=-I${libcap:location}/usr/include
47   LDFLAGS=-L${libcap:location}/lib/ -Wl,-rpath=${libcap:location}/lib/