summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@lavabit.com>2013-07-22 15:59:39 -0400
committerBrian Evans <grknight@lavabit.com>2013-09-10 12:37:21 -0400
commitbb74f3b84ebabc1b0231aaec865085aec1abd92b (patch)
treeea47a6e99d8fa7c71a271f3299f2bc1d46f83a5d /eclass/mysql-v2.eclass
parent[mysql-cluster] Upgrade 7.0.37 to mysql-v2 eclass and fix a couple QA issues (diff)
downloadmysql-bb74f3b84ebabc1b0231aaec865085aec1abd92b.tar.gz
mysql-bb74f3b84ebabc1b0231aaec865085aec1abd92b.tar.bz2
mysql-bb74f3b84ebabc1b0231aaec865085aec1abd92b.zip
[mysql-cluster] Update 7.2/7.3 builds to use the java eclasses
Diffstat (limited to 'eclass/mysql-v2.eclass')
-rw-r--r--eclass/mysql-v2.eclass19
1 files changed, 13 insertions, 6 deletions
diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
index 1832786..6147297 100644
--- a/eclass/mysql-v2.eclass
+++ b/eclass/mysql-v2.eclass
@@ -229,10 +229,6 @@ if [[ ${PN} == "percona-server" ]]; then
mysql_version_is_at_least "5.5.10" && IUSE="${IUSE} pam"
fi
-if [[ ${PN} == "mysql-cluster" ]] ; then
- mysql_version_is_at_least "7.2.9" && IUSE="${IUSE} java"
-fi
-
REQUIRED_USE="${REQUIRED_USE} minimal? ( !cluster !extraengine !embedded ) static? ( !ssl )"
#
@@ -307,8 +303,8 @@ if [[ ${PN} == "mariadb-galera" ]] ; then
fi
if [[ ${PN} == "mysql-cluster" ]] ; then
- has java ${IUSE} && RDEPEND="${RDEPEND} virtual/jre" && \
- DEPEND="${DEPEND} virtual/jdk"
+ mysql_version_is_at_least "7.2.9" && RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.6 )" && \
+ DEPEND="${DEPEND} java? ( >=virtual/jdk-1.6 )"
fi
DEPEND="${DEPEND}
@@ -448,6 +444,11 @@ mysql-v2_pkg_setup() {
ewarn "5.1 series should NOT be put into production. In the near"
ewarn "future, it will be disabled from building."
fi
+
+ if [[ ${PN} == "mysql-cluster" ]] ; then
+ mysql_version_is_at_least "7.2.9" && java-pkg-opt-2_pkg_setup
+ fi
+
}
# @FUNCTION: mysql-v2_src_unpack
@@ -470,6 +471,9 @@ mysql-v2_src_unpack() {
# Apply patches to the source code and remove unneeded bundled libs.
mysql-v2_src_prepare() {
${BUILD_INHERIT}_src_prepare "$@"
+ if [[ ${PN} == "mysql-cluster" ]] ; then
+ mysql_version_is_at_least "7.2.9" && java-pkg-opt-2_src_prepare
+ fi
}
# @FUNCTION: mysql-v2_src_configure
@@ -497,6 +501,9 @@ mysql-v2_src_install() {
# @DESCRIPTION:
# Create the user and groups for mysql - die if that fails.
mysql-v2_pkg_preinst() {
+ if [[ ${PN} == "mysql-cluster" ]] ; then
+ mysql_version_is_at_least "7.2.9" && java-pkg-opt-2_pkg_preinst
+ fi
enewgroup mysql 60 || die "problem adding 'mysql' group"
enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
}