| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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-v2.eclass,v 1.23 2013/01/28 02:13:05 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.24 2013/02/13 00:40:57 robbat2 Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: mysql-v2.eclass |
5 | # @ECLASS: mysql-v2.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Maintainers: |
7 | # Maintainers: |
| 8 | # - MySQL Team <mysql-bugs@gentoo.org> |
8 | # - MySQL Team <mysql-bugs@gentoo.org> |
| … | |
… | |
| 185 | |
185 | |
| 186 | [[ ${PN} == "mariadb" ]] \ |
186 | [[ ${PN} == "mariadb" ]] \ |
| 187 | && mysql_version_is_at_least "5.2.5" \ |
187 | && mysql_version_is_at_least "5.2.5" \ |
| 188 | && IUSE="${IUSE} sphinx" |
188 | && IUSE="${IUSE} sphinx" |
| 189 | |
189 | |
|
|
190 | [[ ${PN} == "mariadb" ]] \ |
|
|
191 | && mysql_version_is_at_least "5.2.10" \ |
|
|
192 | && IUSE="${IUSE} pam" |
|
|
193 | |
| 190 | if mysql_version_is_at_least "5.5"; then |
194 | if mysql_version_is_at_least "5.5"; then |
| 191 | REQUIRED_USE="tcmalloc? ( !jemalloc ) jemalloc? ( !tcmalloc )" |
195 | REQUIRED_USE="tcmalloc? ( !jemalloc ) jemalloc? ( !tcmalloc )" |
| 192 | IUSE="${IUSE} jemalloc tcmalloc" |
196 | IUSE="${IUSE} jemalloc tcmalloc" |
| 193 | fi |
197 | fi |
| 194 | |
198 | |
| … | |
… | |
| 228 | |
232 | |
| 229 | [[ "${PN}" == "mariadb" ]] \ |
233 | [[ "${PN}" == "mariadb" ]] \ |
| 230 | && mysql_version_is_at_least "5.2.5" \ |
234 | && mysql_version_is_at_least "5.2.5" \ |
| 231 | && DEPEND="${DEPEND} sphinx? ( app-misc/sphinx )" |
235 | && DEPEND="${DEPEND} sphinx? ( app-misc/sphinx )" |
| 232 | |
236 | |
|
|
237 | [[ "${PN}" == "mariadb" ]] \ |
|
|
238 | && mysql_version_is_at_least "5.2.10" \ |
|
|
239 | && DEPEND="${DEPEND} !minimal? ( pam? ( virtual/pam ) )" |
|
|
240 | |
| 233 | # Bug 441700 MariaDB >=5.3 include custom mytop |
241 | # Bug 441700 MariaDB >=5.3 include custom mytop |
| 234 | [[ "${PN}" == "mariadb" ]] \ |
242 | [[ "${PN}" == "mariadb" ]] \ |
| 235 | && mysql_version_is_at_least "5.3" \ |
243 | && mysql_version_is_at_least "5.3" \ |
| 236 | && DEPEND="${DEPEND} !dev-db/mytop" |
244 | && DEPEND="${DEPEND} perl? ( !dev-db/mytop )" |
| 237 | |
245 | |
| 238 | mysql_version_is_at_least "5.5.7" \ |
246 | mysql_version_is_at_least "5.5.7" \ |
| 239 | && DEPEND="${DEPEND} systemtap? ( >=dev-util/systemtap-1.3 )" \ |
247 | && DEPEND="${DEPEND} systemtap? ( >=dev-util/systemtap-1.3 )" \ |
| 240 | && DEPEND="${DEPEND} kernel_linux? ( dev-libs/libaio )" |
248 | && DEPEND="${DEPEND} kernel_linux? ( dev-libs/libaio )" |
| 241 | |
249 | |
| … | |
… | |
| 248 | # prefix: first need to implement something for #196294 |
256 | # prefix: first need to implement something for #196294 |
| 249 | RDEPEND="${DEPEND} |
257 | RDEPEND="${DEPEND} |
| 250 | !minimal? ( !prefix? ( dev-db/mysql-init-scripts ) ) |
258 | !minimal? ( !prefix? ( dev-db/mysql-init-scripts ) ) |
| 251 | selinux? ( sec-policy/selinux-mysql ) |
259 | selinux? ( sec-policy/selinux-mysql ) |
| 252 | " |
260 | " |
|
|
261 | |
|
|
262 | # Bug 455016 Add dependancies of mytop |
|
|
263 | [[ "${PN}" == "mariadb" ]] \ |
|
|
264 | && mysql_version_is_at_least "5.3" \ |
|
|
265 | && RDEPEND="${RDEPEND} perl? ( |
|
|
266 | virtual/perl-Getopt-Long |
|
|
267 | dev-perl/TermReadKey |
|
|
268 | virtual/perl-Term-ANSIColor |
|
|
269 | virtual/perl-Time-HiRes ) " |
| 253 | |
270 | |
| 254 | DEPEND="${DEPEND} |
271 | DEPEND="${DEPEND} |
| 255 | virtual/yacc |
272 | virtual/yacc |
| 256 | " |
273 | " |
| 257 | |
274 | |
| … | |
… | |
| 481 | for script in scripts/mysql* ; do |
498 | for script in scripts/mysql* ; do |
| 482 | [[ -f "${script}" ]] \ |
499 | [[ -f "${script}" ]] \ |
| 483 | && [[ "${script%.sh}" == "${script}" ]] \ |
500 | && [[ "${script%.sh}" == "${script}" ]] \ |
| 484 | && dodoc "${script}" |
501 | && dodoc "${script}" |
| 485 | done |
502 | done |
|
|
503 | |
|
|
504 | if [ ${PN} == "mariadb" ] \ |
|
|
505 | && mysql_version_is_at_least "5.2.10" && use pam ; then |
|
|
506 | einfo |
|
|
507 | elog "This install includes the PAM authentication plugin." |
|
|
508 | elog "To activate and configure the PAM plugin, please read:" |
|
|
509 | elog "https://kb.askmonty.org/en/pam-authentication-plugin/" |
|
|
510 | einfo |
|
|
511 | fi |
| 486 | |
512 | |
| 487 | einfo |
513 | einfo |
| 488 | elog "You might want to run:" |
514 | elog "You might want to run:" |
| 489 | elog "\"emerge --config =${CATEGORY}/${PF}\"" |
515 | elog "\"emerge --config =${CATEGORY}/${PF}\"" |
| 490 | elog "if this is a new install." |
516 | elog "if this is a new install." |