summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorFrancesco Riosa <vivo@gentoo.org>2005-09-11 18:08:44 +0000
committerFrancesco Riosa <vivo@gentoo.org>2005-09-11 18:08:44 +0000
commit51e9c7a34edfe05c14f6d14797fdd6496e1d0a57 (patch)
tree7e5bf4dd81b78345c4a423d049be19db5de65b05 /dev-db
parentstable on x86 (diff)
downloadhistorical-51e9c7a34edfe05c14f6d14797fdd6496e1d0a57.tar.gz
historical-51e9c7a34edfe05c14f6d14797fdd6496e1d0a57.tar.bz2
historical-51e9c7a34edfe05c14f6d14797fdd6496e1d0a57.zip
Added discover of a previous $DATADIR like other recent ebuilds
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mysql/ChangeLog5
-rw-r--r--dev-db/mysql/Manifest4
-rw-r--r--dev-db/mysql/mysql-4.0.26.ebuild15
3 files changed, 20 insertions, 4 deletions
diff --git a/dev-db/mysql/ChangeLog b/dev-db/mysql/ChangeLog
index 0129b0e7efee..b55f86ec3199 100644
--- a/dev-db/mysql/ChangeLog
+++ b/dev-db/mysql/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-db/mysql
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.233 2005/09/11 16:41:55 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.234 2005/09/11 18:08:44 vivo Exp $
+
+ 11 Sep 2005; Francesco Riosa <vivo@gentoo.org> mysql-4.0.26.ebuild:
+ Added discover of a previous $DATADIR like other recent ebuilds
11 Sep 2005; Francesco Riosa <vivo@gentoo.org> mysql-4.0.25-r2.ebuild,
mysql-4.0.26.ebuild, mysql-4.1.13-r1.ebuild, mysql-4.1.14.ebuild,
diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
index a6cc1f3fd30a..e55508c202b0 100644
--- a/dev-db/mysql/Manifest
+++ b/dev-db/mysql/Manifest
@@ -1,12 +1,12 @@
MD5 4ede44755e223d1a7b927f5772aa7f97 mysql-5.0.12_beta.ebuild 16816
MD5 5eae89d810d67eec1d676a5121a9f433 mysql-4.1.14.ebuild 16681
-MD5 0b8b79e3e70645f5f419044470312afa mysql-4.0.26.ebuild 13310
+MD5 98903a3bc4373b384bb85628cb3313fb mysql-4.0.26.ebuild 13605
MD5 fd9b66e2ee927df1ee9ed642ecda1fa6 mysql-4.1.13-r1.ebuild 16273
MD5 d168c71df57729ea0eeadab3c6a59f43 mysql-4.0.22.ebuild 8768
MD5 c28056421db550a09a548ad1dff517f5 mysql-4.0.22-r2.ebuild 9613
MD5 0cfd7831f2d57b93e252c0f3d9c25276 mysql-3.23.58-r1.ebuild 7063
MD5 240fc6da2d2c2d7dd224b147db251f80 mysql-4.0.24.ebuild 9827
-MD5 4566494368c5e381c645c603784302d6 ChangeLog 40681
+MD5 34e13a475f1d5662ef871ea8be24da9c ChangeLog 40818
MD5 a2a9fdc7d010a7c04c96cb3b7c05f06b metadata.xml 158
MD5 5ab197f8ea8f7de43f00dbc8891ee4c2 mysql-4.0.25-r2.ebuild 13766
MD5 a755fb5a3ed724046a4f83fafd819c77 files/mysql-test-myisam-geometry.patch 1217
diff --git a/dev-db/mysql/mysql-4.0.26.ebuild b/dev-db/mysql/mysql-4.0.26.ebuild
index 82780d267a2e..3e7685565bdc 100644
--- a/dev-db/mysql/mysql-4.0.26.ebuild
+++ b/dev-db/mysql/mysql-4.0.26.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.0.26.ebuild,v 1.3 2005/09/11 16:30:54 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.0.26.ebuild,v 1.4 2005/09/11 18:08:44 vivo Exp $
inherit eutils gnuconfig flag-o-matic versionator
@@ -61,6 +61,19 @@ mysql_get_datadir() {
einfo "Using default DATADIR"
fi
einfo "MySQL DATADIR is ${DATADIR}"
+
+ if [ -z "${PREVIOUS_DATADIR}" ] ; then
+ if [ -a "${DATADIR}" ] ; then
+ ewarn "Previous datadir found, it's YOUR job to change"
+ ewarn "ownership and have care of it"
+ PREVIOUS_DATADIR="yes"
+ export PREVIOUS_DATADIR
+ else
+ PREVIOUS_DATADIR="no"
+ export PREVIOUS_DATADIR
+ fi
+ fi
+
export DATADIR
}