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

Diff of /eclass/mysql.eclass

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

Revision 1.82 Revision 1.84
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.eclass,v 1.82 2007/10/02 10:00:07 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.84 2008/01/16 04:01:14 robbat2 Exp $
4 4
5# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 5# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
6# Maintainer: Luca Longinotti <chtekk@gentoo.org> 6# Maintainer: Luca Longinotti <chtekk@gentoo.org>
7 7
8# Both MYSQL_VERSION_ID and MYSQL_PATCHSET_REV must be set in the ebuild too! 8# Both MYSQL_VERSION_ID and MYSQL_PATCHSET_REV must be set in the ebuild too!
249 249
250configure_minimal() { 250configure_minimal() {
251 # These are things we exclude from a minimal build, please 251 # These are things we exclude from a minimal build, please
252 # note that the server actually does get built and installed, 252 # note that the server actually does get built and installed,
253 # but we then delete it before packaging. 253 # but we then delete it before packaging.
254 local minimal_exclude_list="server embedded-server extra-tools innodb bench berkeley-db row-based-replication" 254 local minimal_exclude_list="server embedded-server extra-tools innodb bench berkeley-db row-based-replication readline"
255 255
256 for i in ${minimal_exclude_list} ; do 256 for i in ${minimal_exclude_list} ; do
257 myconf="${myconf} --without-${i}" 257 myconf="${myconf} --without-${i}"
258 done 258 done
259 myconf="${myconf} --with-extra-charsets=none" 259 myconf="${myconf} --with-extra-charsets=none"
451} 451}
452 452
453# 453#
454# EBUILD FUNCTIONS 454# EBUILD FUNCTIONS
455# 455#
456
457mysql_pkg_setup() { 456mysql_pkg_setup() {
458 enewgroup mysql 60 || die "problem adding 'mysql' group" 457 if hasq test ${FEATURES} ; then
459 enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" 458 if ! use minimal ; then
459 if ! hasq userpriv ${FEATURES} ; then
460 die "Testing with FEATURES=-userpriv is no longer supported by upstream"
461 fi
462 fi
463 fi
460 464
461 # Check for USE flag problems in pkg_setup 465 # Check for USE flag problems in pkg_setup
462 if use static && use ssl ; then 466 if use static && use ssl ; then
463 eerror "MySQL does not support being built statically with SSL support enabled!" 467 eerror "MySQL does not support being built statically with SSL support enabled!"
464 die "MySQL does not support being built statically with SSL support enabled!" 468 die "MySQL does not support being built statically with SSL support enabled!"
476 && ( use cluster || use extraengine ) \ 480 && ( use cluster || use extraengine ) \
477 && use minimal ; then 481 && use minimal ; then
478 eerror "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!" 482 eerror "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!"
479 die "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!" 483 die "USE flags 'cluster' and 'extraengine' conflict with 'minimal' USE flag!"
480 fi 484 fi
485
486 # This should come after all of the die statements
487 enewgroup mysql 60 || die "problem adding 'mysql' group"
488 enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
481 489
482 mysql_check_version_range "4.0 to 5.0.99.99" \ 490 mysql_check_version_range "4.0 to 5.0.99.99" \
483 && use berkdb \ 491 && use berkdb \
484 && elog "Berkeley DB support is deprecated and will be removed in future versions!" 492 && elog "Berkeley DB support is deprecated and will be removed in future versions!"
485} 493}

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.84

  ViewVC Help
Powered by ViewVC 1.1.20