Whamcloud - gitweb
LU-883 build: allow blank after signoff, email fix
[fs/lustre-release.git] / build / mptlinux.spec.patch
index a83c818..56bf6fb 100644 (file)
@@ -1,13 +1,13 @@
 --- mptlinux.spec.dist 2008-11-07 02:16:26.000000000 -0500
 --- mptlinux.spec.dist 2008-11-07 02:16:26.000000000 -0500
-+++ mptlinux.spec      2009-10-28 12:10:05.000000000 -0400
++++ mptlinux.spec      2009-12-01 14:17:11.000000000 -0500
 @@ -1,13 +1,15 @@
 +%{!?kernel_obj: %define kernel_obj ""}
 +
  %define name mptlinux
 @@ -1,13 +1,15 @@
 +%{!?kernel_obj: %define kernel_obj ""}
 +
  %define name mptlinux
- %define version 4.16.00.00
--%define release 2
+ %define version 4.18.20.04
+-%define release 1
 -Summary: MPT Fusion drivers for 53C1030, FC9XX, and SAS Adapters
 -Summary: MPT Fusion drivers for 53C1030, FC9XX, and SAS Adapters
-+%define release 2sun1
++%define release 1sun1
 +Summary: Common files for the MPT Fusion drivers for 53C1030, FC9XX, and SAS Adapters
  Name: %{name}
  Version: %{version}
 +Summary: Common files for the MPT Fusion drivers for 53C1030, FC9XX, and SAS Adapters
  Name: %{name}
  Version: %{version}
@@ -19,7 +19,7 @@
  Source0: %{name}-%{version}.tar.gz
  Source1: fusion.mptctl
  URL: http://www.lsilogic.com
  Source0: %{name}-%{version}.tar.gz
  Source1: fusion.mptctl
  URL: http://www.lsilogic.com
-@@ -22,228 +24,284 @@
+@@ -22,238 +24,274 @@
  Fibre Channel FC909, FC919, FC929, FC919X, FC929X, and FC949X adapters
  SAS SAS1064, SAS1068, and SAS1078 adapters.
  
  Fibre Channel FC909, FC919, FC929, FC919X, FC929X, and FC949X adapters
  SAS SAS1064, SAS1068, and SAS1078 adapters.
  
 -                      $RPM_BUILD_ROOT/$MPTLINUX_IPATH/${driver_name}.new
 -      done;
 -done;
 -                      $RPM_BUILD_ROOT/$MPTLINUX_IPATH/${driver_name}.new
 -      done;
 -done;
+-
+-# pre #########################################################################
+-%pre
+-echo pre %{version}
+-system_arch=`uname -m`
+-if [ -f /etc/SuSE-release ] && [ ${system_arch} == i686 ]; then
+-      system_arch=i586;
+-fi;
+-if [ %{_target_cpu} != ${system_arch} ]; then
+-      echo "ERROR: Failed installing this rpm!!!!"
+-      echo "This rpm is intended for %{_target_cpu} platform. It seems your system is ${system_arch}.";
+-      exit 1;
+-fi;
 +      # the Makefile hardcodes the destination path to
 +      # $(PREFIX)/lib/modules/$(KERNEL)/kernel/drivers/message/fusion
 +      # so lets move these to where they really go
 +      # the Makefile hardcodes the destination path to
 +      # $(PREFIX)/lib/modules/$(KERNEL)/kernel/drivers/message/fusion
 +      # so lets move these to where they really go
 +done
 +fi
  
 +done
 +fi
  
- # pre #########################################################################
--%pre
-+%pre modules
- echo pre %{version}
- system_arch=`uname -m`
- if [ -f /etc/SuSE-release ] && [ ${system_arch} == i686 ]; then
--      system_arch=i586;
--fi;
-+      system_arch=i586
-+fi
- if [ %{_target_cpu} != ${system_arch} ]; then
-       echo "ERROR: Failed installing this rpm!!!!"
--      echo "This rpm is intended for %{_target_cpu} platform. It seems your system is ${system_arch}.";
--      exit 1;
--fi;
-+      echo "This rpm is intended for %{_target_cpu} platform. It seems your system is ${system_arch}."
-+      exit 1
-+fi
  # post #########################################################################
 -%post
 +%post modules
  # post #########################################################################
 -%post
 +%post modules
 +              #echo "alias scsi_hostadapter2 mptsas" >> /etc/modprobe.edit
 +              #mv -f /etc/modprobe.edit /etc/modprobe.conf
 +      #fi
 +              #echo "alias scsi_hostadapter2 mptsas" >> /etc/modprobe.edit
 +              #mv -f /etc/modprobe.edit /etc/modprobe.conf
 +      #fi
++      :
  elif [ -f /etc/SuSE-release ]; then
        # SLES 9
        if [ -f /etc/sysconfig/kernel ] ; then
  elif [ -f /etc/SuSE-release ]; then
        # SLES 9
        if [ -f /etc/sysconfig/kernel ] ; then
 +              continue
 +      fi
  
 +              continue
 +      fi
  
--      echo "The mpt driver for kernel ${kernel} is now version 4.16.00.00";
+-      echo "The mpt driver for kernel ${kernel} is now version 4.18.20.04";
 -      #backup original fusion drivers here if not already done
 -      for driver_name in mptbase.ko mptscsih.ko mptctl.ko mptlan.ko mptspi.ko mptfc.ko mptsas.ko; do
 -              if [ ! -e $MPTLINUX_IPATH/${driver_name}.orig ]; then
 -      #backup original fusion drivers here if not already done
 -      for driver_name in mptbase.ko mptscsih.ko mptctl.ko mptlan.ko mptspi.ko mptfc.ko mptsas.ko; do
 -              if [ ! -e $MPTLINUX_IPATH/${driver_name}.orig ]; then
 -              fi;
 -              cp -f $MPTLINUX_IPATH/${driver_name}.new $MPTLINUX_IPATH/${driver_name}
 -      done;
 -              fi;
 -              cp -f $MPTLINUX_IPATH/${driver_name}.new $MPTLINUX_IPATH/${driver_name}
 -      done;
-+      echo "The mpt driver for kernel ${kernel} is now version 4.16.00.00"
++      echo "The mpt driver for kernel ${kernel} is now version 4.18.20.04"
        # Remake the initrd image for the user, depending on their OS
        if [ -f /etc/redhat-release ]; then
 -
        # Remake the initrd image for the user, depending on their OS
        if [ -f /etc/redhat-release ]; then
 -
 -                              mv $MPTLINUX_IPATH/${driver_name} \
 -                                  $MPTLINUX_IPATH/${driver_name}.orig
 -                      fi;
 -                              mv $MPTLINUX_IPATH/${driver_name} \
 -                                  $MPTLINUX_IPATH/${driver_name}.orig
 -                      fi;
+-              # to handle kmods partially need to handle week updates
+-                      MPTLINUX_KPATH=/lib/modules/${kernel}/extra/mptbase
+-                      if [ -e $MPTLINUX_KPATH/${driver_name} ]; then
+-                              mv $MPTLINUX_KPATH/${driver_name} \
+-                                  $MPTLINUX_KPATH/${driver_name}.orig
+-                      fi;
 -              done;
 -
                # RHEL 4
 -              done;
 -
                # RHEL 4
 -                      if [ -f $MPTLINUX_IPATH/${driver_name}.orig ]; then
 -                              mv -f $MPTLINUX_IPATH/${driver_name}.orig $MPTLINUX_IPATH/${driver_name}
 -                      fi;
 -                      if [ -f $MPTLINUX_IPATH/${driver_name}.orig ]; then
 -                              mv -f $MPTLINUX_IPATH/${driver_name}.orig $MPTLINUX_IPATH/${driver_name}
 -                      fi;
+-                      MPTLINUX_KPATH=/lib/modules/${kernel}/extra/mptbase
+-                      if [ -e $MPTLINUX_KPATH/${driver_name}.orig ]; then
+-                              mv -f $MPTLINUX_KPATH/${driver_name}.orig $MPTLINUX_KPATH/${driver_name}
+-                      fi;
 -              done;
 -
                # RHEL 4
 -              done;
 -
                # RHEL 4
  
  # changelog  ###################################################################
  %changelog
  
  # changelog  ###################################################################
  %changelog
++* Fri Jun 11 2010 Brian J. Murrell <brian.murrell@oracle.com>
++ - update to 4.18.20.04
 +* Wed Oct 28 2009 Brian J. Murrell <Brian.Murrell@Sun.COM>
 + - split into modules and non-modules packages so that multiple
 +   modules packages can be installed, for several kernels
 +* Wed Oct 28 2009 Brian J. Murrell <Brian.Murrell@Sun.COM>
 + - split into modules and non-modules packages so that multiple
 +   modules packages can be installed, for several kernels