[Lunar-commits] <moonbase> mysql: version bumped to 5.1.44.
Florin Braescu
florin at lunar-linux.org
Mon Feb 22 09:44:20 CET 2010
commit 7d641b7d978e4f788b2aae0f1ccf2ff6fe495874
Author: Florin Braescu <florin at lunar-linux.org>
Date: Mon Feb 22 10:44:20 2010 +0200
mysql: version bumped to 5.1.44.
We are now switching to 5.1.x serie of stable releases.
Migrating the existing database is needed, so the module
make sure the user get the message and the needed info.
---
sql/mysql/BUILD | 34 +++++++++++++++++++++++-----------
sql/mysql/CONFIGURE | 21 ++++++---------------
sql/mysql/DEPENDS | 11 +++++++++++
sql/mysql/DETAILS | 15 ++++++++-------
4 files changed, 48 insertions(+), 33 deletions(-)
diff --git a/sql/mysql/BUILD b/sql/mysql/BUILD
index a9bd692..320c46d 100644
--- a/sql/mysql/BUILD
+++ b/sql/mysql/BUILD
@@ -1,19 +1,31 @@
(
+ message " "
+ message " ${PROBLEM_COLOR}Warning! ${DEFAULT_COLOR}Database backup have to be done to avoid any data loss during migration."
+ message " "
+ query INSTALL "Have you done data backup (y/n)? " n
+
+ if ! [ "$INSTALL" == "y" ] ; then
+ message " "
+ message " ${DEFAULT_COLOR}Please consult first http://dev.mysql.com/doc/refman/5.1/en/upgrade.html before installing."
+ sleep 5
+ exit 1
+ fi
+
add_priv_user mysql:mysql &&
devoke_installwatch &&
if [ "`arch`" == "alpha" ]; then
- export CFLAGS="$CFLAGS -fPIC"
- export CXXFLAGS="$CXXFLAGS -fPIC"
- fi &&
+ export CFLAGS="$CFLAGS -fPIC"
+ export CXXFLAGS="$CXXFLAGS -fPIC"
+ fi &&
if [ "`arch`" == "x86_64" ]; then
- export CFLAGS="$CFLAGS -fPIC"
- export CXXFLAGS="$CXXFLAGS -fPIC"
- fi &&
+ export CFLAGS="$CFLAGS -fPIC"
+ export CXXFLAGS="$CXXFLAGS -fPIC"
+ fi &&
- export CXX='gcc' &&
+ export CXX='gcc' &&
./configure --prefix=/usr \
--disable-dependency-tracking \
@@ -44,10 +56,10 @@
message ""
exit $MYSQL_EXIT;
}
- prepare_install &&
- mkdir -p /var/lib/mysql &&
- make pkglibdir=/usr/lib install &&
- rm -rf /usr/mysql-test &&
+ prepare_install &&
+ mkdir -p /var/lib/mysql &&
+ make pkglibdir=/usr/lib install &&
+ rm -rf /usr/mysql-test &&
if [ -x /etc/init.d/mysql.server ]; then
rm -f /etc/init.d/mysql.server
diff --git a/sql/mysql/CONFIGURE b/sql/mysql/CONFIGURE
index a96ff3f..d0705aa 100644
--- a/sql/mysql/CONFIGURE
+++ b/sql/mysql/CONFIGURE
@@ -1,7 +1,7 @@
if ! grep -q CONFIGURED $MODULE_CONFIG; then
- if query "Install client only? " n; then
- OPTS="$OPTS --without-server"
+ if query "Install client only? " n; then
+ OPTS="$OPTS --without-server"
else
if query "Enable InnoDB Support? Needed by KDE4/Akonadi " n; then
OPTS="$OPTS --with-innodb"
@@ -9,12 +9,6 @@ if ! grep -q CONFIGURED $MODULE_CONFIG; then
OPTS="$OPTS --without-innodb"
fi
- if query "Enable BDB Support? " n; then
- OPTS="$OPTS --with-berkeley-db"
- else
- OPTS="$OPTS --without-berkeley-db"
- fi
-
if query "Enable RAID Support? " n; then
OPTS="$OPTS --with-raid"
else
@@ -40,16 +34,12 @@ if ! grep -q CONFIGURED $MODULE_CONFIG; then
fi
fi
- if query "Include the OpenSSL support? " n; then
- OPTS="$OPTS --with-openssl"
- fi
-
- if query "Build embedded server (libmysqld), needed by KDE4 ? " n; then
+ if query "Build embedded server (libmysqld), needed by KDE4 ? " n; then
OPTS="$OPTS --with-embedded-server"
else
OPTS="$OPTS --without-embedded-server"
fi
-
+
if query "Enable all character sets? " y; then
OPTS="$OPTS --with-extra-charsets=all"
elif query "Enable just complex character sets? " y; then
@@ -59,5 +49,6 @@ if ! grep -q CONFIGURED $MODULE_CONFIG; then
fi
echo 'CONFIGURED="y"' >> $MODULE_CONFIG
- echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG
+ echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG
+
fi
diff --git a/sql/mysql/DEPENDS b/sql/mysql/DEPENDS
index cabe0eb..2bc80cd 100644
--- a/sql/mysql/DEPENDS
+++ b/sql/mysql/DEPENDS
@@ -1,2 +1,13 @@
depends chkconfig
depends perl
+
+optional_depends "db" \
+ "--with-berkley-db" \
+ "--without-berkley-db" \
+ "for Berkley DB support"
+
+optional_depends "openssl" \
+ "--with-ssl" \
+ "--without-ssl" \
+ "for SSL support"
+
diff --git a/sql/mysql/DETAILS b/sql/mysql/DETAILS
index 8547b35..faa6c0a 100644
--- a/sql/mysql/DETAILS
+++ b/sql/mysql/DETAILS
@@ -1,14 +1,14 @@
MODULE=mysql
- VERSION=5.0.90
+ VERSION=5.1.44
SOURCE=$MODULE-$VERSION.tar.gz
- SOURCE_URL[0]=ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-5.0
- SOURCE_URL[1]=ftp://ftp.heanet.ie/mirrors/www.mysql.com/Downloads/MySQL-5.0
- SOURCE_URL[2]=http://mysql.mirrors.pair.com/Downloads/MySQL-5.0
- SOURCE_URL[3]=http://mirrors.sunsite.dk/mysql/Downloads/MySQL-5.0
- SOURCE_VFY=sha1:c637d0afed52de1e3326824afa954d1ffbcc7a2f
+ SOURCE_URL[0]=ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-5.1
+ SOURCE_URL[1]=ftp://ftp.heanet.ie/mirrors/www.mysql.com/Downloads/MySQL-5.1
+ SOURCE_URL[2]=http://mysql.mirrors.pair.com/Downloads/MySQL-5.1
+ SOURCE_URL[3]=http://mirrors.sunsite.dk/mysql/Downloads/MySQL-5.1
+ SOURCE_VFY=sha1:265fbca02b2ef62926e2845d5fdf394298eb3206
WEB_SITE=http://www.mysql.com
ENTERED=20011114
- UPDATED=20100130
+ UPDATED=20100222
SHORT="A widely used and fast SQL database server"
cat << EOF
@@ -16,3 +16,4 @@ MySQL is a widely used and fast SQL database server. It is a client/
server implementation that consists of a server daemon (mysqld) and
many different client programs/libraries.
EOF
+
More information about the Lunar-commits
mailing list