X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fmptlinux.spec.patch;h=e979a80ccb3b79222ade3d7d801d8f4076f5f46f;hp=a83c8185c14884cb66f9bdf840e5d72e8b5c540c;hb=9f7e47cfc7f0346ac2eb0ab45c8dff058c271fa1;hpb=12edf439a3ab9852aabcc485f4cb1acc7028ae68 diff --git a/build/mptlinux.spec.patch b/build/mptlinux.spec.patch index a83c818..e979a80 100644 --- a/build/mptlinux.spec.patch +++ b/build/mptlinux.spec.patch @@ -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. @@ -135,6 +135,19 @@ - $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 @@ -145,25 +158,6 @@ +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 @@ -200,6 +194,7 @@ + #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