44 | | configure.args \ |
45 | | --mandir=${prefix}/share/man \ |
46 | | --infodir=${prefix}/share/info \ |
47 | | --localstatedir=${dbdir} \ |
48 | | --libdir=${prefix}/lib/${name} \ |
49 | | --bindir=${prefix}/lib/${name}/bin \ |
50 | | --includedir=${prefix}/include/${name} \ |
51 | | --datadir=${prefix}/share/${name} \ |
52 | | --sysconfdir=${prefix}/etc/${name} \ |
53 | | --with-zlib-dir=${prefix} \ |
54 | | --with-openssl=${prefix} \ |
55 | | --with-extra-charsets=complex \ |
56 | | --with-unix-socket-path=${prefix}/var/run/${name}/mysqld.sock \ |
57 | | --with-mysqld-user=${mysqluser} \ |
58 | | --without-bench \ |
59 | | --enable-thread-safe-client |
| 29 | use_configure no |
| 30 | build {} |
65 | | variant server { |
66 | | # Create a startupitem to start/stop the server |
67 | | startupitem.create yes |
68 | | startupitem.start "${prefix}/share/mysql5/mysql/mysql.server start" |
69 | | startupitem.stop "${prefix}/share/mysql5/mysql/mysql.server stop" |
70 | | } |
71 | | |
72 | | pre-destroot { |
73 | | # Some directories we must have in all cases |
74 | | xinstall -m 755 -d ${destroot}${prefix}/etc/${name} |
75 | | destroot.keepdirs-append ${destroot}${prefix}/etc/${name} |
| 37 | destroot { |
| 38 | addgroup ${mysqluser} |
| 39 | set gid [existsgroup ${mysqluser}] |
| 40 | adduser ${mysqluser} gid=${gid} realname=MySQL\ Server |
77 | | # Setup only for server |
78 | | if { [variant_isset server] } { |
79 | | addgroup ${mysqluser} |
80 | | set gid [existsgroup ${mysqluser}] |
81 | | adduser ${mysqluser} gid=${gid} realname=MySQL\ Server |
82 | | |
83 | | # Some directories we must have only if we're running as a server |
84 | | xinstall -m 755 -o root -d ${destroot}${prefix}/var/run |
85 | | |
86 | | xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \ |
87 | | ${destroot}${dbdir} \ |
88 | | ${destroot}${prefix}/var/run/${name} |
89 | | destroot.keepdirs-append \ |
90 | | ${destroot}${dbdir} \ |
91 | | ${destroot}${prefix}/var/run/${name} |
92 | | } |
93 | | } |
94 | | |
95 | | post-destroot { |
96 | | delete ${destroot}${prefix}/mysql-test |
| 42 | xinstall -m 755 -o root -d ${destroot}${prefix}/var/run |
98 | | # Symlink mysql binaries into bin directory, with a 5 appended to the name |
99 | | cd ${destroot}${prefix}/bin |
100 | | foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] { |
101 | | ln -sf ../lib/${name}/bin/${f} ${f}5 |
102 | | } |
| 44 | xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \ |
| 45 | ${destroot}${dbdir} \ |
| 46 | ${destroot}${prefix}/var/run/${mysql} |
| 47 | destroot.keepdirs-append \ |
| 48 | ${destroot}${dbdir} \ |
| 49 | ${destroot}${prefix}/var/run/${mysql} |
106 | | if { [variant_isset server] } { |
107 | | ui_msg "******************************************************" |
108 | | ui_msg "* In order to setup the database, you might want to run" |
109 | | ui_msg "* sudo -u ${mysqluser} mysql_install_db5" |
110 | | ui_msg "* if this is a new install" |
111 | | ui_msg "******************************************************" |
112 | | } |
| 53 | ui_msg "****************************************************************" |
| 54 | ui_msg "If this is a new MySQL server install, you might want to run:" |
| 55 | ui_msg "sudo -u ${mysqluser} mysql_install_db${major_version}" |
| 56 | ui_msg "to create the mysql and test databases" |
| 57 | ui_msg "****************************************************************" |