| | 36 | cp omniNotify ~/rpmbuild/SOURCES |
| | 37 | rpmbuild -ba omniNotify.spec || exit 1 |
| | 38 | cp ~/rpmbuild/RPMS/*/omniNotify-*2.1*.rpm rpms/ |
| | 39 | if [ "x`rpm -qa omniNotify`" == "x" ] |
| | 40 | then |
| | 41 | sudo rpm -Uvh rpms/omniNotify-*2.1*.rpm |
| | 42 | fi |
| | 43 | |
| | 44 | Tango |
| | 45 | cd ~/rpmbuild/SOURCES |
| | 46 | if [ ! -f jdk-1_5_0_15-linux-i586.bin ] |
| | 47 | then |
| | 48 | echo Please go to the SUN JDK Archive Page at http://java.sun.com/products/archive/ and download JDK version 5.0 update 15 self-extracting file and save in ~/rpmbuild/SOURCES |
| | 49 | echo Press any key to continue |
| | 50 | read |
| | 51 | fi |
| | 52 | cd $olddir |
| | 53 | cd srpms |
| | 54 | wget -c http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm |
| | 55 | rpmbuild --rebuild java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm || exit 1 |
| | 56 | cd $olddir |
| | 57 | cp ~/rpmbuild/RPMS/*/java-1.5.0-*.rpm rpms/ |
| | 58 | if [ "x`rpm -qa xorg-x11-deprecated-libs | grep 1.5.0`" == "x" ] |
| | 59 | then |
| | 60 | sudo yum install -y xorg-x11-deprecated-libs |
| | 61 | fi |
| | 62 | if [ "x`rpm -qa java | grep 1.5.0`" == "x" ] |
| | 63 | then |
| | 64 | sudo rpm -Uvh rpms/java-1.5.0-*.rpm |
| | 65 | fi |
| | 66 | |
| | 67 | if [ "x`rpm -qa mysql-server`" == "x" ] |
| | 68 | then |
| | 69 | sudo yum install -y mysql-server |
| | 70 | fi |
| | 71 | sudo /etc/init.d/mysql start |
| | 72 | sudo mysqladmin create tango |
| | 73 | sudo mysqlaccess tango tango -p tango |
| | 74 | |
| | 75 | cd ~/rpmbuild/SOURCES |
| | 76 | wget -c http://ftp.esrf.fr/pub/cs/tango/tango-6.1.1.c.tar.gz |
| | 77 | cd $olddir |