File: disable-kernel-check.patch

package info (click to toggle)
iptables-netflow 2.6-7.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,632 kB
  • sloc: ansic: 6,831; sh: 896; ruby: 619; makefile: 239
file content (24 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Disable kernel check in configure script if no dkms is used
 This means it's skipped during package build but not during install
 time when a build of the kernel module is being triggered via dkms.
Author: Axel Beckert <abe@debian.org>
Forwarded: not-needed

--- a/configure
+++ b/configure
@@ -631,6 +631,7 @@ dkms_check() {
 
 echo "Module version: $(./version.sh)"
 
+if [ "$SKIPDKMS" != 1 ]; then
 kernel_find_version	#KVERSION
 test "$KLIBMOD" || KLIBMOD=$KVERSION
 echo "Kernel version: $KVERSION ($KHOW)"
@@ -639,6 +640,7 @@ echo "Kernel sources: $KDIR ($KSHOW)"
 kernel_check_consistency
 kernel_check_config
 kernel_check_features
+fi
 
 CC=${CC:-gcc}
 test "$IPTBIN" || IPTBIN=`which iptables`