buildout.cfg 1.24 KB
Newer Older
1
[buildout]
2 3
extends =
  ../patch/buildout.cfg
4

5 6 7 8 9 10 11
# https://bugs.busybox.net/show_bug.cgi?id=4838
[busybox-1.19.3.packed_hack.patch]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = faa5ce46be086763202d7ca24601fbde
filename = busybox-1.19.3.packed_hack.patch
download-only = true
12 13 14

[busybox]
recipe = slapos.recipe.build
15 16
url = http://busybox.net/downloads/busybox-1.19.4.tar.bz2
md5sum = 9c0cae5a0379228e7b55e5b29528df8e
17 18 19 20
patch-binary = ${patch:location}/bin/patch
patch-options = -p1
patches =
  ${busybox-1.19.3.packed_hack.patch:location}/${busybox-1.19.3.packed_hack.patch:filename}
21 22 23
script =
    extract_dir = self.extract(self.download(%(url)r, %(md5sum)r))
    workdir = guessworkdir(extract_dir)
24 25
    self.applyPatchList(self.options.get('patches'), self.options.get('patch-options'), self.options.get('patch-binary'), workdir)
    call(['patch', 'defconfig'], cwd=workdir, env=env)
26 27 28 29 30 31 32
    self.logger.info("Creating default configuration")
    call(['make', 'defconfig'], cwd=workdir, env=env)
    self.logger.info("Building")
    call(['make'], cwd=workdir, env=env)
    self.logger.info("Installing")
    call(['make', 'CONFIG_PREFIX=%(location)s', 'install'], cwd=workdir, env=env)
    self.logger.info("Installation finished")