2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-25 02:50:10 +00:00

switch to mysql 5.0

This commit is contained in:
nott 2008-10-07 17:41:19 +00:00
parent 069f477c7f
commit 5ba419dd07
2 changed files with 11 additions and 18 deletions

View File

@ -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

View File

@ -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)