[ewg] ib-bonding release 4

Moni Shoua monisonlists at gmail.com
Thu Mar 29 03:34:09 PDT 2007


> Should bonding RPM names be changed also?
> 
> ${IB_BONDING_NAME}-${IB_BONDING_VERSION}-rh-${build_arch}.rpm 
> ${IB_BONDING_NAME}-${IB_BONDING_VERSION}-suse-${build_arch}.rpm
> 
> 
> If yes, then please send patch for install.sh.
> 
> Thanks,
> 
I changed ib-bonding binary RPM name according to OFED style.
New SRPM (release 5) is in my home directory (latest.txt was also updated)

Below is the required patch for install.sh



diff --git a/install.sh b/install.sh
index 2c81fa6..476cb3e 100755
--- a/install.sh
+++ b/install.sh
@@ -353,14 +353,7 @@ is_rpms()
 		esac
             ;;
             ib-bonding)
-                case ${DISTRIBUTION} in
-                        redhat*)
-                        [ ! -f ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-rh-${build_arch}.rpm ] && return 1
-                        ;;
-                        SuSE)
-                        [ ! -f ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-suse-${build_arch}.rpm ] && return 1
-                        ;;
-                esac
+                        [ ! -f ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-${RPMK_VER}.${build_arch}.rpm ] && return 1
             ;;
             rds-tools)
 		[ ! -f ${RPMS}/${RDS_TOOLS_NAME}-${RDS_TOOLS_VERSION}.${build_arch}.rpm ] && return 1
@@ -1177,22 +1170,11 @@ openmpi()
 ib-bonding()
 {
 
-    case ${DISTRIBUTION} in
-        redhat*)
-                if [ ! -f ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-rh-${build_arch}.rpm ]; then
-                        err_echo "${IB_BONDING_NAME}-${IB_BONDING_VERSION}-rh-${build_arch}.rpm not found under ${RPMS}."
-                else
-                        ex "$RPM -Uhv ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-rh-${build_arch}.rpm"
-                fi
-        ;;
-        SuSE)
-        if [ ! -f ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-suse-${build_arch}.rpm ]; then
-                err_echo "${IB_BONDING_NAME}-${IB_BONDING_VERSION}-suse-${build_arch}.rpm not found under ${RPMS}."
-        else
-                ex "$RPM -Uhv ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-suse-${build_arch}.rpm"
-        fi
-        ;;
-    esac
+    if [ ! -f ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-${RPMK_VER}.${build_arch}.rpm ]; then
+            err_echo "${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-${RPMK_VER}.${build_arch}.rpm not found under ${RPMS}."
+    else
+            ex "$RPM -Uhv ${RPMS}/${IB_BONDING_NAME}-${IB_BONDING_VERSION}-${RPMK_VER}.${build_arch}.rpm
+    fi
 
     return 0
 }




More information about the ewg mailing list