Whamcloud - gitweb
b=23120 eliminate defunct changelog_send_thread processes
[fs/lustre-release.git] / build / mptlinux.spec.patch
index a83c818..e979a80 100644 (file)
@@ -1,5 +1,5 @@
 --- 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 ""}
 +
@@ -19,7 +19,7 @@
  Source0: %{name}-%{version}.tar.gz
  Source1: fusion.mptctl
  URL: http://www.lsilogic.com
-@@ -22,228 +24,284 @@
+@@ -22,228 +24,272 @@
  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;
+-
+-# 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
 +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
 +              #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