2024-01-05 21:49:47 +01:00
|
|
|
Name: dkms
|
2024-01-05 21:49:49 +01:00
|
|
|
Version: 3.0.12
|
2024-01-05 21:49:47 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 21:49:47 +01:00
|
|
|
Summary: Dynamic Kernel Module Support
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 21:49:48 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/dell/dkms
|
2024-01-05 21:49:47 +01:00
|
|
|
Source: https://github.com/dell/dkms.git/v%{version}/dkms-%{version}.tar.bz2
|
2024-01-05 21:49:47 +01:00
|
|
|
Source1: dkms.service
|
|
|
|
Source2: dkms.systemd
|
2024-01-05 21:49:47 +01:00
|
|
|
Patch0: dkms-2.4.0-dont_fail_if_module_source_removed.patch
|
2024-01-05 21:49:47 +01:00
|
|
|
Patch1: dkms-2.8.3-kernel-5.4.patch
|
2024-01-05 21:49:47 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: kernelheaders
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
%description
|
|
|
|
DKMS stands for Dynamic Kernel Module Support. It is designed to create a framework where kernel dependent module source can reside so that it is very easy to rebuild modules as you upgrade kernels. This will allow Linux vendors to provide driver drops without having to wait for new kernel releases while also taking out the guesswork for customers attempting to recompile modules for new kernels.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 21:49:48 +01:00
|
|
|
#%patch1 -p1
|
2024-01-05 21:49:47 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 21:49:49 +01:00
|
|
|
make install-redhat DESTDIR=%{buildroot}
|
2024-01-05 21:49:47 +01:00
|
|
|
|
|
|
|
install -d %{buildroot}%{_presetdir}
|
|
|
|
cat > %{buildroot}%{_presetdir}/50-dkms.preset << _EOF
|
|
|
|
enable dkms.service
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
2024-01-05 21:49:47 +01:00
|
|
|
%systemd_post %{name}
|
2024-01-05 21:49:47 +01:00
|
|
|
if [ $1 -ge 1 ]; then
|
2024-01-05 21:49:47 +01:00
|
|
|
systemctl -q enable %{name}
|
|
|
|
systemctl -q start %{name}
|
2024-01-05 21:49:47 +01:00
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
2024-01-05 21:49:47 +01:00
|
|
|
%systemd_preun %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
# clean old sysv broken links
|
2024-01-05 21:49:47 +01:00
|
|
|
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|
|
|
# clean old badly uninstalled modules
|
|
|
|
find /var/lib/dkms/*/*/source -xtype l | while read line; do ls -ld ${line/source}; done
|
2024-01-05 21:49:47 +01:00
|
|
|
find /var/lib/dkms -xtype l -exec rm -f {} \;
|
2024-01-05 21:49:47 +01:00
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 21:49:47 +01:00
|
|
|
%dir %{_sysconfdir}/dkms
|
2024-01-05 21:49:48 +01:00
|
|
|
#%{_sysconfdir}/dkms/sign_helper.sh
|
2024-01-05 21:49:48 +01:00
|
|
|
#%{_sysconfdir}/dkms/template-dkms-mkrpm.spec
|
|
|
|
#%{_sysconfdir}/dkms/template-dkms-redhat-kmod.spec
|
2024-01-05 21:49:47 +01:00
|
|
|
%{_sysconfdir}/dkms/framework.conf
|
2024-01-05 21:49:49 +01:00
|
|
|
%dir %{_sysconfdir}/kernel/install.d
|
|
|
|
%{_sysconfdir}/kernel/install.d/40-dkms.install
|
|
|
|
%dir %{_sysconfdir}/kernel/postinst.d
|
2024-01-05 21:49:47 +01:00
|
|
|
%{_sysconfdir}/kernel/postinst.d/dkms
|
2024-01-05 21:49:49 +01:00
|
|
|
%dir %{_sysconfdir}/kernel/prerm.d
|
2024-01-05 21:49:47 +01:00
|
|
|
%{_sysconfdir}/kernel/prerm.d/dkms
|
|
|
|
%{_sbindir}/dkms
|
|
|
|
%dir %{_prefix}/lib/dkms
|
|
|
|
%{_prefix}/lib/dkms/common.postinst
|
|
|
|
%{_prefix}/lib/dkms/dkms_autoinstaller
|
2024-01-05 21:49:49 +01:00
|
|
|
#%{_prefix}/lib/dkms/find-provides
|
|
|
|
#%{_prefix}/lib/dkms/lsb_release
|
2024-01-05 21:49:48 +01:00
|
|
|
#%{_prefix}/lib/dkms/mkkerneldoth
|
2024-01-05 21:49:47 +01:00
|
|
|
%dir %{_localstatedir}/lib/dkms
|
2024-01-05 21:49:48 +01:00
|
|
|
#%{_localstatedir}/lib/dkms/dkms_dbversion
|
2024-01-05 21:49:47 +01:00
|
|
|
%{_presetdir}/50-dkms.preset
|
|
|
|
%{_unitdir}/dkms.service
|
2024-01-05 21:49:47 +01:00
|
|
|
%{_datadir}/bash-completion/completions/dkms
|
2024-01-05 21:49:47 +01:00
|
|
|
%{_mandir}/man8/dkms.8*
|
2024-01-05 21:49:48 +01:00
|
|
|
%doc COPYING
|
2024-01-05 21:49:47 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:49:49 +01:00
|
|
|
* Mon Oct 02 2023 Automatic Build System <autodist@mambasoft.it> 3.0.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:49 +01:00
|
|
|
* Fri Apr 28 2023 Automatic Build System <autodist@mambasoft.it> 3.0.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Wed Jan 04 2023 Automatic Build System <autodist@mambasoft.it> 3.0.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Wed Dec 07 2022 Automatic Build System <autodist@mambasoft.it> 3.0.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Sun Oct 30 2022 Automatic Build System <autodist@mambasoft.it> 3.0.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Thu Sep 29 2022 Automatic Build System <autodist@mambasoft.it> 3.0.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Sun Jul 17 2022 Automatic Build System <autodist@mambasoft.it> 3.0.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Thu Jun 30 2022 Automatic Build System <autodist@mambasoft.it> 3.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Wed Jun 22 2022 Automatic Build System <autodist@mambasoft.it> 3.0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Fri Dec 17 2021 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 01 2021 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Sun Oct 03 2021 Automatic Build System <autodist@mambasoft.it> 2.8.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Sun Sep 12 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.6-1mamba
|
|
|
|
- update to 2.8.6
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Wed Aug 25 2021 Automatic Build System <autodist@mambasoft.it> 2.8.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Fri Dec 18 2020 Automatic Build System <autodist@mambasoft.it> 2.8.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Fri Jul 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.3-2mamba
|
|
|
|
- patched to automatically fix dkms.conf containing SUBDIRS by replacing with M as required since kernel 5.4
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Fri Jul 17 2020 Automatic Build System <autodist@mambasoft.it> 2.8.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sat Nov 02 2019 Automatic Build System <autodist@mambasoft.it> 2.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Wed Jun 12 2019 Automatic Build System <autodist@mambasoft.it> 2.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sat Jan 13 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-2mamba
|
|
|
|
- clean broken links in /var/lib/dkms in posttrans
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sun Dec 24 2017 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sun Jun 18 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-2mamba
|
|
|
|
- reapply patch to skip modules with sources removed and cleanup old broken modules in posttrans
|
|
|
|
|
|
|
|
* Sat Jun 17 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
|
|
|
|
- update to 2.4.0
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sat Dec 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-1mamba
|
|
|
|
- update to 2.3
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sat Dec 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0.3-4mamba
|
|
|
|
- sysv -> systemd switch
|
|
|
|
|
2024-01-05 21:49:47 +01:00
|
|
|
* Sat Apr 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0.3-3mamba
|
|
|
|
- added a patch to avoid failed with dkms status and remove if missing source directory
|
|
|
|
|
|
|
|
* Thu Apr 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0.3-2mamba
|
|
|
|
- install and configure init script (by using make install-redhat)
|
|
|
|
|
|
|
|
* Fri Jun 15 2012 Automatic Build System <autodist@mambasoft.it> 2.2.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Oct 08 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0.2-2mamba
|
|
|
|
- added requirements for kernelheaders and gcc
|
|
|
|
|
|
|
|
* Fri Oct 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0.2-1mamba
|
|
|
|
- update to 2.2.0.2
|
|
|
|
|
2024-01-05 21:49:48 +01:00
|
|
|
* Sat Apr 04 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.0.21.1-2mamba
|
2024-01-05 21:49:47 +01:00
|
|
|
- modified Group and Packager
|
|
|
|
|
|
|
|
* Wed Apr 01 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.0.21.1-1mamba
|
|
|
|
- package created by autospec
|