diff --git a/buildout/mysql-tritonn-5.0/buildout.cfg b/buildout/mysql-tritonn-5.0/buildout.cfg
index 35b9720a117e9b716bf321b6a3e6c09ea3fa8dc9..97ff3c659efeea0bf36c9d5d536e66a191c08ee8 100644
--- a/buildout/mysql-tritonn-5.0/buildout.cfg
+++ b/buildout/mysql-tritonn-5.0/buildout.cfg
@@ -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}
diff --git a/buildout/mysql-tritonn-5.0/src/mysql_pre_configure.py b/buildout/mysql-tritonn-5.0/src/mysql_hooks.py
similarity index 59%
rename from buildout/mysql-tritonn-5.0/src/mysql_pre_configure.py
rename to buildout/mysql-tritonn-5.0/src/mysql_hooks.py
index b29496df657b90c6d48510cd212268f53e4e8eb5..8c1827bd1466454c9f502269d16f694484c408a7 100644
--- a/buildout/mysql-tritonn-5.0/src/mysql_pre_configure.py
+++ b/buildout/mysql-tritonn-5.0/src/mysql_hooks.py
@@ -1,3 +1,4 @@
+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