Files
xtables-addons/INSTALL
Jan Engelhardt 47b700b0f5 Add a compat wrapper to make modules work with older Linux.
The extension modules use the API of a fairly recent kernel, if not
even the networking git tree. To make it work with older Linux
kernels, an API wrapper is added. Should compile against
running-kernels Linux 2.6.19..current (tested: 2.6.22..current).

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
2008-01-29 15:40:57 +01:00

59 lines
1.5 KiB
Plaintext

Prerequirements
===============
* iptables-devel 1.4.1
* kernel-source >= 2.6.19
Compiling
=========
./configure [options]
--with-kbuild=
Specifies the path to the kernel build output directory. We
need it for building the kernel extensions. For example, on
openSUSE:
--with-kbuild=/usr/src/linux-obj/x86_64/default
--with-ksource=
Specifies the path to the kernel source directory. This is
currently needed for building the userspace extensions because
we use unsanitized kernel headers, but the option MAY
DISAPPEAR IN FUTURE.
--with-ksource=/usr/src/linux
--with-iptables=
Specifies the path to the directory where we may find
xtables.h, should it not be within the standard C compiler
include path, or if you want to override it. The directory
will be checked for xtables.h and include/xtables.h. (This is
to support the following specs:)
--with-iptables=/usr/src/iptables
--with-iptables=/usr/src/iptables/include
--with-iptables=/opt/iptables/include
--with-iptdir=
Specifies the path to where the newly built extensions should
be installed when `make install` is run. It uses the same
default as the iptables package, ${libexecdir}/iptables.
Note to distribution packagers
==============================
Except for --with-kbuild, distributions should not have a need to
supply any other flags (besides --prefix=/usr and perhaps
--libdir=/usr/lib64, etc.) to configure when all prerequired packages
are installed. If iptables-devel is installed, necessary headers
should be in /usr/include, so --with-iptables is not needed.