| 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.1 2006/01/01 18:45:38 vivo Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.2 2006/01/04 20:25:14 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 | |
| 8 | inherit eutils flag-o-matic gnuconfig mysql_fx |
8 | inherit eutils flag-o-matic gnuconfig mysql_fx |
| … | |
… | |
| 32 | && IUSE="${IUSE} max-idx-128" |
32 | && IUSE="${IUSE} max-idx-128" |
| 33 | |
33 | |
| 34 | mysql_version_is_at_least "5.01.00.00" \ |
34 | mysql_version_is_at_least "5.01.00.00" \ |
| 35 | && IUSE="${IUSE} innodb" |
35 | && IUSE="${IUSE} innodb" |
| 36 | |
36 | |
| 37 | EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm |
37 | EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_config pkg_postrm |
| 38 | |
38 | |
| 39 | mysql_pkg_setup() { |
39 | mysql_pkg_setup() { |
| 40 | |
40 | |
| 41 | enewgroup mysql 60 || die "problem adding group mysql" |
41 | enewgroup mysql 60 || die "problem adding group mysql" |
| 42 | enewuser mysql 60 -1 /dev/null mysql \ |
42 | enewuser mysql 60 -1 /dev/null mysql \ |