From 3d4030325c0163602194673f548f095d4c8e84fa Mon Sep 17 00:00:00 2001 From: nott Date: Sat, 7 Mar 2009 15:15:43 +0000 Subject: [PATCH] Add packaging script for AIX deps tarball git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- mkAIXdeps | 100 +++++++++++++++++++++++++++++++++++++++++++++++++ xCATaixSN.bnd | 14 ++++--- xCATaixSSH.bnd | 3 ++ 3 files changed, 111 insertions(+), 6 deletions(-) create mode 100755 mkAIXdeps diff --git a/mkAIXdeps b/mkAIXdeps new file mode 100755 index 000000000..2fcda08c9 --- /dev/null +++ b/mkAIXdeps @@ -0,0 +1,100 @@ +#!/bin/sh + +BLDTOP=`pwd` +RPMDIR=$BLDTOP/aix-dep-snap +VER=`cat $BLDTOP/Version` + +if [ -d $RPMDIR ] +then + # clean it up + rm -f $RPMDIR/instoss + rm -f $RPMDIR/instmysql + rm -f $RPMDIR/README + rm -f $RPMDIR/*.rpm + rm -f $RPMDIR/flist + rm -f $RPMDIR/flist2 + rm -f $RPMDIR/*.gz +else + mkdir -p $RPMDIR +fi + +cd $RPMDIR + +# build tar.gz for default required RPMs and a second tar.gz for mysql + +# create a simple install script +echo "# xCAT on AIX - prerequisite install script" > $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-DBI-1.55-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-DBI-1.55-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-DBD-SQLite-1.13-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-DBD-SQLite-1.13-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/tcl-8.4.7-3.aix5.1.ppc.rpm $RPMDIR/ +echo "rpm -Uvh tcl-8.4.7-3.aix5.1.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/tk-8.4.7-3.aix5.1.ppc.rpm $RPMDIR/ +echo "rpm -Uvh tk-8.4.7-3.aix5.1.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/expect-5.42.1-3.aix5.1.ppc.rpm $RPMDIR/ +echo "rpm -Uvh expect-5.42.1-3.aix5.1.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/conserver-8.1.16-2.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh conserver-8.1.16-2.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-Expect-1.21-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-Expect-1.21-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-IO-Tty-1.07-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-IO-Tty-1.07-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-IO-Stty-.02-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-IO-Stty-.02-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-IO-Socket-SSL-1.06-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-IO-Socket-SSL-1.06-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-Net_SSLeay.pm-1.30-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-Net_SSLeay.pm-1.30-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-Digest-MD5-2.36-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-Digest-MD5-2.36-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/fping-2.4b2_to-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh fping-2.4b2_to-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/openslp-1.2.1-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh openslp-1.2.1-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +cp /opt/freeware/src/packages/RPMS/ppc/perl-Crypt-SSLeay-0.57-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-Crypt-SSLeay-0.57-1.aix5.3.ppc.rpm" >> $RPMDIR/instoss + +# get the OSS README file +cp ./../../../xcat-dep/trunk/AIX/README $RPMDIR/ + +# make the default required RPM tar.gz file +#ls $RPMDIR/*.rpm > $RPMDIR/flist +ls *.rpm > $RPMDIR/flist +chmod +x $RPMDIR/instoss +echo "README" >> $RPMDIR/flist +echo "instoss" >> $RPMDIR/flist +tar -cvf $RPMDIR/dep-aix-$VER.tar -L $RPMDIR/flist +gzip $RPMDIR/dep-aix-$VER.tar + +# make a second tar.gz for mysql packages +cp /opt/freeware/src/packages/RPMS/ppc/perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm" >> $RPMDIR/instmysql +echo "perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm" > $RPMDIR/flist2 + +cp /opt/freeware/src/packages/RPMS/ppc/xcat-mysql-5.0-1.aix5.3.ppc.rpm $RPMDIR/ +echo "rpm -Uvh xcat-mysql-5.0-1.aix5.3.ppc.rpm" >> $RPMDIR/instmysql +echo "xcat-mysql-5.0-1.aix5.3.ppc.rpm" >> $RPMDIR/flist2 + +chmod +x $RPMDIR/instmysql +echo "instmysql" >> $RPMDIR/flist2 +echo "README" >> $RPMDIR/flist2 +tar -cvf $RPMDIR/xcat-mysql-$VER.tar -L $RPMDIR/flist2 +gzip $RPMDIR/xcat-mysql-$VER.tar + +exit 0; diff --git a/xCATaixSN.bnd b/xCATaixSN.bnd index 885c83da1..66793752d 100644 --- a/xCATaixSN.bnd +++ b/xCATaixSN.bnd @@ -18,10 +18,12 @@ R:perl-IO-Tty-1.07-1.aix5.3.ppc.rpm R:perl-Net_SSLeay.pm-1.30-1.aix5.3.ppc.rpm R:tcl-8.4.7-3.aix5.1.ppc.rpm R:tk-8.4.7-3.aix5.1.ppc.rpm -R:perl-xCAT-2.1* -R:xCAT-client-2.1* -R:xCAT-server-2.1* -R:xCAT-rmc-2.1* +R:perl-xCAT-2.2* +R:xCAT-client-2.2* +R:xCAT-server-2.2* +R:xCAT-rmc-2.2* R:perl-DBD-SQLite-1.13-1.aix5.3.ppc.rpm -R:perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm -R:xcat-mysql-5.0-1.aix5.3.ppc.rpm + +# optional +#R:perl-DBD-mysql-4.007-1.aix5.3.ppc.rpm +#R:xcat-mysql-5.0-1.aix5.3.ppc.rpm diff --git a/xCATaixSSH.bnd b/xCATaixSSH.bnd index 9c846d24d..49b7b59b8 100644 --- a/xCATaixSSH.bnd +++ b/xCATaixSSH.bnd @@ -1,3 +1,6 @@ +# bundle file for openssh - installp package from AIX +# Note - openssl must be installed before openssh + I:openssh.base I:openssh.license I:openssh.man.en_US