Re: The future of m-a and dkms
2011/2/14 Marc Haber <email@example.com>:
> That would be an acceptable workaround. Is there any way to prevent
> dkms from trying to build modules for the currently running kernel
> when module sources are installed (which is bound to fail in my build
As far as I can see, it wouldn't be a problem.
Patrick Matthäi just mentioned the very complicated way used in fglrx,
however I've once written debian package dealing with dkms  and the
following expression in .postinst was doing all the work:
if [ "$1" = "configure" ]; then
/usr/lib/dkms/common.postinst $PACKAGE_NAME $CVERSION "" $ARCH $2
As one can see in /usr/lib/dkms/common.postinst, it looks for kernels,
rebuilds everything and so on.
So I suppose it shouldn't be very hard work to make it behave the way you want.
Best wishes and have a nice day,