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

Diff of /eclass/mysql.eclass

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

Revision 1.178 Revision 1.179
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.178 2014/01/08 06:20:29 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.179 2014/07/19 10:18:41 grobian Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
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>
456 456
457configure_common() { 457configure_common() {
458 myconf="${myconf} $(use_with big-tables)" 458 myconf="${myconf} $(use_with big-tables)"
459 myconf="${myconf} --enable-local-infile" 459 myconf="${myconf} --enable-local-infile"
460 myconf="${myconf} --with-extra-charsets=all" 460 myconf="${myconf} --with-extra-charsets=all"
461 myconf="${myconf} --with-mysqld-user=mysql" 461 use prefix || myconf="${myconf} --with-mysqld-user=mysql"
462 myconf="${myconf} --with-server" 462 myconf="${myconf} --with-server"
463 myconf="${myconf} --with-unix-socket-path=${EPREFIX}/var/run/mysqld/mysqld.sock" 463 myconf="${myconf} --with-unix-socket-path=${EPREFIX}/var/run/mysqld/mysqld.sock"
464 myconf="${myconf} --without-libwrap" 464 myconf="${myconf} --without-libwrap"
465 465
466 if use static ; then 466 if use static ; then
1364 MYSQL_RELAY_LOG="$(mysql_getoptval mysqld relay-log)" 1364 MYSQL_RELAY_LOG="$(mysql_getoptval mysqld relay-log)"
1365 MYSQL_RELAY_LOG=${MYSQL_RELAY_LOG%/*} 1365 MYSQL_RELAY_LOG=${MYSQL_RELAY_LOG%/*}
1366 MYSQL_LOG_BIN="$(mysql_getoptval mysqld log-bin)" 1366 MYSQL_LOG_BIN="$(mysql_getoptval mysqld log-bin)"
1367 MYSQL_LOG_BIN=${MYSQL_LOG_BIN%/*} 1367 MYSQL_LOG_BIN=${MYSQL_LOG_BIN%/*}
1368 1368
1369 if [[ ! -d "${EROOT}"/$MYSQL_TMPDIR ]]; then 1369 if [[ ! -d "${ROOT}"/$MYSQL_TMPDIR ]]; then
1370 einfo "Creating MySQL tmpdir $MYSQL_TMPDIR" 1370 einfo "Creating MySQL tmpdir $MYSQL_TMPDIR"
1371 install -d -m 770 -o mysql -g mysql "${EROOT}"/$MYSQL_TMPDIR 1371 install -d -m 770 -o mysql -g mysql "${ROOT}"/$MYSQL_TMPDIR
1372 fi 1372 fi
1373 if [[ ! -d "${EROOT}"/$MYSQL_LOG_BIN ]]; then 1373 if [[ ! -d "${ROOT}"/$MYSQL_LOG_BIN ]]; then
1374 einfo "Creating MySQL log-bin directory $MYSQL_LOG_BIN" 1374 einfo "Creating MySQL log-bin directory $MYSQL_LOG_BIN"
1375 install -d -m 770 -o mysql -g mysql "${EROOT}"/$MYSQL_LOG_BIN 1375 install -d -m 770 -o mysql -g mysql "${ROOT}"/$MYSQL_LOG_BIN
1376 fi 1376 fi
1377 if [[ ! -d "${EROOT}"/$MYSQL_RELAY_LOG ]]; then 1377 if [[ ! -d "${ROOT}"/$MYSQL_RELAY_LOG ]]; then
1378 einfo "Creating MySQL relay-log directory $MYSQL_RELAY_LOG" 1378 einfo "Creating MySQL relay-log directory $MYSQL_RELAY_LOG"
1379 install -d -m 770 -o mysql -g mysql "${EROOT}"/$MYSQL_RELAY_LOG 1379 install -d -m 770 -o mysql -g mysql "${ROOT}"/$MYSQL_RELAY_LOG
1380 fi 1380 fi
1381 1381
1382 if [[ -d "${ROOT}/${MY_DATADIR}/mysql" ]] ; then 1382 if [[ -d "${ROOT}/${MY_DATADIR}/mysql" ]] ; then
1383 ewarn "You have already a MySQL database in place." 1383 ewarn "You have already a MySQL database in place."
1384 ewarn "(${ROOT}/${MY_DATADIR}/*)" 1384 ewarn "(${ROOT}/${MY_DATADIR}/*)"
1465 1465
1466 local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock" 1466 local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock"
1467 local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid" 1467 local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid"
1468 local mysqld="${EROOT}/usr/sbin/mysqld \ 1468 local mysqld="${EROOT}/usr/sbin/mysqld \
1469 ${options} \ 1469 ${options} \
1470 --user=mysql \ 1470 $(use prefix || echo --user=mysql) \
1471 --log-warnings=0 \ 1471 --log-warnings=0 \
1472 --basedir=${EROOT}/usr \ 1472 --basedir=${EROOT}/usr \
1473 --datadir=${ROOT}/${MY_DATADIR} \ 1473 --datadir=${ROOT}/${MY_DATADIR} \
1474 --max_allowed_packet=8M \ 1474 --max_allowed_packet=8M \
1475 --net_buffer_length=16K \ 1475 --net_buffer_length=16K \

Legend:
Removed from v.1.178  
changed lines
  Added in v.1.179

  ViewVC Help
Powered by ViewVC 1.1.20