Policies/DKMS

From Mandriva Community Wiki

Jump to: navigation, search
DKMS packaging policy

Guidelines for packaging kernel modules as DKMS packages in Mandriva Linux.

[edit] General

All dkms packages should be named dkms-foo, replacing foo with the driver name (not always same as the module name). They have to have:

Group: System/Kernel and hardware
Requires(post): dkms
Requires(preun): dkms

The module source files are installed into %{_usrsrc}/%{name}-%{version}-%{release}. A file named dkms.conf that contains directives for dkms is also installed into this directory. Conditional patches (patches that will be applied depending on kernel version) should be installed into the patches/ subdirectory.

Note that the package should not have any other files or requires, as these are not carried into the possible binary-only dkms