mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
build: notify of unsupported Linux kernel versions
This commit is contained in:
8
INSTALL
8
INSTALL
@@ -14,7 +14,7 @@ Supported configurations for this release
|
|||||||
|
|
||||||
* iptables >= 1.4.3
|
* iptables >= 1.4.3
|
||||||
|
|
||||||
* kernel-source >= 2.6.17, no upper bound known
|
* kernel-source >= 2.6.29
|
||||||
with prepared build/output directory
|
with prepared build/output directory
|
||||||
- CONFIG_NF_CONNTRACK or CONFIG_IP_NF_CONNTRACK
|
- CONFIG_NF_CONNTRACK or CONFIG_IP_NF_CONNTRACK
|
||||||
- CONFIG_NF_CONNTRACK_MARK or CONFIG_IP_NF_CONNTRACK_MARK
|
- CONFIG_NF_CONNTRACK_MARK or CONFIG_IP_NF_CONNTRACK_MARK
|
||||||
@@ -22,12 +22,6 @@ Supported configurations for this release
|
|||||||
- CONFIG_CONNECTOR y/m if you wish to receive userspace
|
- CONFIG_CONNECTOR y/m if you wish to receive userspace
|
||||||
notifications from pknock through netlink/connector
|
notifications from pknock through netlink/connector
|
||||||
|
|
||||||
Extra notes:
|
|
||||||
|
|
||||||
* in the kernel 2.6.18.x series, >= 2.6.18.5 is required
|
|
||||||
|
|
||||||
* requires that no vendor backports interfere
|
|
||||||
|
|
||||||
For ipset-5 you need:
|
For ipset-5 you need:
|
||||||
|
|
||||||
* libmnl
|
* libmnl
|
||||||
|
15
configure.ac
15
configure.ac
@@ -40,15 +40,6 @@ regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
|
|||||||
-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
|
-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
|
||||||
-Winline -pipe";
|
-Winline -pipe";
|
||||||
|
|
||||||
#
|
|
||||||
# check kernel version
|
|
||||||
#
|
|
||||||
if grep -q "CentOS release 5\." /etc/redhat-release 2>/dev/null ||
|
|
||||||
grep -q "Red Hat Enterprise Linux Server release 5" /etc/redhat-release 2>/dev/null; then
|
|
||||||
# しまった!
|
|
||||||
# Well, just a warning. Maybe the admin updated the kernel.
|
|
||||||
echo "WARNING: This distribution's shipped kernel is not supported.";
|
|
||||||
fi;
|
|
||||||
if test -n "$kbuilddir"; then
|
if test -n "$kbuilddir"; then
|
||||||
AC_MSG_CHECKING([kernel version that we will build against])
|
AC_MSG_CHECKING([kernel version that we will build against])
|
||||||
krel="$(make -sC "$kbuilddir" M=. kernelrelease)";
|
krel="$(make -sC "$kbuilddir" M=. kernelrelease)";
|
||||||
@@ -72,13 +63,17 @@ if test -n "$kbuilddir"; then
|
|||||||
echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
|
echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
|
||||||
if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 38; then
|
if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 38; then
|
||||||
echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
|
echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
|
||||||
|
elif test "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -ge 29; then
|
||||||
|
:; # everything ok
|
||||||
elif test \( "$kmajor" -lt 2 -o \
|
elif test \( "$kmajor" -lt 2 -o \
|
||||||
\( "$kmajor" -eq 2 -a "$kminor" -lt 6 \) -o \
|
\( "$kmajor" -eq 2 -a "$kminor" -lt 6 \) -o \
|
||||||
\( "$kmajor" -eq 2 -a "$kminor" -eq 0 -a "$kmicro" -lt 17 \) -o \
|
\( "$kmajor" -eq 2 -a "$kminor" -eq 0 -a "$kmicro" -lt 17 \) -o \
|
||||||
\( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
|
\( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
|
||||||
"$kstable" -lt 5 \) \); then
|
"$kstable" -lt 5 \) \); then
|
||||||
echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration.";
|
echo "ERROR: That kernel version is not supported at all. Please see INSTALL for minimum configuration.";
|
||||||
exit 1;
|
exit 1;
|
||||||
|
else
|
||||||
|
echo "WARNING: That kernel version has been recently deprecated for use with Xtables-addons). Compilation may fail.";
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
Reference in New Issue
Block a user