|
|
fccd3a |
%global pkg aacraid
|
|
|
fccd3a |
|
|
|
3d6217 |
%global driver_version 4.18.0-305.el8
|
|
|
fccd3a |
|
|
|
83075f |
%global kernel_version 4.18.0-305.12.1.el8_4
|
|
|
fccd3a |
|
|
|
fccd3a |
%global _use_internal_dependency_generator 0
|
|
|
fccd3a |
%global __find_requires %{nil}
|
|
|
fccd3a |
%global __find_provides /usr/lib/rpm/find-provides
|
|
|
fccd3a |
|
|
|
fccd3a |
%global debug_package %{nil}
|
|
|
fccd3a |
|
|
|
fccd3a |
%global __spec_install_post \
|
|
|
fccd3a |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
fccd3a |
%{__arch_install_post} \
|
|
|
fccd3a |
%{__os_install_post} \
|
|
|
fccd3a |
%{__mod_compress_install_post}
|
|
|
fccd3a |
|
|
|
fccd3a |
%global __mod_compress_install_post find %{buildroot}/lib/modules -type f -name \*.ko -exec xz \{\} \\;
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
Name: kmod-%{pkg}
|
|
|
fccd3a |
Version: 4.18.0
|
|
|
4cdb65 |
Release: 305.12.1%{?dist}
|
|
|
fccd3a |
Summary: Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI (%{pkg}) driver
|
|
|
fccd3a |
|
|
|
fccd3a |
License: GPLv2
|
|
|
fccd3a |
URL: https://www.kernel.org/
|
|
|
fccd3a |
|
|
|
3d6217 |
Source0: %{pkg}-%{driver_version}.tar.xz
|
|
|
fccd3a |
Patch1: 0001-add-deprecated-ids.patch
|
|
|
fccd3a |
|
|
|
fccd3a |
ExclusiveArch: x86_64
|
|
|
fccd3a |
|
|
|
fccd3a |
BuildRequires: elfutils-libelf-devel
|
|
|
fccd3a |
BuildRequires: gcc
|
|
|
fccd3a |
BuildRequires: kmod
|
|
|
fccd3a |
BuildRequires: make
|
|
|
fccd3a |
BuildRequires: redhat-rpm-config
|
|
|
fccd3a |
BuildRequires: xz
|
|
|
fccd3a |
|
|
|
fccd3a |
BuildRequires: kernel-devel = %{kernel_version}
|
|
|
fccd3a |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
fccd3a |
Requires: kernel-core = %{kernel_version}
|
|
|
fccd3a |
Requires: kernel-core-uname-r = %{kernel_version}.%{_arch}
|
|
|
fccd3a |
Requires: kernel-modules = %{kernel_version}
|
|
|
fccd3a |
Requires: kernel-modules-uname-r = %{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
fccd3a |
Provides: installonlypkg(kernel-module)
|
|
|
2c53ac |
Provides: kernel-modules = %{kernel_version}
|
|
|
fccd3a |
Provides: %{name}-%{kernel_version}.%{_arch} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
fccd3a |
|
|
|
fccd3a |
Requires(post): /usr/sbin/depmod
|
|
|
fccd3a |
Requires(postun): /usr/sbin/depmod
|
|
|
fccd3a |
|
|
|
fccd3a |
Requires(post): /usr/bin/dracut
|
|
|
fccd3a |
Requires(postun): /usr/bin/dracut
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%description
|
|
|
fccd3a |
This package provides the Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid
|
|
|
fccd3a |
Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI driver (%{pkg}) driver.
|
|
|
fccd3a |
Compared to the in-kernel driver this driver re-enables support for deprecated
|
|
|
fccd3a |
adapters:
|
|
|
fccd3a |
|
|
|
fccd3a |
- 0x1011:0x0046:0x103C:0x10C2: HP NetRAID-4M
|
|
|
fccd3a |
- 0x1011:0x0046:0x9005:0x0364: Adaptec 5400S (Mustang)
|
|
|
fccd3a |
- 0x1011:0x0046:0x9005:0x0365: Adaptec 5400S (Mustang)
|
|
|
fccd3a |
- 0x1011:0x0046:0x9005:0x1364: Dell PERC 2/QC
|
|
|
fccd3a |
- 0x1028:0x0001:0x1028:0x0001: DELL PERC 2/Si (Iguana)
|
|
|
fccd3a |
- 0x1028:0x0002:0x1028:0x0002: DELL PERC 3/Di (Opal)
|
|
|
fccd3a |
- 0x1028:0x0002:0x1028:0x00D1: DELL PERC 3/Di (Viper)
|
|
|
fccd3a |
- 0x1028:0x0002:0x1028:0x00D9: DELL PERC 3/Di (Lexus)
|
|
|
fccd3a |
- 0x1028:0x0003:0x1028:0x0003: DELL PERC 3/Si (SlimFast)
|
|
|
fccd3a |
- 0x1028:0x0004:0x1028:0x00D0: DELL PERC 3/Di (Iguana FlipChip)
|
|
|
fccd3a |
- 0x1028:0x000A:0x1028:0x0106: DELL PERC 3/Di (Jaguar)
|
|
|
fccd3a |
- 0x1028:0x000A:0x1028:0x011B: DELL PERC 3/Di (Dagger)
|
|
|
fccd3a |
- 0x1028:0x000A:0x1028:0x0121: DELL PERC 3/Di (Boxster)
|
|
|
fccd3a |
- 0x9005:0x0200:0x9005:0x0200: Themisto Jupiter Platform
|
|
|
fccd3a |
- 0x9005:0x0283:0x9005:0x0283: Catapult
|
|
|
fccd3a |
- 0x9005:0x0284:0x9005:0x0284: Tomcat
|
|
|
fccd3a |
- 0x9005:0x0285: Adaptec Catch All
|
|
|
fccd3a |
- 0x9005:0x0285:0x1014:0x02F2: IBM 8i (AvonPark)
|
|
|
fccd3a |
- 0x9005:0x0285:0x1014:0x0312: IBM 8i (AvonPark Lite)
|
|
|
fccd3a |
- 0x9005:0x0285:0x1028: Dell Catchall
|
|
|
fccd3a |
- 0x9005:0x0285:0x1028:0x0287: Perc 320/DC
|
|
|
fccd3a |
- 0x9005:0x0285:0x1028:0x0291: CERC SATA RAID 2 PCI SATA 6ch (DellCorsair)
|
|
|
fccd3a |
- 0x9005:0x0285:0x103C:0x3227: AAR-2610SA PCI SATA 6ch
|
|
|
fccd3a |
- 0x9005:0x0285:0x17AA: Legend Catchall
|
|
|
fccd3a |
- 0x9005:0x0285:0x17AA:0x0286: Legend S220 (Legend Crusader)
|
|
|
fccd3a |
- 0x9005:0x0285:0x17AA:0x0287: Legend S230 (Legend Vulcan)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0285: Adaptec 2200S (Vulcan)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0286: Adaptec 2120S (Crusader)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0287: Adaptec 2200S (Vulcan-2m)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0288: Adaptec 3230S (Harrier)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0289: Adaptec 3240S (Tornado)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x028A: ASR-2020ZCR SCSI PCI-X ZCR (Skyhawk)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x028B: ASR-2025ZCR SCSI SO-DIMM PCI-X ZCR (Terminator)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x028E: ASR-2020SA SATA PCI-X ZCR (Skyhawk)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x028F: ASR-2025SA SATA SO-DIMM PCI-X ZCR (Terminator)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0290: AAR-2410SA PCI SATA 4ch (Jaguar II)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0292: AAR-2810SA PCI SATA 8ch (Corsair-8)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0293: AAR-21610SA PCI SATA 16ch (Corsair-16)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0294: ESD SO-DIMM PCI-X SATA ZCR (Prowler)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0296: ASR-2240S (SabreExpress)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0297: ASR-4005
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0298: ASR-4000 (BlackBird)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x0299: ASR-4800SAS (Marauder-X)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x029A: ASR-4805SAS (Marauder-E)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x02A4: ICP9085LI (Marauder-X)
|
|
|
fccd3a |
- 0x9005:0x0285:0x9005:0x02A5: ICP5085BR (Marauder-E)
|
|
|
fccd3a |
- 0x9005:0x0286: Adaptec Rocket Catch All
|
|
|
fccd3a |
- 0x9005:0x0286:0x1014:0x9540: IBM 8k/8k-l4 (Aurora Lite)
|
|
|
fccd3a |
- 0x9005:0x0286:0x1014:0x9580: IBM 8k/8k-l8 (Aurora)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x028C: ASR-2230S/ASR-2230SLP PCI-X (Lancer)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x028D: ASR-2130S (Lancer)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x029B: AAR-2820SA (Intruder)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x029C: AAR-2620SA (Intruder)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x029D: AAR-2420SA (Intruder)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x029E: ICP9024RO (Lancer)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x029F: ICP9014RO (Lancer)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x02A0: ICP9047MA (Lancer)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x02A1: ICP9087MA (Lancer)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x02A2: ASR-3800 (Hurricane44)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x02A3: ICP5445AU (Hurricane44)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x02A6: ICP9067MA (Intruder-6)
|
|
|
fccd3a |
- 0x9005:0x0286:0x9005:0x0800: Callisto Jupiter Platform
|
|
|
fccd3a |
- 0x9005:0x0287:0x9005:0x0800: Themisto Jupiter Platform
|
|
|
fccd3a |
- 0x9005:0x0288: Adaptec NEMER/ARK Catch All
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%prep
|
|
|
3d6217 |
%autosetup -p1 -n %{pkg}-%{driver_version}
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%build
|
|
|
fccd3a |
pushd src
|
|
|
fccd3a |
%{__make} -C /usr/src/kernels/%{kernel_version}.%{_arch} %{?_smp_mflags} M=$PWD modules
|
|
|
fccd3a |
popd
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%install
|
|
|
fccd3a |
%{__install} -D -t %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg} src/%{pkg}.ko
|
|
|
fccd3a |
|
|
|
fccd3a |
# Make .ko objects temporarily executable for automatic stripping
|
|
|
fccd3a |
find %{buildroot}/lib/modules -type f -name \*.ko -exec chmod u+x \{\} \+
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%clean
|
|
|
fccd3a |
%{__rm} -rf %{buildroot}
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%post
|
|
|
fccd3a |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
fccd3a |
touch %{_localstatedir}/lib/rpm-state/sig-kmods/%{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%preun
|
|
|
fccd3a |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
fccd3a |
touch %{_localstatedir}/lib/rpm-state/sig-kmods/%{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%postun
|
|
|
fccd3a |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/%{kernel_version}.%{_arch} ]
|
|
|
fccd3a |
then
|
|
|
fccd3a |
if [ -f /lib/modules/%{kernel_version}.%{_arch}/System.map ]
|
|
|
fccd3a |
then
|
|
|
fccd3a |
/usr/sbin/depmod -aeF /lib/modules/%{kernel_version}.%{_arch}/System.map %{kernel_version}.%{_arch}
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
if [ -f /boot/initramfs-%{kernel_version}.%{_arch}.img ]
|
|
|
fccd3a |
then
|
|
|
fccd3a |
if /usr/bin/dracut -f --rebuild /boot/initramfs-%{kernel_version}.%{_arch}.img /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew %{kernel_version}.%{_arch}
|
|
|
fccd3a |
then
|
|
|
fccd3a |
if ! cmp -s /boot/initramfs-%{kernel_version}.%{_arch}.img /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew
|
|
|
fccd3a |
then
|
|
|
fccd3a |
mv /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew /boot/initramfs-%{kernel_version}.%{_arch}.img
|
|
|
fccd3a |
else
|
|
|
fccd3a |
rm -f /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/%{kernel_version}.%{_arch}
|
|
|
fccd3a |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%posttrans
|
|
|
fccd3a |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/%{kernel_version}.%{_arch} ]
|
|
|
fccd3a |
then
|
|
|
fccd3a |
if [ -f /lib/modules/%{kernel_version}.%{_arch}/System.map ]
|
|
|
fccd3a |
then
|
|
|
fccd3a |
/usr/sbin/depmod -aeF /lib/modules/%{kernel_version}.%{_arch}/System.map %{kernel_version}.%{_arch}
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
if [ -f /boot/initramfs-%{kernel_version}.%{_arch}.img ]
|
|
|
fccd3a |
then
|
|
|
fccd3a |
if /usr/bin/dracut -f --rebuild /boot/initramfs-%{kernel_version}.%{_arch}.img /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew %{kernel_version}.%{_arch}
|
|
|
fccd3a |
then
|
|
|
fccd3a |
if ! cmp -s /boot/initramfs-%{kernel_version}.%{_arch}.img /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew
|
|
|
fccd3a |
then
|
|
|
fccd3a |
mv /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew /boot/initramfs-%{kernel_version}.%{_arch}.img
|
|
|
fccd3a |
else
|
|
|
fccd3a |
rm -f /boot/initramfs-%{kernel_version}.%{_arch}.img.rpmnew
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/%{kernel_version}.%{_arch}
|
|
|
fccd3a |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%files
|
|
|
fccd3a |
%defattr(644,root,root,755)
|
|
|
fccd3a |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
fccd3a |
%license COPYING
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%changelog
|
|
|
4cdb65 |
* Wed Aug 11 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-305.12.1
|
|
|
4cdb65 |
- Rebuild for 4.18.0-305.12.1.el8_4
|
|
|
4cdb65 |
|
|
|
fccd3a |
* Wed Aug 11 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0-305
|
|
|
fccd3a |
- Initial version
|