specify patch and hook files directly in parts using slapos.recipe.cmmi.
[slapos.git] / component / boa / buildout.cfg
1 [buildout]
2
3 parts = boa
4
5 [boa-patch-ENOSYS]
6 recipe = hexagonit.recipe.download
7 url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-servers/boa/files/boa-0.94.14_rc21-ENOSYS.patch?revision=1.1
8 filename = boa-0.94.14_rc21-ENOSYS.patch
9 md5sum = 7206b342195961501ed1eae38486e5db
10 download-only = true
11
12
13 [boa]
14 recipe = slapos.recipe.build
15 url = http://www.boa.org/boa-0.94.14rc21.tar.gz
16 md5sum = e24b570bd767a124fcfb40a34d148ba9
17 patches =
18     ${boa-patch-ENOSYS:location}/${boa-patch-ENOSYS:filename}
19 slapos_promise =
20     directory:bin/
21     file:bin/boa
22     file:bin/boa_indexer
23 script = 
24     import shutil
25     import os
26     url = self.download(self.options['url'], self.options['md5sum'])
27     extract_dir = self.extract(url)
28     workdir = guessworkdir(extract_dir)
29     self.applyPatchList(self.options.get('patches'), '-p1', cwd=workdir)
30     call(['./configure'], cwd=workdir)
31     call(['make'], cwd=workdir)
32     # Installation of boa. Manually, no make install
33     os.makedirs('%(location)s/bin/')
34     shutil.copyfile(workdir + '/src/boa', '%(location)s/bin/boa')
35     os.chmod('%(location)s/bin/boa', 0755)
36     shutil.copyfile(workdir + '/src/boa_indexer', '%(location)s/bin/boa_indexer')
37     os.chmod('%(location)s/bin/boa_indexer', 0755)