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

Diff of /eclass/mysql.eclass

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

Revision 1.28 Revision 1.29
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.28 2006/04/11 17:23:42 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.29 2006/04/12 21:15:17 chtekk Exp $
4# $ID: $ 4# $ID: $
5 5
6# Author: Francesco Riosa <vivo at gentoo.org> 6# Author: Francesco Riosa <vivo at gentoo.org>
7# Maintainer: Luca Longinotti <chtekk at gentoo.org> 7# Maintainer: Luca Longinotti <chtekk at gentoo.org>
8 8
75# 2005-11-19 <vivo at gentoo.org> 75# 2005-11-19 <vivo at gentoo.org>
76mysql_init_vars() { 76mysql_init_vars() {
77 77
78 MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR:-"/usr/share/mysql"} 78 MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR:-"/usr/share/mysql"}
79 MY_SYSCONFDIR=${MY_SYSCONFDIR="/etc/mysql"} 79 MY_SYSCONFDIR=${MY_SYSCONFDIR="/etc/mysql"}
80 MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql$"} 80 MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
81 MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"} 81 MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"}
82 MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"} 82 MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"}
83 MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"} 83 MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
84 84
85 if [ -z "${DATADIR}" ]; then 85 if [ -z "${DATADIR}" ]; then
270 else 270 else
271 myconf="${myconf} `use_with raid`" 271 myconf="${myconf} `use_with raid`"
272 fi 272 fi
273 fi 273 fi
274 274
275 if ! mysql_version_is_at_least "5.00.00.00" ; then
276 if mysql_version_is_at_least "4.01.00.00" ; then 275 if mysql_version_is_at_least "4.01.00.00" ; then
277 myconf="${myconf} --with-charset=utf8" 276 myconf="${myconf} --with-charset=utf8"
278 myconf="${myconf} --with-collation=utf8_general_ci" 277 myconf="${myconf} --with-collation=utf8_general_ci"
279 else 278 else
280 myconf="${myconf} --with-charset=latin1" 279 myconf="${myconf} --with-charset=latin1"
281 myconf="${myconf} --with-collation=latin1_swedish_ci" 280 myconf="${myconf} --with-collation=latin1_swedish_ci"
282 fi
283 fi 281 fi
284 282
285 # optional again from 2005-12-05 283 # optional again from 2005-12-05
286 if mysql_version_is_at_least "5.01.00.00" ; then 284 if mysql_version_is_at_least "5.01.00.00" ; then
287 myconf="${myconf} $(use_with innodb)" 285 myconf="${myconf} $(use_with innodb)"

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20