Mike Hommey <m...@glandium.org> writes: > On Tue, Sep 15, 2009 at 02:41:40PM -0700, Russ Allbery wrote:
>> I've been shipping an openafs-modules-dkms package since DKMS entered >> the archive and love it. It's far more convenient than >> module-assistant, and I hope all of the other out-of-source kernel >> module maintainers adopt it as well. > How far more convenient is it ? As in it does the same thing as m-a > install, but automatically ? Yup, exactly. Every time either the openafs-modules-dkms package or the kernel ABI changes, a new module is automatically built. It does mean that you have to wait for the compile process during aptitude upgrade, but I'm okay with that. On system reboot, it also double-checks that the module is available and builds it during the boot if it's not. Creating the package was fairly trivial. You have to install the source in a directory with an appropriate name rather than as a tarball, and you have to write a dkms.conf file, but both of those are fairly straightforward. Here's the dkms.conf file for openafs, for instance: # DKMS configuration for the OpenAFS kernel module. -*- sh -*- # The version is replaced at build time by debian/rules. PACKAGE_NAME="openafs" PACKAGE_VERSION="1.4.11" BUILT_MODULE_NAME[0]="$PACKAGE_NAME" DEST_MODULE_LOCATION[0]="/updates/dkms/" AUTOINSTALL=yes MAKE[0]="./configure --with-linux-kernel-headers=${kernel_source_dir} && make && mv src/libafs/MODLOAD-*/openafs.ko ." CLEAN="rm -f openafs.ko && make -C src/libafs clean" -- Russ Allbery (r...@debian.org) <http://www.eyrie.org/~eagle/> -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org