Commit 78c9001d authored by Mayoro Diagne's avatar Mayoro Diagne

adding patch section for phpbms, remove gitorious references of path files

parent b5b50235
...@@ -8,32 +8,49 @@ parts = ...@@ -8,32 +8,49 @@ parts =
eggs eggs
instance-recipe-egg instance-recipe-egg
downloadcache-workaround downloadcache-workaround
phpbms-patch
patch
extends = extends =
http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/lamp.cfg http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/lamp.cfg
http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/shacache-client.cfg http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/shacache-client.cfg
allow-hosts += alastairs-place.net [phpbms-patch]
recipe = slapos.recipe.download
url = http://git.erp5.org/gitweb/slapos.git/blob_plain/8ee03078582ccc2410836ea90e30959d216480bc:/software/phpbms/phpbms_for_mysql5.patch
md5sum = ddf323ac00e9e486cea8b8cc4277e065
download-only = True
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = phpbms_for_mysql5.patch
[application] [application]
recipe = hexagonit.recipe.download recipe = slapos.recipe.build
url = http://www.phpsources.org/zip_/phpbms-0.96.tar.gz url = http://www.phpbms.org/files/phpbms/phpbms-0.98.tar.gz
#md5sum = Student may put here md5sum of this file, this is good idea md5sum = 3907c5115cf9acaab7cb5d22ce0534b7
#If provided tarball does not contain top directory, option shall be changed to false script =
#strip-top-level-dir = true if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
workdir = guessworkdir(extract_dir)
self.copyTree(workdir, "${buildout:parts-directory}/${:_buildout_section_name_}")
[patch]
recipe = iw.recipe.cmd
on_install = true
on_update = true
cmds= patch -d ${application:location} -p1 < ${phpbms-patch:location}/${phpbms-patch:filename}
[application-template] [application-template]
recipe = slapos.recipe.download recipe = slapos.recipe.download
url = https://gitorious.org/~mayoro/slapos/yoro-slapos/blobs/raw/master/software/phpbms/template/settings.php.in url = http://git.erp5.org/gitweb/slapos.git/blob_plain/8ee03078582ccc2410836ea90e30959d216480bc:/software/phpbms/template/settings.php.in
#md5sum = Student may put here md5sum of this file, this is good idea #md5sum = a60038aff02e4bf5049e9f55f16e8ed5
download-only = True download-only = True
filename = template.in filename = template.in
mode = 0644 mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
[application-configuration] [application-configuration]
location = phpbms/settings.php location = settings.php
[instance-recipe] [instance-recipe]
egg = slapos.cookbook egg = slapos.cookbook
module = lamp.simple module = lamp.simple
...@@ -49,12 +66,14 @@ mode = 0644 ...@@ -49,12 +66,14 @@ mode = 0644
[instance-recipe-egg] [instance-recipe-egg]
recipe = zc.recipe.egg recipe = zc.recipe.egg
python = python2.7 python = python2.7
eggs = ${instance-recipe:egg} eggs =
${mysql-python:egg}
${instance-recipe:egg}
slapos.toolbox[lampconfigure]
[versions] [versions]
# Use SlapOS patched zc.buildout # Use SlapOS patched zc.buildout
zc.buildout = 1.5.3-dev-SlapOS-010 zc.buildout = 1.5.3-dev-SlapOS-010
slapos.cookbook = 0.31
[downloadcache-workaround] [downloadcache-workaround]
# workaround irritating problem of hexagonit.recipe.cmmi which automatically # workaround irritating problem of hexagonit.recipe.cmmi which automatically
...@@ -67,4 +86,3 @@ download-cache = ${buildout:directory}/downloads ...@@ -67,4 +86,3 @@ download-cache = ${buildout:directory}/downloads
command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
update-command = ${:command} update-command = ${:command}
stop-on-error = True stop-on-error = True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment