diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:40:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:40:51 +0000 |
commit | 017870ebf041f17c3a8fa10e97d010701431d14b (patch) | |
tree | 370430da4af7aa2682815861078f5bd1c9821b90 /debian/patches/only-autobuild-AUTOINSTALL-yes-modules.patch | |
parent | Adding upstream version 3.0.13. (diff) | |
download | dkms-017870ebf041f17c3a8fa10e97d010701431d14b.tar.xz dkms-017870ebf041f17c3a8fa10e97d010701431d14b.zip |
Adding debian version 3.0.13-1.debian/3.0.13-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/only-autobuild-AUTOINSTALL-yes-modules.patch')
-rw-r--r-- | debian/patches/only-autobuild-AUTOINSTALL-yes-modules.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/only-autobuild-AUTOINSTALL-yes-modules.patch b/debian/patches/only-autobuild-AUTOINSTALL-yes-modules.patch new file mode 100644 index 0000000..0b000dd --- /dev/null +++ b/debian/patches/only-autobuild-AUTOINSTALL-yes-modules.patch @@ -0,0 +1,16 @@ +--- a/dkms_common.postinst.in ++++ b/dkms_common.postinst.in +@@ -160,6 +160,13 @@ if [ -z "$autoinstall" ]; then + exit 0 + fi + ++dkms_conf="/var/lib/dkms/$NAME/$VERSION/source/dkms.conf" ++autoinstall=$(bash -c 'AUTOINSTALL=; . "'"$dkms_conf"'" >/dev/null 2>&1; echo $AUTOINSTALL') ++if [ -z "$autoinstall" ]; then ++ echo "Not building the $NAME module which does not have AUTOINSTALL enabled." ++ exit 0 ++fi ++ + # On 1st installation, let us look for a directory + # in @MODDIR@ which matches $(uname -r). If none + # is found it is possible that buildd is being used |