| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.11 2013/01/20 02:23:10 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.12 2013/01/20 02:41:59 robbat2 Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mysql-autotools.eclass |
5 | # @ECLASS: mysql-autotools.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # MySQL Team <mysql-bugs@gentoo.org> |
7 | # MySQL Team <mysql-bugs@gentoo.org> |
| 8 | # Robin H. Johnson <robbat2@gentoo.org> |
8 | # Robin H. Johnson <robbat2@gentoo.org> |
| … | |
… | |
| 603 | # Minimal builds don't have the MySQL server |
603 | # Minimal builds don't have the MySQL server |
| 604 | if ! use minimal ; then |
604 | if ! use minimal ; then |
| 605 | einfo "Creating initial directories" |
605 | einfo "Creating initial directories" |
| 606 | # Empty directories ... |
606 | # Empty directories ... |
| 607 | diropts "-m0750" |
607 | diropts "-m0750" |
|
|
608 | keepdir "${MY_DATADIR#${EPREFIX}}" |
| 608 | if [[ "${PREVIOUS_DATADIR}" != "yes" ]] ; then |
609 | if [[ "${PREVIOUS_DATADIR}" != "yes" ]] ; then |
| 609 | dodir "${MY_DATADIR#${EPREFIX}}" |
|
|
| 610 | keepdir "${MY_DATADIR#${EPREFIX}}" |
|
|
| 611 | chown -R mysql:mysql "${D}/${MY_DATADIR}" |
610 | chown -R mysql:mysql "${D}/${MY_DATADIR}" |
| 612 | fi |
611 | fi |
| 613 | |
612 | |
| 614 | diropts "-m0755" |
613 | diropts "-m0755" |
| 615 | for folder in "${MY_LOGDIR#${EPREFIX}}" "/var/run/mysqld" ; do |
614 | for folder in "${MY_LOGDIR#${EPREFIX}}" "/var/run/mysqld" ; do |