1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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/Attic/mysql.eclass,v 1.101 2008/11/20 20:44:33 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.102 2008/11/29 02:30:43 robbat2 Exp $ |
4 | |
4 | |
5 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
5 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
6 | # Maintainer: MySQL Team <mysql-bugs@gentoo.org> |
6 | # Maintainer: MySQL Team <mysql-bugs@gentoo.org> |
7 | # - Luca Longinotti <chtekk@gentoo.org> |
7 | # - Luca Longinotti <chtekk@gentoo.org> |
8 | # - Robin H. Johnson <robbat2@gentoo.org> |
8 | # - Robin H. Johnson <robbat2@gentoo.org> |
… | |
… | |
491 | eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
491 | eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
492 | fi |
492 | fi |
493 | fi |
493 | fi |
494 | fi |
494 | fi |
495 | |
495 | |
496 | # Bug #213475 - MySQL _will_ object strenously if your machine is named |
|
|
497 | # localhost. Also causes weird failures. |
|
|
498 | [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
|
|
499 | |
|
|
500 | # Check for USE flag problems in pkg_setup |
496 | # Check for USE flag problems in pkg_setup |
501 | if use static && use ssl ; then |
497 | if use static && use ssl ; then |
502 | eerror "MySQL does not support being built statically with SSL support enabled!" |
498 | eerror "MySQL does not support being built statically with SSL support enabled!" |
503 | die "MySQL does not support being built statically with SSL support enabled!" |
499 | die "MySQL does not support being built statically with SSL support enabled!" |
504 | fi |
500 | fi |
… | |
… | |
849 | ewarn "You have already a MySQL database in place." |
845 | ewarn "You have already a MySQL database in place." |
850 | ewarn "(${ROOT}/${MY_DATADIR}/*)" |
846 | ewarn "(${ROOT}/${MY_DATADIR}/*)" |
851 | ewarn "Please rename or delete it if you wish to replace it." |
847 | ewarn "Please rename or delete it if you wish to replace it." |
852 | die "MySQL database already exists!" |
848 | die "MySQL database already exists!" |
853 | fi |
849 | fi |
|
|
850 | |
|
|
851 | # Bug #213475 - MySQL _will_ object strenously if your machine is named |
|
|
852 | # localhost. Also causes weird failures. |
|
|
853 | [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
854 | |
854 | |
855 | einfo "Creating the mysql database and setting proper" |
855 | einfo "Creating the mysql database and setting proper" |
856 | einfo "permissions on it ..." |
856 | einfo "permissions on it ..." |
857 | |
857 | |
858 | einfo "Insert a password for the mysql 'root' user" |
858 | einfo "Insert a password for the mysql 'root' user" |