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

Diff of /eclass/mysql.eclass

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

Revision 1.5 Revision 1.6
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.5 2006/01/08 23:29:20 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.6 2006/01/14 19:00:32 vivo Exp $
4 4
5# Author: Francesco Riosa <vivo at gentoo.org> 5# Author: Francesco Riosa <vivo at gentoo.org>
6# Maintainer: Francesco Riosa <vivo at gentoo.org> 6# Maintainer: Francesco Riosa <vivo at gentoo.org>
7 7
8inherit eutils flag-o-matic gnuconfig mysql_fx 8inherit eutils flag-o-matic gnuconfig mysql_fx
16 16
17DESCRIPTION="A fast, multi-threaded, multi-user SQL database server" 17DESCRIPTION="A fast, multi-threaded, multi-user SQL database server"
18HOMEPAGE="http://www.mysql.com/" 18HOMEPAGE="http://www.mysql.com/"
19NEWP="${PN}-${PV/_/-}" 19NEWP="${PN}-${PV/_/-}"
20SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${NEWP}.tar.gz 20SRC_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/${NEWP}.tar.gz
21 mirror://gentoo/mysql-extras-20051220.tar.bz2" 21 mirror://gentoo/mysql-extras-20060114.tar.bz2"
22LICENSE="GPL-2" 22LICENSE="GPL-2"
23IUSE="big-tables berkdb debug minimal perl selinux ssl static" 23IUSE="big-tables berkdb debug minimal perl selinux ssl static"
24RESTRICT="primaryuri" 24RESTRICT="primaryuri"
25DEPEND="app-admin/eselect-mysql" 25DEPEND="app-admin/eselect-mysql"
26 26
118 ${buildstep} || die "failed ${buildstep/ */} dir \"${d}\"" 118 ${buildstep} || die "failed ${buildstep/ */} dir \"${d}\""
119 done 119 done
120 popd &>/dev/null 120 popd &>/dev/null
121 done 121 done
122 122
123 if ! mysql_check_version_range "5.01.00.00 to 5.01.06.99" ; then 123 if ! useq bdbdir && ! mysql_check_version_range "5.01.00.00 to 5.01.06.99"
124 then
124 [[ -w "${bdbdir}/ltmain.sh" ]] && cp -f ltmain.sh "${bdbdir}/ltmain.sh" 125 [[ -w "${bdbdir}/ltmain.sh" ]] && cp -f ltmain.sh "${bdbdir}/ltmain.sh"
125 pushd "${bdbdir}" && sh s_all || die "failed bdb reconfigure" &>/dev/null 126 pushd "${bdbdir}" && sh s_all || die "failed bdb reconfigure" &>/dev/null
126 popd &>/dev/null 127 popd &>/dev/null
127 fi 128 fi
128 129
129} 130}
130 131
131src_compile() { 132mysql_src_compile() {
132 133
133 mysql_init_vars 134 mysql_init_vars
134 local myconf 135 local myconf
135 136
136 if useq static ; then 137 if useq static ; then
422 fi 423 fi
423 424
424 # oops, temporary fix 425 # oops, temporary fix
425 mysql_check_version_range "5.00.16.00 to 5.00.18.99" \ 426 mysql_check_version_range "5.00.16.00 to 5.00.18.99" \
426 && cp -f \ 427 && cp -f \
427 "${WORKDIR}/mysql-extras/fill_help_tables.sql-5.0.15" \ 428 "${WORKDIR}/mysql-extras/fill_help_tables.sql-5.0" \
428 "${D}/usr/share/mysql${MY_SUFFIX}/fill_help_tables.sql" 429 "${D}/usr/share/mysql${MY_SUFFIX}/fill_help_tables.sql"
429} 430}
430 431
431mysql_pkg_preinst() { 432mysql_pkg_preinst() {
432 433
455 local filelist="${ROOT}/var/lib/eselect/mysql/mysql${MY_SUFFIX}" 456 local filelist="${ROOT}/var/lib/eselect/mysql/mysql${MY_SUFFIX}"
456 pushd "${D}/" &>/dev/null 457 pushd "${D}/" &>/dev/null
457 mkdir -p "${ROOT}/var/lib/eselect/mysql/" 458 mkdir -p "${ROOT}/var/lib/eselect/mysql/"
458 env -i find usr/bin/ usr/sbin/ usr/share/man \ 459 env -i find usr/bin/ usr/sbin/ usr/share/man \
459 -type f -name "*${MY_SUFFIX}*" \ 460 -type f -name "*${MY_SUFFIX}*" \
461 -and -not -name "mysql_config${MY_SUFFIX}" \
460 > "${filelist}.filelist" 462 > "${filelist}.filelist"
461 echo "${MY_SYSCONFDIR#"/"}" >> "${filelist}.filelist" 463 echo "${MY_SYSCONFDIR#"/"}" >> "${filelist}.filelist"
462 echo "${MY_INCLUDEDIR#"/"}" >> "${filelist}.filelist"
463 echo "${MY_LIBDIR#"/"}" >> "${filelist}.filelist" 464 echo "${MY_LIBDIR#"/"}" >> "${filelist}.filelist"
464 echo "${MY_SHAREDSTATEDIR#"/"}" >> "${filelist}.filelist" 465 echo "${MY_SHAREDSTATEDIR#"/"}" >> "${filelist}.filelist"
465 popd &>/dev/null 466 popd &>/dev/null
466 467
467 if ! useq minimal; then 468 if ! useq minimal; then

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20