]> git.pld-linux.org Git - packages/xtables-addons.git/blob - kernelrelease.patch
- release 4
[packages/xtables-addons.git] / kernelrelease.patch
1 --- xtables-addons-1.33/configure.ac.orig       2011-02-02 05:21:56.000000000 +0100
2 +++ xtables-addons-1.33/configure.ac    2011-03-25 16:15:47.004912129 +0100
3 @@ -40,49 +40,6 @@
4         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
5         -Winline -pipe";
6  
7 -#
8 -# check kernel version
9 -#
10 -if grep -q "CentOS release 5\." /etc/redhat-release 2>/dev/null ||
11 -    grep -q "Red Hat Enterprise Linux Server release 5" /etc/redhat-release 2>/dev/null; then
12 -       # γ—γΎγ£γŸ!
13 -       # Well, just a warning. Maybe the admin updated the kernel.
14 -       echo "WARNING: This distribution's shipped kernel is not supported.";
15 -fi;
16 -if test -n "$kbuilddir"; then
17 -       AC_MSG_CHECKING([kernel version that we will build against])
18 -       krel="$(make -sC "$kbuilddir" M=. kernelrelease)";
19 -       kmajor="${krel%%[[^0-9]]*}";
20 -       kmajor="$(($kmajor+0))";
21 -       krel="${krel:${#kmajor}}";
22 -       krel="${krel#.}";
23 -       kminor="${krel%%[[^0-9]]*}";
24 -       kminor="$(($kminor+0))";
25 -       krel="${krel:${#kminor}}";
26 -       krel="${krel#.}";
27 -       kmicro="${krel%%[[^0-9]]*}";
28 -       kmicro="$(($kmicro+0))";
29 -       krel="${krel:${#kmicro}}";
30 -       krel="${krel#.}";
31 -       kstable="${krel%%[[^0-9]]*}";
32 -       kstable="$(($kstable+0))";
33 -       if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then
34 -               echo "WARNING: Version detection did not succeed. Continue at own luck.";
35 -       else
36 -               echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
37 -               if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 38; then
38 -                       echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
39 -               elif test \( "$kmajor" -lt 2 -o \
40 -                   \( "$kmajor" -eq 2 -a "$kminor" -lt 6 \) -o \
41 -                   \( "$kmajor" -eq 2 -a "$kminor" -eq 0 -a "$kmicro" -lt 17 \) -o \
42 -                   \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
43 -                   "$kstable" -lt 5 \) \); then
44 -                       echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration.";
45 -                       exit 1;
46 -               fi;
47 -       fi;
48 -fi;
49 -
50  AC_SUBST([regular_CPPFLAGS])
51  AC_SUBST([regular_CFLAGS])
52  AC_SUBST([kbuilddir])
This page took 0.034941 seconds and 3 git commands to generate.