summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2013-02-13 00:40:57 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2013-02-13 00:40:57 +0000
commitb8a0f5d6c9b1e90b4f44de877569ce97019350fc (patch)
treec0935806e4d65da3a5f6645128c5632b3be20b53 /eclass/mysql-v2.eclass
parentFix building with USE=lua and dev-util/pkgconfig-0.28 (bug #456810 by Juergen... (diff)
downloadhistorical-b8a0f5d6c9b1e90b4f44de877569ce97019350fc.tar.gz
historical-b8a0f5d6c9b1e90b4f44de877569ce97019350fc.tar.bz2
historical-b8a0f5d6c9b1e90b4f44de877569ce97019350fc.zip
Bug #455462: Libtool cleanup; Bug #455016: mariadb mytop deps; Bug #448598: USE=pam support.
Diffstat (limited to 'eclass/mysql-v2.eclass')
-rw-r--r--eclass/mysql-v2.eclass30
1 files changed, 28 insertions, 2 deletions
diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
index 4ce13a82344c..b13d22667f88 100644
--- a/eclass/mysql-v2.eclass
+++ b/eclass/mysql-v2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.23 2013/01/28 02:13:05 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.24 2013/02/13 00:40:57 robbat2 Exp $
# @ECLASS: mysql-v2.eclass
# @MAINTAINER:
@@ -187,6 +187,10 @@ IUSE="${IUSE} +community profiling"
&& mysql_version_is_at_least "5.2.5" \
&& IUSE="${IUSE} sphinx"
+[[ ${PN} == "mariadb" ]] \
+&& mysql_version_is_at_least "5.2.10" \
+&& IUSE="${IUSE} pam"
+
if mysql_version_is_at_least "5.5"; then
REQUIRED_USE="tcmalloc? ( !jemalloc ) jemalloc? ( !tcmalloc )"
IUSE="${IUSE} jemalloc tcmalloc"
@@ -230,10 +234,14 @@ done
&& mysql_version_is_at_least "5.2.5" \
&& DEPEND="${DEPEND} sphinx? ( app-misc/sphinx )"
+[[ "${PN}" == "mariadb" ]] \
+&& mysql_version_is_at_least "5.2.10" \
+&& DEPEND="${DEPEND} !minimal? ( pam? ( virtual/pam ) )"
+
# Bug 441700 MariaDB >=5.3 include custom mytop
[[ "${PN}" == "mariadb" ]] \
&& mysql_version_is_at_least "5.3" \
-&& DEPEND="${DEPEND} !dev-db/mytop"
+&& DEPEND="${DEPEND} perl? ( !dev-db/mytop )"
mysql_version_is_at_least "5.5.7" \
&& DEPEND="${DEPEND} systemtap? ( >=dev-util/systemtap-1.3 )" \
@@ -251,6 +259,15 @@ RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-mysql )
"
+# Bug 455016 Add dependancies of mytop
+[[ "${PN}" == "mariadb" ]] \
+&& mysql_version_is_at_least "5.3" \
+&& RDEPEND="${RDEPEND} perl? (
+ virtual/perl-Getopt-Long
+ dev-perl/TermReadKey
+ virtual/perl-Term-ANSIColor
+ virtual/perl-Time-HiRes ) "
+
DEPEND="${DEPEND}
virtual/yacc
"
@@ -484,6 +501,15 @@ mysql-v2_pkg_postinst() {
&& dodoc "${script}"
done
+ if [ ${PN} == "mariadb" ] \
+ && mysql_version_is_at_least "5.2.10" && use pam ; then
+ einfo
+ elog "This install includes the PAM authentication plugin."
+ elog "To activate and configure the PAM plugin, please read:"
+ elog "https://kb.askmonty.org/en/pam-authentication-plugin/"
+ einfo
+ fi
+
einfo
elog "You might want to run:"
elog "\"emerge --config =${CATEGORY}/${PF}\""