Merged master branch in order to update gtk related improvements.
[slapos.git] / component / busybox / buildout.cfg
1 [buildout]
2 extends =
3   ../patch/buildout.cfg
4
5 # https://bugs.busybox.net/show_bug.cgi?id=4838
6 [busybox-1.19.3.packed_hack.patch]
7 recipe = hexagonit.recipe.download
8 url = ${:_profile_base_location_}/${:filename}
9 md5sum = faa5ce46be086763202d7ca24601fbde
10 filename = busybox-1.19.3.packed_hack.patch
11 download-only = true
12
13 [busybox]
14 recipe = slapos.recipe.build
15 url = http://busybox.net/downloads/busybox-1.19.4.tar.bz2
16 md5sum = 9c0cae5a0379228e7b55e5b29528df8e
17 patch-binary = ${patch:location}/bin/patch
18 patch-options = -p1
19 patches =
20   ${busybox-1.19.3.packed_hack.patch:location}/${busybox-1.19.3.packed_hack.patch:filename}
21 script =
22     extract_dir = self.extract(self.download(%(url)r, %(md5sum)r))
23     workdir = guessworkdir(extract_dir)
24     self.applyPatchList(self.options.get('patches'), self.options.get('patch-options'), self.options.get('patch-binary'), workdir)
25     call(['patch', 'defconfig'], cwd=workdir, env=env)
26     self.logger.info("Creating default configuration")
27     call(['make', 'defconfig'], cwd=workdir, env=env)
28     self.logger.info("Building")
29     call(['make'], cwd=workdir, env=env)
30     self.logger.info("Installing")
31     call(['make', 'CONFIG_PREFIX=%(location)s', 'install'], cwd=workdir, env=env)
32     self.logger.info("Installation finished")