From 5ba419dd07bb140937b4d7356fc146aafb82ffa5 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 7 Oct 2008 17:41:19 +0000 Subject: [PATCH] switch to mysql 5.0 --- AIX/xcat-mysql/Build-notes | 7 +++---- AIX/xcat-mysql/xcat-mysql.spec | 22 ++++++++-------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/AIX/xcat-mysql/Build-notes b/AIX/xcat-mysql/Build-notes index 2da2a54..e062f30 100644 --- a/AIX/xcat-mysql/Build-notes +++ b/AIX/xcat-mysql/Build-notes @@ -4,7 +4,7 @@ Download mysql-5.1.26-rc-aix5.3-powerpc.tar.gz. (See http://dev.mysql.com/downloads/mysql/5.1.html#aix) Copy the gz file to the SOURCES directory. -cp mysql-5.1.26-rc-aix5.3-powerpc.tar.gz /opt/freeware/src/packages/SOURCES +cp mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz /opt/freeware/src/packages/SOURCES Remove any old RPMs rm -f /opt/freeware/src/packages/SRPMS/xcat-mysql*rpm /opt/freeware/src/packages/RPMS/ppc/xcat-mysql*rpm @@ -16,6 +16,5 @@ a different version etc. rpm -ba xcat-mysql.spec Creates: -/opt/freeware/src/packages/RPMS/ppc/xcat-mysql-5.1-1.aix5.3.ppc.rpm -/opt/freeware/src/packages/SRPMS/xcat-mysql-5.1-1.src.rpm - +/opt/freeware/src/packages/SRPMS/xcat-mysql-5.0-1.src.rpm +/opt/freeware/src/packages/RPMS/ppc/xcat-mysql-5.0-1.aix5.3.ppc.rpm diff --git a/AIX/xcat-mysql/xcat-mysql.spec b/AIX/xcat-mysql/xcat-mysql.spec index c18a8e8..c2627c3 100644 --- a/AIX/xcat-mysql/xcat-mysql.spec +++ b/AIX/xcat-mysql/xcat-mysql.spec @@ -1,6 +1,6 @@ Summary: Metapackage for MySQL on AIX Name: xcat-mysql -Version: 5.1 +Version: 5.0 Release: 1 License: EPL Group: Applications/System @@ -9,17 +9,18 @@ Packager: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildArch: ppc -Source1: mysql-5.1.26-rc-aix5.3-powerpc.tar.gz +Source1: mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz Provides: xcat-mysql = %{version} %description -Installs and configures MySQL 5.1 on AIX systems. +Installs and configures MySQL 5.0 on AIX systems. %prep %build %install + mkdir -p $RPM_BUILD_ROOT/usr/local cp %{SOURCE1} $RPM_BUILD_ROOT/usr/local @@ -28,17 +29,11 @@ cp %{SOURCE1} $RPM_BUILD_ROOT/usr/local cd /usr/local # uwrap -gunzip mysql-5.1.26-rc-aix5.3-powerpc.tar.gz -tar -xvf mysql-5.1.26-rc-aix5.3-powerpc.tar +gunzip /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz +tar -xvf /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar # set up link for mysql -ln -s /usr/local/mysql-5.1.26-rc-aix5.3-powerpc mysql - -# create group & user id -mkgroup mysql -mkuser mysql - -# TODO - add call to script (xcatcfgmysql) to do config! +ln -s /usr/local/mysql-5.0.67-aix5.3-powerpc-64bit mysql # set PATH?? echo "PATH=\$PATH:/usr/local/mysql:/usr/local/mysql/bin:/usr/local/mysql/lib:/usr/local/mysql/include @@ -46,11 +41,10 @@ export PATH" >>/etc/profile echo "The PATH environment variable has been updated in /etc/profile." - # TODO - add postun section to remove MySQL - %clean %files -/usr/local/mysql-5.1.26-rc-aix5.3-powerpc.tar.gz +/usr/local/mysql-5.0.67-aix5.3-powerpc-64bit.tar.gz %defattr(-,root,root)