|
|
fccd3a |
%global pkg aacraid
|
|
|
fccd3a |
|
|
|
3d6217 |
%global driver_version 4.18.0-305.el8
|
|
|
fccd3a |
|
|
|
bc2fa7 |
%global kernel_version 4.18.0-348.el8
|
|
|
fccd3a |
|
|
|
fccd3a |
%global _use_internal_dependency_generator 0
|
|
|
d4a9b2 |
%global __find_requires /usr/lib/rpm/redhat/find-requires
|
|
|
d4a9b2 |
%global __find_provides /usr/lib/rpm/redhat/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}
|
|
|
d4a9b2 |
Version: 4.18.0.305
|
|
|
bc2fa7 |
Release: 2%{?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
|
|
|
d4a9b2 |
BuildRequires: kernel-rpm-macros
|
|
|
fccd3a |
BuildRequires: kmod
|
|
|
fccd3a |
BuildRequires: make
|
|
|
fccd3a |
BuildRequires: redhat-rpm-config
|
|
|
fccd3a |
BuildRequires: xz
|
|
|
fccd3a |
|
|
|
d4a9b2 |
BuildRequires: kernel-abi-stablelists = %{kernel_version}
|
|
|
fccd3a |
BuildRequires: kernel-devel = %{kernel_version}
|
|
|
fccd3a |
BuildRequires: kernel-devel-uname-r = %{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
d4a9b2 |
Requires: kernel >= %{kernel_version}
|
|
|
d4a9b2 |
Requires: kernel-uname-r >= %{kernel_version}.%{_arch}
|
|
|
d4a9b2 |
Requires: kernel-modules >= %{kernel_version}
|
|
|
d4a9b2 |
Requires: kernel-modules-uname-r >= %{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
fccd3a |
Provides: installonlypkg(kernel-module)
|
|
|
d4a9b2 |
Provides: kernel-modules >= %{kernel_version}.%{_arch}
|
|
|
fccd3a |
|
|
|
d4a9b2 |
Requires(post): %{_sbindir}/depmod
|
|
|
d4a9b2 |
Requires(postun): %{_sbindir}/depmod
|
|
|
fccd3a |
|
|
|
d4a9b2 |
Requires(post): %{_sbindir}/weak-modules
|
|
|
d4a9b2 |
Requires(postun): %{_sbindir}/weak-modules
|
|
|
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 |
|
|
|
d4a9b2 |
# Generate depmod.conf
|
|
|
d4a9b2 |
%{__install} -d %{buildroot}/%{_sysconfdir}/depmod.d/
|
|
|
d4a9b2 |
for kmod in $(find %{buildroot}/lib/modules/%{kernel_version}.%{_arch}/extra -type f -name \*.ko -printf "%%P\n" | sort)
|
|
|
d4a9b2 |
do
|
|
|
d4a9b2 |
echo "override $(basename $kmod .ko) * weak-updates/$(dirname $kmod)" >> %{buildroot}/%{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
|
d4a9b2 |
done
|
|
|
d4a9b2 |
|
|
|
fccd3a |
|
|
|
fccd3a |
%clean
|
|
|
fccd3a |
%{__rm} -rf %{buildroot}
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%post
|
|
|
fccd3a |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
d4a9b2 |
printf '%s\n' "/lib/modules/%{kernel_version}.%{_arch}/extra/drivers/scsi/%{pkg}/%{pkg}.ko.xz" >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%preun
|
|
|
fccd3a |
mkdir -p %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
d4a9b2 |
rpm -ql kmod-%{pkg}-%{?epoch:%{epoch}:}%{version}-%{release}.%{_arch} | grep '/lib/modules/%{kernel_version}.%{_arch}/.*\.ko\.xz$' >> %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%postun
|
|
|
d4a9b2 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove ]
|
|
|
fccd3a |
then
|
|
|
d4a9b2 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove) )
|
|
|
d4a9b2 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove
|
|
|
fccd3a |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
d4a9b2 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --remove-modules
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
d4a9b2 |
%pretrans -p <lua>
|
|
|
d4a9b2 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add")
|
|
|
d4a9b2 |
posix.unlink("%{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-remove")
|
|
|
d4a9b2 |
|
|
|
d4a9b2 |
|
|
|
fccd3a |
%posttrans
|
|
|
d4a9b2 |
if [ -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add ]
|
|
|
fccd3a |
then
|
|
|
d4a9b2 |
modules=( $(cat %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add) )
|
|
|
d4a9b2 |
rm -f %{_localstatedir}/lib/rpm-state/sig-kmods/weak-modules-add
|
|
|
fccd3a |
rmdir --ignore-fail-on-non-empty %{_localstatedir}/lib/rpm-state/sig-kmods
|
|
|
d4a9b2 |
printf '%s\n' "${modules[@]}" | %{_sbindir}/weak-modules --add-modules
|
|
|
fccd3a |
fi
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%files
|
|
|
fccd3a |
%defattr(644,root,root,755)
|
|
|
fccd3a |
/lib/modules/%{kernel_version}.%{_arch}
|
|
|
fccd3a |
%license COPYING
|
|
|
d4a9b2 |
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
|
|
|
fccd3a |
|
|
|
fccd3a |
|
|
|
fccd3a |
%changelog
|
|
|
bc2fa7 |
* Tue Nov 09 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0.305-2
|
|
|
bc2fa7 |
- Rebuild for 4.18.0-348.el8
|
|
|
bc2fa7 |
|
|
|
d4a9b2 |
* Thu Oct 28 2021 Peter Georg <peter.georg@physik.uni-regensburg.de> - 4.18.0.305-1
|
|
|
dd3306 |
- Convert to kABI tracking kmod package (kernel >= 4.18.0-305.7.1.el8)
|
|
|
dd3306 |
- Build 4.18.0-305.el8 for 4.18.0-305.7.1.el8_4
|
|
|
d4a9b2 |
- Use release number independent of kernel
|
|
|
d4a9b2 |
- Add driver release number to version
|