diff --git a/srcpkgs/dkms/files/kernel.d/dkms.postinst b/srcpkgs/dkms/files/kernel.d/dkms.postinst index 5b627908a80..7cbc82f75ca 100644 --- a/srcpkgs/dkms/files/kernel.d/dkms.postinst +++ b/srcpkgs/dkms/files/kernel.d/dkms.postinst @@ -41,6 +41,11 @@ while [ $# -ne 0 ]; do status=$(dkms status -m ${module} -v ${modulever} -k ${VERSION}) if [ $(echo "$status"|grep -c ": built") -eq 0 ]; then + # Check if the module is still there. + if [ ! -f usr/src/${module}-${modulever}/dkms.conf ]; then + echo "Skipping unexistent DKMS module: ${module}-${modulever}." + continue + fi # Build the module echo -n "Building DKMS module: ${module}-${modulever}... " dkms build -q -m ${module} -v ${modulever} -k ${VERSION} -a ${ARCH} diff --git a/srcpkgs/dkms/template b/srcpkgs/dkms/template index 7621dac0909..92c509730b0 100644 --- a/srcpkgs/dkms/template +++ b/srcpkgs/dkms/template @@ -4,7 +4,7 @@ version=2.2.0.3 homepage="http://linux.dell.com/dkms" distfiles="${homepage}/permalink/dkms-$version.tar.gz" depends="bash module-init-tools gcc make coreutils kernel-headers" -revision=1 +revision=2 short_desc="Dynamic Kernel Modules System" maintainer="Juan RP " license="GPL-2"