/[gentoo-x86]/eclass/mysql.eclass
Gentoo

Diff of /eclass/mysql.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.10 2006/01/24 23:56:01 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.11 2006/01/31 00:55:36 vivo Exp $
4 4
5# Author: Francesco Riosa <vivo at gentoo.org> 5# Author: Francesco Riosa <vivo at gentoo.org>
6# Maintainer: Francesco Riosa <vivo at gentoo.org> 6# Maintainer: Francesco Riosa <vivo at gentoo.org>
7 7
8inherit eutils flag-o-matic gnuconfig mysql_fx 8inherit eutils flag-o-matic gnuconfig mysql_fx
427 "${FILESDIR}/my.cnf-4.1-r1" \ 427 "${FILESDIR}/my.cnf-4.1-r1" \
428 > "${TMPDIR}/my.cnf.ok" 428 > "${TMPDIR}/my.cnf.ok"
429 newins "${TMPDIR}/my.cnf.ok" my.cnf 429 newins "${TMPDIR}/my.cnf.ok" my.cnf
430 430
431 insinto "/etc/conf.d" 431 insinto "/etc/conf.d"
432 newins "${FILESDIR}/mysql-slot.conf.d-r2" "mysql" 432 newins "${FILESDIR}/mysql-slot.conf.d-r1" "mysql"
433 mysql_version_is_at_least "5.00.11.00" \ 433 mysql_version_is_at_least "5.00.11.00" \
434 && newins "${FILESDIR}/mysqlmanager-slot.conf.d" "mysqlmanager" 434 && newins "${FILESDIR}/mysqlmanager-slot.conf.d" "mysqlmanager"
435 435
436 # minimal builds don't have the server 436 # minimal builds don't have the server
437 if ! useq minimal; then 437 if ! useq minimal; then
438 exeinto /etc/init.d 438 exeinto /etc/init.d
439 newexe "${FILESDIR}/mysql-slot.rc6-r2" "mysql" 439 newexe "${FILESDIR}/mysql-slot.rc6-r3" "mysql"
440 [[ ${SLOT} -gt 0 ]] && dosym "/etc/init.d/mysql" "/etc/init.d/mysql${MY_SUFFIX}"
441 440
442 mysql_version_is_at_least "5.00.11.00" \ 441 mysql_version_is_at_least "5.00.11.00" \
443 && newexe "${FILESDIR}/mysqlmanager-slot.rc6" "mysqlmanager" 442 && newexe "${FILESDIR}/mysqlmanager-slot.rc6" "mysqlmanager"
444 insinto /etc/logrotate.d 443 insinto /etc/logrotate.d
445 sed -e "s!___MY_SUFFIX___!${MY_SUFFIX}!g" \ 444 sed -e "s!___MY_SUFFIX___!${MY_SUFFIX}!g" \
526 popd &>/dev/null 525 popd &>/dev/null
527 526
528 if ! useq minimal; then 527 if ! useq minimal; then
529 if [[ ${SLOT} -gt 0 ]] ; then 528 if [[ ${SLOT} -gt 0 ]] ; then
530 if [[ -f "${ROOT}/usr/sbin/mysqld" ]] ; then 529 if [[ -f "${ROOT}/usr/sbin/mysqld" ]] ; then
531 einfo "you may want to run unmerge any unslotted MySQL versions with " 530 einfo "you may want to read:"
532 einfo "emerge -C --pretend dev-db/mysql" 531 einfo "http://www.gentoo.org/doc/en/mysql-upgrade-slotted.xml"
533 einfo "emerge -C =dev-db/mysql-X.Y.Z"
534 einfo "After the unmerge run \"eselect myqsl list\" followed by a "
535 einfo "\"eselect myqsl set 1\" to chose the default mysql server"
536 else 532 else
537 local tmpres="$( eselect mysql show )" 533 local tmpres="$( eselect mysql show )"
538 # "like grep -q unset" 534 # "like grep -q unset"
539 if [[ "{$tmpres}" == "{$tmpres/unset/}" ]] ; then 535 if [[ "{$tmpres}" == "{$tmpres/unset/}" ]] ; then
540 eselect mysql set 1 536 eselect mysql set 1

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20