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

Diff of /eclass/mysql.eclass

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

Revision 1.145 Revision 1.148
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/Attic/mysql.eclass,v 1.145 2010/04/27 05:45:55 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.148 2010/08/09 19:29:49 robbat2 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>
160 http://maria.llarian.net/download/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz 160 http://maria.llarian.net/download/${MARIA_FULL_P}/kvm-tarbake-jaunty-x86/${MARIA_FULL_P}.tar.gz
161 http://launchpad.net/maria/${MYSQL_PV_MAJOR}/ongoing/+download/${MARIA_FULL_P}.tar.gz 161 http://launchpad.net/maria/${MYSQL_PV_MAJOR}/ongoing/+download/${MARIA_FULL_P}.tar.gz
162 " 162 "
163 # The community build is on the mirrors 163 # The community build is on the mirrors
164 elif [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then 164 elif [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then
165 SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${MY_PV}.tar.gz" 165 if [[ "${PN}" == "mysql-cluster" ]] ; then
166 URI_DIR="MySQL-Cluster"
167 URI_FILE="mysql-cluster-gpl"
168 else
169 URI_DIR="MySQL"
170 URI_FILE="mysql"
171 fi
172 URI_A="${URI_FILE}-${MY_PV}.tar.gz"
173 MIRROR_PV=$(get_version_component_range 1-2 ${PV})
174 # Recently upstream switched to an archive site, and not on mirrors
175 SERVER_URI="http://downloads.mysql.com/archives/${URI_FILE}-${MIRROR_PV}/${URI_A}
176 mirror://mysql/Downloads/${URI_DIR}-${PV%.*}/${URI_A}"
166 # The (old) enterprise source is on the primary site only 177 # The (old) enterprise source is on the primary site only
167 elif [ "${PN}" == "mysql" ]; then 178 elif [ "${PN}" == "mysql" ]; then
168 SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${MY_PV}.tar.gz" 179 SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${MY_PV}.tar.gz"
169 fi 180 fi
170fi 181fi
365 MY_DATADIR="${new_MY_DATADIR}" 376 MY_DATADIR="${new_MY_DATADIR}"
366 fi 377 fi
367 fi 378 fi
368 fi 379 fi
369 380
381 if [ "${MY_SOURCEDIR:-unset}" == "unset" ]; then
370 MY_SOURCEDIR=${SERVER_URI##*/} 382 MY_SOURCEDIR=${SERVER_URI##*/}
371 MY_SOURCEDIR=${MY_SOURCEDIR%.tar*} 383 MY_SOURCEDIR=${MY_SOURCEDIR%.tar*}
384 fi
372 385
373 export MY_SHAREDSTATEDIR MY_SYSCONFDIR 386 export MY_SHAREDSTATEDIR MY_SYSCONFDIR
374 export MY_LIBDIR MY_LOCALSTATEDIR MY_LOGDIR 387 export MY_LIBDIR MY_LOCALSTATEDIR MY_LOGDIR
375 export MY_INCLUDEDIR MY_DATADIR MY_SOURCEDIR 388 export MY_INCLUDEDIR MY_DATADIR MY_SOURCEDIR
376} 389}
612 [ -e "${S}"/storage/${i} ] && plugins_dyn="${plugins_dyn} ${i}" 625 [ -e "${S}"/storage/${i} ] && plugins_dyn="${plugins_dyn} ${i}"
613 done 626 done
614 627
615 # like configuration=max-no-ndb 628 # like configuration=max-no-ndb
616 if use cluster ; then 629 if use cluster ; then
617 plugins_sta="${plugins_sta} ndbcluster" 630 plugins_sta="${plugins_sta} ndbcluster partition"
631 plugins_dis="${plugins_dis//partition}"
618 myconf="${myconf} --with-ndb-binlog" 632 myconf="${myconf} --with-ndb-binlog"
619 else 633 else
620 plugins_dis="${plugins_dis} ndbcluster" 634 plugins_dis="${plugins_dis} ndbcluster"
621 fi 635 fi
622 636
623 if [[ "${PN}" == "mariadb" ]] ; then 637 if [[ "${PN}" == "mariadb" ]] ; then
624 # In MariaDB, InnoDB is packaged in the xtradb directory, so it's not 638 # In MariaDB, InnoDB is packaged in the xtradb directory, so it's not
625 # caught above. 639 # caught above.
626 plugins_sta="${plugins_sta},maria,innobase" 640 plugins_sta="${plugins_sta} maria innobase"
627 myconf="${myconf} $(use_with libevent)" 641 myconf="${myconf} $(use_with libevent)"
628 # This is not optional, without it several upstream testcases fail. 642 # This is not optional, without it several upstream testcases fail.
629 # Also strongly recommended by upstream. 643 # Also strongly recommended by upstream.
630 myconf="${myconf} --with-maria-tmp-tables" 644 myconf="${myconf} --with-maria-tmp-tables"
631 fi 645 fi

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.148

  ViewVC Help
Powered by ViewVC 1.1.20