Commit e950352f authored by Nicolas Dumazet's avatar Nicolas Dumazet

Make sure that a /var directory is created after installation,

or mysqld wont start.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32406 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7351f46e
......@@ -20,7 +20,8 @@ download-only = true
[mysql-tritonn-5.0]
recipe = hexagonit.recipe.cmmi
url = http://downloads.mysql.com/archives/mysql-5.0/mysql-5.0.87.tar.gz
pre-configure-hook = ${buildout:directory}/mysql-tritonn-5.0/src/mysql_pre_configure.py:hook
pre-configure-hook = ${buildout:directory}/mysql-tritonn-5.0/src/mysql_hooks.py:pre_configure_hook
post-make-hook = ${buildout:directory}/mysql-tritonn-5.0/src/mysql_hooks.py:post_make_hook
configure-options = --with-senna --without-mecab --enable-thread-safe-client
patch-options = -p1
patches = ${tritonn-patch:location}/${tritonn-patch:patch}
......
import errno
import os
# the comand below assumes there is only one sub-directory under the
......@@ -12,5 +13,12 @@ autoconf
touch sql/sql_yacc.yy
""".strip()
def hook(options, buildout):
def pre_configure_hook(options, buildout):
os.system(CMDS % options['compile-directory'])
def post_make_hook(options, buildout):
try:
os.mkdir("%s/var" % options['location'])
except OSError, e:
if e.errno != errno.EEXIST:
raise
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