Merge remote-tracking branch 'origin/master' into erp5testnode
[slapos.git] / component / busybox / buildout.cfg
1 [buildout]
2
3 parts = busybox
4
5 [busybox-patch-download]
6 recipe = hexagonit.recipe.download
7 url = ${:_profile_base_location_}/${:filename}
8 md5sum = 292498db86c46e101bb14bf2c74c36f0
9 download-only = true
10 filename = busybox-1_20_2.patch
11
12 [busybox]
13 recipe = slapos.recipe.build
14 url = http://git.busybox.net/busybox/snapshot/busybox-1_20_2.tar.gz
15 md5sum = 025acebb48040ef62dd635d416d317e8
16 patches =
17     ${busybox-patch-download:location}/${busybox-patch-download:filename}
18 script =
19     extract_dir = self.extract(self.download(%(url)r, %(md5sum)r))
20     workdir = guessworkdir(extract_dir)
21     self.applyPatchList(self.options.get('patches'), '-p1', cwd=workdir)
22     self.logger.info("Creating default configuration")
23     call(['make', 'defconfig'], cwd=workdir, env=env)
24     self.logger.info("Building")
25     call(['make'], cwd=workdir, env=env)
26     self.logger.info("Installing")
27     call(['make', 'CONFIG_PREFIX=%(location)s', 'install'], cwd=workdir, env=env)
28     self.logger.info("Installation finished")