| 1 | # Copyright 1999-2009 Gentoo Foundation |
1 | # Copyright 1999-2009 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.eclass,v 1.159 2011/04/21 12:15:19 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.162 2011/08/19 20:06:12 jmbsvicetto Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mysql.eclass |
5 | # @ECLASS: mysql.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
7 | # Author: Francesco Riosa (Retired) <vivo@gentoo.org> |
| 8 | # Maintainers: MySQL Team <mysql-bugs@gentoo.org> |
8 | # Maintainers: MySQL Team <mysql-bugs@gentoo.org> |
| … | |
… | |
| 128 | DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d ) |
128 | DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d ) |
| 129 | userland_GNU? ( sys-process/procps ) |
129 | userland_GNU? ( sys-process/procps ) |
| 130 | >=sys-apps/sed-4 |
130 | >=sys-apps/sed-4 |
| 131 | >=sys-apps/texinfo-4.7-r1 |
131 | >=sys-apps/texinfo-4.7-r1 |
| 132 | >=sys-libs/readline-4.1 |
132 | >=sys-libs/readline-4.1 |
| 133 | >=sys-libs/zlib-1.2.3" |
133 | >=sys-libs/zlib-1.2.3 |
|
|
134 | virtual/yacc" |
| 134 | |
135 | |
| 135 | [[ "${PN}" == "mariadb" ]] \ |
136 | [[ "${PN}" == "mariadb" ]] \ |
| 136 | && DEPEND="${DEPEND} libevent? ( >=dev-libs/libevent-1.4 )" |
137 | && DEPEND="${DEPEND} libevent? ( >=dev-libs/libevent-1.4 )" |
| 137 | |
138 | |
| 138 | # Having different flavours at the same time is not a good idea |
139 | # Having different flavours at the same time is not a good idea |
| … | |
… | |
| 771 | # die if FEATURES="test", USE="-minimal" and not using FEATURES="userpriv" |
772 | # die if FEATURES="test", USE="-minimal" and not using FEATURES="userpriv" |
| 772 | # check for conflicting use flags |
773 | # check for conflicting use flags |
| 773 | # create new user and group for mysql |
774 | # create new user and group for mysql |
| 774 | # warn about deprecated features |
775 | # warn about deprecated features |
| 775 | mysql_pkg_setup() { |
776 | mysql_pkg_setup() { |
| 776 | if hasq test ${FEATURES} ; then |
777 | if has test ${FEATURES} ; then |
| 777 | if ! use minimal ; then |
778 | if ! use minimal ; then |
| 778 | if [[ $UID -eq 0 ]]; then |
779 | if [[ $UID -eq 0 ]]; then |
| 779 | eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
780 | eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
| 780 | fi |
781 | fi |
| 781 | fi |
782 | fi |
| … | |
… | |
| 1169 | done |
1170 | done |
| 1170 | fi |
1171 | fi |
| 1171 | |
1172 | |
| 1172 | # Docs |
1173 | # Docs |
| 1173 | einfo "Installing docs" |
1174 | einfo "Installing docs" |
| 1174 | dodoc README ChangeLog EXCEPTIONS-CLIENT INSTALL-SOURCE |
1175 | for i in README ChangeLog EXCEPTIONS-CLIENT INSTALL-SOURCE ; do |
|
|
1176 | [[ -f "$i" ]] && dodoc "$i" |
|
|
1177 | done |
| 1175 | doinfo "${S}"/Docs/mysql.info |
1178 | doinfo "${S}"/Docs/mysql.info |
| 1176 | |
1179 | |
| 1177 | # Minimal builds don't have the MySQL server |
1180 | # Minimal builds don't have the MySQL server |
| 1178 | if ! use minimal ; then |
1181 | if ! use minimal ; then |
| 1179 | einfo "Including support files and sample configurations" |
1182 | einfo "Including support files and sample configurations" |