blacklist rtl8xxxu in modprobe file [release 0.20190418git-2mamba;Thu Apr 18 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 17:31:34 +01:00
parent 101b6be2f8
commit 67d2661c3d
2 changed files with 68 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# rtl8192eu # rtl8192eu
rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!).

66
rtl8192eu.spec Normal file
View File

@ -0,0 +1,66 @@
Name: rtl8192eu
Version: 0.20190418git
Release: 2mamba
Summary: rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/jeremyb31/rtl8192eu-linux-driver
## GITSOURCE https://github.com/jeremyb31/rtl8192eu-linux-driver.git master
Source: https://github.com/jeremyb31/rtl8192eu-linux-driver.git/master/rtl8192eu-linux-driver-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!).
%prep
%setup -q -n %{name}-linux-driver-%{version}
%build
%check
%make
:
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}
install -d -m0755 %{buildroot}%{_modprobedir}
cat > %{buildroot}%{_modprobedir}/%{name}.conf << _EOF
blacklist rtl8xxxu
_EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%preun
dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade
:
%posttrans
if [ $1 -ge 1 ]; then
# clean any legacy alternatives symlink
dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade
dkms add -q -m %{name} -v %{version}
dkms install -q -m %{name} -v %{version}
fi
:
%files
%defattr(-,root,root)
%{_modprobedir}/%{name}.conf
%dir %{_prefix}/src/rtl8192eu-%{version}
%{_prefix}/src/rtl8192eu-%{version}/*
%changelog
* Thu Apr 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190418git-2mamba
- blacklist rtl8xxxu in modprobe file
* Thu Apr 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190418git-1mamba
- package created using the webbuild interface