buildout.cfg 1.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
# This is data only part of buildout for mysql with senna
# made by Leonardo Rochael Almeida <leorochael@gmail.com> (thanks!)
# Original place: https://svn.erp5.org/repos/public/experimental/mysqlsenna.buildout/

[buildout]
parts =
    ports
    env
    mysql-bin
    mysql-admin
    mysql_install_db
    mycnf
13
    mysqld-bin
14 15 16 17 18 19 20 21 22 23 24 25 26

[ports]
recipe = plone.recipe.command
command = 
    echo The following configuration items are active for this buildout
    echo MySQL: ${:mysql}
mysql = 10002

[env]
recipe = gocept.recipe.env

[mysql-bin]
recipe = collective.recipe.template
27
input = ${buildout:directory}/mysql-instance/templates/mysql.in
28 29 30 31
output = ${buildout:directory}/bin/mysql

[mysql-admin]
recipe = collective.recipe.template
32
input = ${buildout:directory}/mysql-instance/templates/mysqladmin.in
33
output = ${buildout:directory}/bin/mysqladmin
34

35 36 37 38 39
[mysqld-bin]
recipe = collective.recipe.template
input = ${buildout:directory}/mysql-instance/templates/mysqld.in
output = ${buildout:directory}/bin/mysqld

40 41 42
[mysql_install_db]
recipe = plone.recipe.command
command = 
43
    ${software_definition:mysql_software}/bin/mysql_install_db --datadir=${mycnf:datadir}
44 45 46 47 48
update-command = ${mysql_install_db:command}

[mycnf]
recipe = plone.recipe.command
command =
49
basedir=${software_definition:mysql_software}
50 51 52
datadir=${buildout:mysql_datadir}
# files shall be in better places
pid=${:datadir}/mysql.pid
53
err = ${buildout:directory}/var/mysql.err.log
54
sock = ${:datadir}/mysql.sock
55
opt = --port=${ports:mysql} --pid-file=${:pid} --log-error=${:err} --basedir=${:basedir} --datadir=${:datadir} --socket=${:sock} --no-defaults