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

Diff of /eclass/mysql.eclass

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

Revision 1.8 Revision 1.9
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/Attic/mysql.eclass,v 1.8 2006/01/24 19:14:00 vivo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.9 2006/01/24 23:09:00 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 8inherit eutils flag-o-matic gnuconfig
420 fi 420 fi
421 421
422 # config stuff 422 # config stuff
423 insinto "${MY_SYSCONFDIR}" 423 insinto "${MY_SYSCONFDIR}"
424 doins scripts/mysqlaccess.conf 424 doins scripts/mysqlaccess.conf
425 sed -e "s!@MY_SUFFIX@!${MY_SUFFIX}!g" \
426 -e "s!@DATADIR@!${DATADIR}!g" \
427 "${FILESDIR}/my.cnf-4.1-r1" \
428 > "${TMPDIR}/my.cnf.ok"
429ls -l ${TMPDIR} ${FILESDIR}/my.cnf-4.1-r1
425 newins "${FILESDIR}/my.cnf-4.1-r1" my.cnf 430 newins "${TMPDIR}/my.cnf.ok" my.cnf
431
426 insinto "/etc/conf.d" 432 insinto "/etc/conf.d"
427 newins "${FILESDIR}/mysql-slot.conf.d-r2" "mysql" 433 newins "${FILESDIR}/mysql-slot.conf.d-r2" "mysql"
428 mysql_version_is_at_least "5.00.11.00" \ 434 mysql_version_is_at_least "5.00.11.00" \
429 && newins "${FILESDIR}/mysqlmanager-slot.conf.d" "mysqlmanager" 435 && newins "${FILESDIR}/mysqlmanager-slot.conf.d" "mysqlmanager"
430
431 sed --in-place \
432 -e "s/@MY_SUFFIX@/${MY_SUFFIX}/" \
433 -e "s/@DATADIR@/${DATADIR}/" \
434 "${D}/etc/mysql${MY_SUFFIX}/my.cnf"
435 436
436 # minimal builds don't have the server 437 # minimal builds don't have the server
437 if ! useq minimal; then 438 if ! useq minimal; then
438 exeinto /etc/init.d 439 exeinto /etc/init.d
439 newexe "${FILESDIR}/mysql-slot.rc6-r2" "mysql" 440 newexe "${FILESDIR}/mysql-slot.rc6-r2" "mysql"
440 [[ ${SLOT} -gt 0 ]] && dosym "/etc/init.d/mysql" "/etc/init.d/mysql${MY_SUFFIX}" 441 [[ ${SLOT} -gt 0 ]] && dosym "/etc/init.d/mysql" "/etc/init.d/mysql${MY_SUFFIX}"
441 442
442 mysql_version_is_at_least "5.00.11.00" \ 443 mysql_version_is_at_least "5.00.11.00" \
443 && newexe "${FILESDIR}/mysqlmanager-slot.rc6" "mysqlmanager" 444 && newexe "${FILESDIR}/mysqlmanager-slot.rc6" "mysqlmanager"
444 insinto /etc/logrotate.d 445 insinto /etc/logrotate.d
445 sed -e "s!___MY_SUFFIX___!${MY_SUFFIX}!" \ 446 sed -e "s!___MY_SUFFIX___!${MY_SUFFIX}!g" \
446 "${FILESDIR}/logrotate-slot.mysql" \ 447 "${FILESDIR}/logrotate-slot.mysql" \
447 > "${TMPDIR}/logrotate.mysql" 448 > "${TMPDIR}/logrotate.mysql"
448 newins "${TMPDIR}/logrotate.mysql" "mysql${MY_SUFFIX}" 449 newins "${TMPDIR}/logrotate.mysql" "mysql${MY_SUFFIX}"
449 450
450 #empty dirs... 451 #empty dirs...

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20