summaryrefslogtreecommitdiff
path: root/eclass
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
commita9fa73ba3cc84b4e28b907fc0ccf0345e484550c (patch)
treefcd9f1c2f8b993679b88d2feed706854fc0d595b /eclass
parentFix building with USE=lua and dev-util/pkgconfig-0.28 (bug #456810 by Juergen... (diff)
downloadgentoo-2-a9fa73ba3cc84b4e28b907fc0ccf0345e484550c.tar.gz
gentoo-2-a9fa73ba3cc84b4e28b907fc0ccf0345e484550c.tar.bz2
gentoo-2-a9fa73ba3cc84b4e28b907fc0ccf0345e484550c.zip
Bug #455462: Libtool cleanup; Bug #455016: mariadb mytop deps; Bug #448598: USE=pam support.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql-autotools.eclass19
-rw-r--r--eclass/mysql-cmake.eclass11
-rw-r--r--eclass/mysql-v2.eclass30
3 files changed, 56 insertions, 4 deletions
diff --git a/eclass/mysql-autotools.eclass b/eclass/mysql-autotools.eclass
index c342b635bd28..70b5123dcaaf 100644
--- a/eclass/mysql-autotools.eclass
+++ b/eclass/mysql-autotools.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-autotools.eclass,v 1.14 2013/01/28 02:13:05 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.15 2013/02/13 00:40:57 robbat2 Exp $
# @ECLASS: mysql-autotools.eclass
# @MAINTAINER:
@@ -289,6 +289,15 @@ mysql-autotools_configure_51() {
|| plugins_dis="${plugins_dis} ${i}"
done
fi
+
+ #Authentication plugins
+ if mysql_version_is_at_least "5.2.11" ; then
+ for i in pam ; do
+ use ${i} \
+ && plugins_dyn="${plugins_dyn} auth_${i}" \
+ || plugins_dis="${plugins_dis} auth_${i}"
+ done
+ fi
fi
if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]]; then
@@ -648,4 +657,12 @@ mysql-autotools_src_install() {
fi
mysql_lib_symlinks "${ED}"
+
+ #Remove mytop if perl is not selected
+ [[ "${PN}" == "mariadb" ]] && ! use perl \
+ && mysql_version_is_at_least "5.3" \
+ && rm -f "${ED}/usr/bin/mytop"
+
+ #Bug 455462 remove unnecessary libtool files
+ prune_libtool_files --modules
}
diff --git a/eclass/mysql-cmake.eclass b/eclass/mysql-cmake.eclass
index 06124b3ec7b0..955e2878f357 100644
--- a/eclass/mysql-cmake.eclass
+++ b/eclass/mysql-cmake.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-cmake.eclass,v 1.13 2013/01/20 02:37:51 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.14 2013/02/13 00:40:57 robbat2 Exp $
# @ECLASS: mysql-cmake.eclass
# @MAINTAINER:
@@ -185,6 +185,11 @@ configure_cmake_standard() {
$(cmake-utils_use_with sphinx SPHINX_STORAGE_ENGINE)
$(cmake-utils_use_with extraengine FEDERATEDX_STORAGE_ENGINE)
)
+
+ if ! use pam ; then
+ mycmakeargs+=( -DAUTH_PAM_DISABLED=1 )
+ fi
+
fi
}
@@ -388,4 +393,8 @@ mysql-cmake_src_install() {
fi
mysql_lib_symlinks "${ED}"
+
+ #Remove mytop if perl is not selected
+ [[ "${PN}" == "mariadb" ]] && ! use perl \
+ && rm -f "${ED}/usr/bin/mytop"
}
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}\""