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

Diff of /eclass/mysql_fx.eclass

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

Revision 1.24 Revision 1.25
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/mysql_fx.eclass,v 1.24 2011/07/14 02:11:32 jmbsvicetto Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.25 2011/07/29 02:51:25 jmbsvicetto Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
6# Maintainer: 6# Maintainer:
7# - MySQL Team <mysql-bugs@gentoo.org> 7# - MySQL Team <mysql-bugs@gentoo.org>
8# - Luca Longinotti <chtekk@gentoo.org> 8# - Luca Longinotti <chtekk@gentoo.org>
227mysql_init_vars() { 227mysql_init_vars() {
228 MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR="/usr/share/mysql"} 228 MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR="/usr/share/mysql"}
229 MY_SYSCONFDIR=${MY_SYSCONFDIR="/etc/mysql"} 229 MY_SYSCONFDIR=${MY_SYSCONFDIR="/etc/mysql"}
230 MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"} 230 MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"}
231 MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"} 231 MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"}
232 if [[ ${PN} == "mariadb" ]]; then
233 MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"} 232 MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
234 MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"} 233 MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
235 else
236 MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include"}
237 MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)"}
238 fi
239 234
240 if [[ -z "${MY_DATADIR}" ]] ; then 235 if [[ -z "${MY_DATADIR}" ]] ; then
241 MY_DATADIR="" 236 MY_DATADIR=""
242 if [[ -f "${MY_SYSCONFDIR}/my.cnf" ]] ; then 237 if [[ -f "${MY_SYSCONFDIR}/my.cnf" ]] ; then
243 MY_DATADIR=`"my_print_defaults" mysqld 2>/dev/null \ 238 MY_DATADIR=`"my_print_defaults" mysqld 2>/dev/null \

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20