specify patch and hook files directly in parts using slapos.recipe.cmmi.
[slapos.git] / component / busybox / buildout.cfg
1 [buildout]
2
3 parts = busybox
4
5 [busybox]
6 recipe = slapos.recipe.build
7 url = http://git.busybox.net/busybox/snapshot/busybox-1_20_2.tar.gz
8 md5sum = 025acebb48040ef62dd635d416d317e8
9 patches =
10     ${:_profile_base_location_}/busybox-1_20_2.patch#292498db86c46e101bb14bf2c74c36f0
11 script =
12     extract_dir = self.extract(self.download(%(url)r, %(md5sum)r))
13     workdir = guessworkdir(extract_dir)
14     self.applyPatchList(self.options.get('patches'), '-p1', cwd=workdir)
15     self.logger.info("Creating default configuration")
16     call(['make', 'defconfig'], cwd=workdir, env=env)
17     self.logger.info("Building")
18     call(['make'], cwd=workdir, env=env)
19     self.logger.info("Installing")
20     call(['make', 'CONFIG_PREFIX=%(location)s', 'install'], cwd=workdir, env=env)
21     self.logger.info("Installation finished")